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, syncWithRenderNode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addHoverListener, getId, notifyHoverListenersOnBeginHover, notifyHoverListenersOnEndHover, removeHoverListener
public Button()
Button
public Button(java.lang.String id)
id
- The unique ID of this Button
public void notifyActionListenersOfBeginEvent()
notifyActionListenersOfBeginEvent
in interface Actionable
public void notifyActionListenersOfEndEvent()
notifyActionListenersOfEndEvent
in interface Actionable
public void addActionListener(ActionListener listener)
addActionListener
in interface Actionable
public void removeActionListener(ActionListener listener)
removeActionListener
in interface Actionable
public boolean isEnabled()
isEnabled
in interface Actionable
public void setEnabled(boolean enabled)
setEnabled
in interface Actionable
public java.lang.String getLayout()
Button
LayoutRuleset.DEFAULT_LAYOUT
by defaultpublic abstract void setLayout(java.lang.String layout)
Button
layout
-