public class TextButton extends Button
asyncAddQueue, asyncRemoveAll, asyncRemoveQueue, children, renderNodeeffects, 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, setEnabledadd, add, addAsync, attach, detach, getElementById, getFlexDirection, getLayout, getTotalChildren, remove, remove, removeAll, removeAllAsync, removeAsync, setFlexDirection, setLayout, setStyleId, setVisibility, setZIndex, syncWithRenderNodeaddEffectListener, addHoverListener, applyEffect, equals, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabledclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListenerpublic TextButton()
TextButtonpublic TextButton(java.lang.String id)
id - The unique ID for this TextButtonpublic java.lang.String getText()
TextButtonString by defaultpublic void setText(java.lang.String text)
TextButtontext - A non-null Stringpublic HorizontalAlignment getTextAlignment()
HorizontalAlignment of the button's textHorizontalAlignment.CENTER by defaultpublic void setTextAlignment(HorizontalAlignment textAlignment)
HorizontalAlignment of the button's texttextAlignment - The text alignment