@Override public HandlerRegistration addTokenChangedHandler(TokenChangedHandler handler) { return GwtCommandDispatcher.getInstance().addTokenChangedHandler(handler); }
/** * Default constructor. Adds handlers to the login and logout events that set the disabled status of this button. It * makes sure that this logout button is only enabled when the user has been successfully logged in. * * @since 1.9.0 */ @Api public TokenReleaseButton() { super(); setTitle(MESSAGES.tokenReleaseButtonTitle()); setIcon(SsecLayout.iconLogout); setDisabled(true); addClickHandler(this); GwtCommandDispatcher.getInstance().addTokenChangedHandler(this); }