Example usage for com.google.gwt.user.client.ui FocusWidget isEnabled

List of usage examples for com.google.gwt.user.client.ui FocusWidget isEnabled

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui FocusWidget isEnabled.

Prototype

public boolean isEnabled() 

Source Link

Document

Gets whether this widget is enabled.

Usage

From source file:com.tasktop.c2c.server.common.web.client.util.FocusWidgetUtil.java

License:Open Source License

public static void addDisablingClickHandler(final FocusWidget button, final ClickHandler ch) {
    button.addClickHandler(new ClickHandler() {
        @Override/*from  ww w .ja v a2s.co m*/
        public void onClick(ClickEvent event) {
            if (button.isEnabled()) {
                ch.onClick(event);
            }
        }
    });
}