public class MutableButton extends Button
Interactable.FocusChangeDirection, Interactable.Result
Component.Alignment
Constructor and Description |
---|
MutableButton() |
MutableButton(Action action) |
MutableButton(java.lang.String text) |
MutableButton(java.lang.String text,
Action action) |
Modifier and Type | Method and Description |
---|---|
LanternaAction |
getAction() |
void |
setAction(java.lang.Runnable runnable) |
afterEnteredFocus, afterLeftFocus, calculatePreferredSize, getText, keyboardInteraction, repaint, setText
getHotspot, hasFocus, onEnterFocus, onLeaveFocus, setHotspot
addBorder, addComponentListener, getAlignment, getComponentListeners, getGUIScreen, getMinimumSize, getParent, getPreferredSize, getWindow, invalidate, isScrollable, isVisible, removeComponentListener, setAlignment, setParent, setPreferredSize, setVisible, transformAccordingToAlignment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBorder, addComponentListener, getAlignment, getMinimumSize, getParent, getPreferredSize, getWindow, isScrollable, isVisible, removeComponentListener, setAlignment, setPreferredSize, setVisible
public MutableButton()
public MutableButton(Action action)
public MutableButton(java.lang.String text)
public MutableButton(java.lang.String text, Action action)
public void setAction(java.lang.Runnable runnable)
public LanternaAction getAction()