Creating and Firing events with GWT
Posted by zone817The following code demonstrates how to programmatically create an event using GWT.
Document doc=Document.get(); NativeEvent clickEvent=doc.createClickEvent(0, 0,0, 0,0, false, false, false,false); NativeEvent changeEvent=doc.createChangeEvent(); NativeEvent keyDownEvent=doc.createKeyDownEvent(false, false, false,false,KeyCodes.KEY_ENTER); .........
The events created can be programmatically fired using the DomEvent.fireNativeEvent method .
Read more »
0 comments:
Post a Comment