public class TextButton extends ButtonBase<java.lang.String> implements HasText
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_ID_PREFIX| Modifier | Constructor and Description |
|---|---|
|
TextButton()
Construct a new
TextButton using the default TextButtonCell.Appearance. |
|
TextButton(java.lang.String text)
Construct a new
TextButton with the specified text using the
default TextButtonCell.Appearance. |
|
TextButton(TextButtonCell.Appearance appearance,
java.lang.String text)
Construct a new
TextButton with the specified text using the
specified TextButtonCell.Appearance to render the widget. |
protected |
TextButton(TextButtonCell cell,
java.lang.String text)
Construct a new
TextButton with the specified text using the
specified TextButtonCell to render the widget. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Gets this object's text.
|
void |
setText(java.lang.String text)
Sets this object's text.
|
addBlurHandler, addClickHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, getDecoration, getTabIndex, initializeCell, isCollapseLeft, isCollapseRight, isEnabled, setAccessKey, setCollapseLeft, setCollapseRight, setDecoration, setEnabled, setFocus, setTabIndexaddValueChangeHandler, asEditor, getCell, getKeyProvider, getValue, onBrowserEvent, redraw, setValue, setValue, setValueaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireEventpublic TextButton()
TextButton using the default TextButtonCell.Appearance.
The default TextButtonCell.Appearance may be replaced with a more modern
appearance in the future. If you do not want the appearance to be updated
with successive versions of GWT, create an TextButtonCell.Appearance and pass it
to #TextButton(Appearance, String).
public TextButton(java.lang.String text)
TextButton with the specified text using the
default TextButtonCell.Appearance.
The default TextButtonCell.Appearance may be replaced with a more modern
appearance in the future. If you do not want the appearance to be updated
with successive versions of GWT, create an TextButtonCell.Appearance and pass it
to #TextButton(Appearance, String).
public TextButton(TextButtonCell.Appearance appearance, java.lang.String text)
TextButton with the specified text using the
specified TextButtonCell.Appearance to render the widget.appearance - the TextButtonCell.Appearance used to render the widgettext - the text contentprotected TextButton(TextButtonCell cell, java.lang.String text)
TextButton with the specified text using the
specified TextButtonCell to render the widget.cell - the TextButtonCell used to render the widgettext - the text contentpublic java.lang.String getText()
HasText