public class TextButton extends ButtonBase<String> implements HasText
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Modifier | Constructor and Description |
---|---|
|
TextButton()
Construct a new
TextButton using the default TextButtonCell.Appearance . |
|
TextButton(String text)
Construct a new
TextButton with the specified text using the
default TextButtonCell.Appearance . |
|
TextButton(TextButtonCell.Appearance appearance,
String text)
Construct a new
TextButton with the specified text using the
specified TextButtonCell.Appearance to render the widget. |
protected |
TextButton(TextButtonCell cell,
String text)
Construct a new
TextButton with the specified text using the
specified TextButtonCell to render the widget. |
Modifier and Type | Method and Description |
---|---|
String |
getText()
Gets this object's text.
|
void |
setText(String text)
Sets this object's text.
|
addBlurHandler, addClickHandler, addFocusHandler, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, getDecoration, getTabIndex, isCollapseLeft, isCollapseRight, isEnabled, setAccessKey, setCollapseLeft, setCollapseRight, setDecoration, setEnabled, setFocus, setTabIndex
addValueChangeHandler, asEditor, getCell, getKeyProvider, getValue, onBrowserEvent, redraw, setValue, setValue, setValue
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, 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
fireEvent
public 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(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, 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, 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 contentCopyright © 2018. All rights reserved.