AbstractButton
classin packageklyn.gui.windows
public abstract class AbstractButton extends Widget:
└ AbstractButton
Shared state for clickable buttons.
button = Button("Save")
button.click()
Properties
Modifier and Type Member Description
public property icon
icon as Icon
No summary.
public property isDefaultButton
isDefaultButton as Boolean
No summary.
public property isPressed
isPressed as Boolean
No summary.
public property text
text as String
No summary.
Properties inherited from Widget: accentColor, backgroundColor, borderColor, bottom, canFocus, cornerRadius, font, foregroundColor, hasFocus, height, isEnabled, isHovered, isManaged, isVisible, layoutParams, margin, maxHeight, maxWidth, minHeight, minWidth, parent, preferredHeight, preferredWidth, right, styleClass, width, window, x, y
Constructors
Modifier and Type Member Description
public AbstractButton
AbstractButton(text as String = ""):
No summary.
Methods
Modifier and Type Member Description
public addActionListener
addActionListener(actionListener as ActionListener) as Void:
Registers an action listener.
public click
click() as Void:
Dispatches the button action.
public performClick
performClick() as Void:
Semantic alias of `click`.
public press
press() as Boolean:
Marks the button as pressed.
public release
release(triggerAction as Boolean = true) as Void:
Releases the button and optionally dispatches the action.
public removeActionListener
removeActionListener(actionListener as ActionListener) as Boolean:
Unregisters an action listener.
Methods inherited from Widget: blur, containsPoint, paint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds