public class MutableButton extends Button
Interactable.FocusChangeDirection, Interactable.Result
Component.Alignment
Constructor and Description |
---|
MutableButton() |
MutableButton(Action action) |
MutableButton(String text) |
MutableButton(String text,
Action action) |
Modifier and Type | Method and Description |
---|---|
LanternaAction |
getAction() |
void |
setAction(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(String text)
public void setAction(Runnable runnable)
public LanternaAction getAction()