return ((TextButton) widget).getMiddle();
}
@Override
protected Widget createGwtWidget(Renderable element) {
ClickButton buttonLogic = new ClickButton();
element.setProperty(Button.BUTTON_LOGIC_PROP, buttonLogic);
TextButton template = new TextButton("", TextButtonStyle.REGULAR_BUTTON, "");
template.setUiListener(buttonLogic.getUiEventListener());
buttonLogic.setButtonDisplay(template);
// Apply some extra css to make it render correctly in the editor.
template.addStyleName(css.button());
return template;
}