I have a listbox. I want to fire a click event which clicks this listbox and we can see the items inside the list.
Things I have tried and did not work-
1)
DomEvent.fireNativeEvent(Document.get().createClickEvent(0, 0, 0, 0, 0,
false, false, false, false), listbox);
2)
public static native void click(ListBox listbox)/*-{
listbox.click();
}-*/;
3)
DomEvent.fireNativeEvent(Document.get().createChangeEvent(), yourListBox);