Hi
I've put together the following simple example:
public void onModuleLoad()
{
final ListBox lb = new ListBox();
lb.setVisibleItemCount(5);
lb.addChangeHandler(new ChangeHandler()
{
@Override
public void onChange(ChangeEvent event)
{
Window.alert("List box changed!");
}
});
final Button btn = new Button("Add");
btn.addClickHandler(new ClickHandler()
{
@Override
public void onClick(ClickEvent event)
{
lb.insertItem(new Date().toString(), -1);
}
});
final VerticalPanel vp = new VerticalPanel();
vp.add(lb);
vp.add(btn);
RootPanel.get().add(vp);
}
What I want to know is why isn't the ListBox change handler fired when
an item is inserted into the ListBox?
--
Thanks
Paul
Paul Grenyer
e: [email protected]
b: paulgrenyer.blogspot.com
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.