AbstractButton
classin packageklyn.gui.windows
public abstract class AbstractButton extends Widget:
Shared state for clickable buttons.
button = Button("Save")
button.click()
Properties
| Modifier and Type |
Member |
Description |
| public property |
icon |
No summary. |
| public property |
isDefaultButton |
No summary. |
| public property |
isPressed |
No summary. |
| public property |
text |
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 |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public |
addActionListener |
Registers an action listener. |
| public |
click click() as Void:
|
Dispatches the button action. |
| public |
performClick performClick() as Void:
|
Semantic alias of `click`. |
| public |
press |
Marks the button as pressed. |
| public |
releaserelease(triggerAction as Boolean = true) as Void: |
Releases the button and optionally dispatches the action. |
| public |
removeActionListener |
Unregisters an action listener. |