@Tag(value="button") public class NativeButton extends HtmlContainer implements ClickNotifier<NativeButton>, Focusable<NativeButton>
<button>
element.BlurNotifier.BlurEvent<C extends Component>
FocusNotifier.FocusEvent<C extends Component>
Constructor and Description |
---|
NativeButton()
Creates a new empty button.
|
NativeButton(String text)
Creates a button with the given text.
|
NativeButton(String text,
ComponentEventListener<ClickEvent<NativeButton>> clickListener)
Creates a button with the given text and click listener.
|
getTitle, setTitle
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addClickListener, addClickShortcut
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
addBlurListener
addFocusListener
isEnabled, setEnabled
getElement
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
addAttachListener
addDetachListener
public NativeButton()
public NativeButton(String text)
text
- the button textpublic NativeButton(String text, ComponentEventListener<ClickEvent<NativeButton>> clickListener)
text
- the button textclickListener
- the click listenerCopyright © 2020. All rights reserved.