Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GWT. Fire ChangeEvent on ListBox programmatically.

Tags:

java

gwt

I want to programmatically fire ListBox's ChangeEvent. I found function, but dont understand what type of parameter i need to pass:

DomEvent.fireNativeEvent(NativeEvent - where???, listBox());
like image 822
WelcomeTo Avatar asked Mar 12 '12 13:03

WelcomeTo


1 Answers

You can fire a native ChangeEvent on a widget using:

DomEvent.fireNativeEvent(Document.get().createChangeEvent(), yourListBox);
like image 150
Strelok Avatar answered Nov 19 '22 23:11

Strelok