I tried the same on a button(*add *button), its working for me,
try out this :
@UiHandler("add")
void onAddClick(ClickEvent event) {
//addRows();
add.setEnabled(false);
if(!add.isEnabled()){
System.out.println("Hello");
add.getElement().getStyle().setBorderColor("red");
}
}
Here add is button added using UiBinder, onClick I make it disabled and
change the border color to red
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/OkO7IqmFJP4J.
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.