public class TextButton extends Button
asyncAddQueue, asyncRemoveAll, asyncRemoveQueue, children, renderNode
deferredQueue, effects, styleId, visibility, zIndex
Constructor and Description |
---|
TextButton()
Constructor.
|
TextButton(java.lang.String id)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Returns the text of this
TextButton |
HorizontalAlignment |
getTextAlignment()
Returns the
HorizontalAlignment of the button's text |
void |
setText(java.lang.String text)
Sets the text of this
TextButton |
void |
setTextAlignment(HorizontalAlignment textAlignment)
Sets the
HorizontalAlignment of the button's text |
addActionListener, createRenderNode, isEnabled, notifyActionListenersOfBeginEvent, notifyActionListenersOfEndEvent, removeActionListener, setEnabled
add, add, addAsync, attach, defer, detach, getElementById, getFlexDirection, getLayout, getTotalChildren, remove, remove, removeAll, removeAllAsync, removeAsync, setFlexDirection, setLayout, setStyleId, setVisibility, setZIndex, syncWithRenderNode
addEffectListener, addHoverListener, applyEffect, equals, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabled
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListener
public TextButton()
TextButton
public TextButton(java.lang.String id)
id
- The unique ID for this TextButton
public java.lang.String getText()
TextButton
String
by defaultpublic void setText(java.lang.String text)
TextButton
text
- A non-null String
public HorizontalAlignment getTextAlignment()
HorizontalAlignment
of the button's textHorizontalAlignment.CENTER
by defaultpublic void setTextAlignment(HorizontalAlignment textAlignment)
HorizontalAlignment
of the button's texttextAlignment
- The text alignment