Hi. I'm making a custom button widget.

This button has a setEnabled method. When the button is disabled, clicking 
on the button must do nothing. How do I achieve this behavior? 

I've tried adding a Click Handler like so, to no avail:

   @Override

public void onClick(ClickEvent event) {

 if (!isEnabled()) {

 event.stopPropagation();

 event.preventDefault();

 return;

 }

}

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to