public abstract class Button extends UiElement implements Actionable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
layout |
effects, styleId, visibility, zIndex| Constructor and Description |
|---|
Button()
Constructor.
|
Button(java.lang.String id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener listener) |
java.lang.String |
getLayout()
Returns the current layout for this
Button |
boolean |
isEnabled() |
void |
notifyActionListenersOfBeginEvent() |
void |
notifyActionListenersOfEndEvent() |
void |
removeActionListener(ActionListener listener) |
void |
setEnabled(boolean enabled) |
abstract void |
setLayout(java.lang.String layout)
Sets the current layout for this
Button |
addEffectListener, addHoverListener, applyEffect, attach, detach, equals, getElementById, getId, getStyleId, getVisibility, getZIndex, hashCode, isDebugEnabled, notifyEffectListenersOnFinished, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeEffectListener, removeHoverListener, setDebugEnabled, setStyleId, setVisibility, setZIndex, syncWithRenderNodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListenerpublic Button()
Buttonpublic Button(java.lang.String id)
id - The unique ID of this Buttonpublic void notifyActionListenersOfBeginEvent()
notifyActionListenersOfBeginEvent in interface Actionablepublic void notifyActionListenersOfEndEvent()
notifyActionListenersOfEndEvent in interface Actionablepublic void addActionListener(ActionListener listener)
addActionListener in interface Actionablepublic void removeActionListener(ActionListener listener)
removeActionListener in interface Actionablepublic boolean isEnabled()
isEnabled in interface Actionablepublic void setEnabled(boolean enabled)
setEnabled in interface Actionablepublic java.lang.String getLayout()
ButtonLayoutRuleset.DEFAULT_LAYOUT by defaultpublic abstract void setLayout(java.lang.String layout)
Buttonlayout -