Hello,
I have a problem with click listener.
Below is code. Click listener is simply not working. What am I doing
wrong?
HorizontalPanel backgroundPanel = new HorizontalPanel();
backgroundPanel.setStyleName("spodnjiTabPanelGround");
/*najprej naredimo oba gumba da vemo njihova indeksa*/
Button gumbLevoSh = new Button();
gumbLevoSh.setStyleName("spodnjiTabgumbLevo");
Window.alert("Dodamo clicker pervi");
gumbLevoSh.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
Window.alert("Levo");
}
});
.....................
backgroundPanel.add(gumbLevoSh);
DOM.appendChild((Element)
Document.get().getElementById("fragment-1"),
backgroundPanel.getElement());
best Matej
--
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.