hstang
23 Jul 2009, 9:34 AM
Hi,
In IE7, When I do ListFIeld.forceInvalid(), the icon movement is visible in IE7 and FF
public class Test implements EntryPoint
{
DualListField<Stock> lists;
public void onModuleLoad()
{
Test t = new Test();
RootPanel.get().add(t);
Button button = new Button("Call me", new SelectionListener<ButtonEvent>()
{
public void componentSelected(ButtonEvent evt)
{
ListField<Stock> stocks = lists.getToList();
stocks.forceInvalid("oh no");
}
});
RootPanel.get().add(button);
}
class Test extends LayoutContainer
{
@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
setStyleAttribute("margin", "10px");
FormPanel panel = new FormPanel();
panel.setHeading("Drag and Drop Lists");
lists = new DualListField<Stock>();
lists.setFieldLabel("Stock");
ListField<Stock> from = lists.getFromList();
from.setDisplayField("name");
ListStore<Stock> store = new ListStore<Stock>();
store.setStoreSorter(new StoreSorter<Stock>());
store.add(TestData.getShortStocks());
from.setStore(store);
ListField<Stock> to = lists.getToList();
to.setDisplayField("name");
store = new ListStore<Stock>();
store.setStoreSorter(new StoreSorter<Stock>());
to.setStore(store);
panel.add(lists, new FormData("98%"));
panel.setWidth(550);
add(panel);
}
}
}
In IE7, When I do ListFIeld.forceInvalid(), the icon movement is visible in IE7 and FF
public class Test implements EntryPoint
{
DualListField<Stock> lists;
public void onModuleLoad()
{
Test t = new Test();
RootPanel.get().add(t);
Button button = new Button("Call me", new SelectionListener<ButtonEvent>()
{
public void componentSelected(ButtonEvent evt)
{
ListField<Stock> stocks = lists.getToList();
stocks.forceInvalid("oh no");
}
});
RootPanel.get().add(button);
}
class Test extends LayoutContainer
{
@Override
protected void onRender(Element parent, int index) {
super.onRender(parent, index);
setStyleAttribute("margin", "10px");
FormPanel panel = new FormPanel();
panel.setHeading("Drag and Drop Lists");
lists = new DualListField<Stock>();
lists.setFieldLabel("Stock");
ListField<Stock> from = lists.getFromList();
from.setDisplayField("name");
ListStore<Stock> store = new ListStore<Stock>();
store.setStoreSorter(new StoreSorter<Stock>());
store.add(TestData.getShortStocks());
from.setStore(store);
ListField<Stock> to = lists.getToList();
to.setDisplayField("name");
store = new ListStore<Stock>();
store.setStoreSorter(new StoreSorter<Stock>());
to.setStore(store);
panel.add(lists, new FormData("98%"));
panel.setWidth(550);
add(panel);
}
}
}