/** Creates a new button */ public LogoutButton() { // construct the button with image button = new CustomButton( ButtonTranslation.INSTANCE.logoutButton(), ButtonTranslation.INSTANCE.logout(), SmallIcons.INSTANCE.doorOutIcon(), new ClickHandler() { public void onClick(ClickEvent event) { logout(); } }); this.initWidget(button); }