public abstract class AbstractButton extends Widget:
Shared state for clickable buttons.
button = Button("Save")
button.clicked += lambda(event: ActionEvent): print("save")
button.click()| Modifier and Type | Member | Description |
|---|---|---|
| public property | iconicon as Icon |
No summary. |
| public property | isDefaultButtonisDefaultButton as Boolean |
No summary. |
| public property | isPressedisPressed as Boolean |
No summary. |
| public property | texttext as String |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | AbstractButtonAbstractButton(text as String = ""): |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | clickclick() as Void: |
Dispatches the button action. |
| public | performClickperformClick() as Void: |
Semantic alias of `click`. |
| public | presspress() as Boolean: |
Marks the button as pressed. |
| public | releaserelease(triggerAction as Boolean = true) as Void: |
Releases the button and optionally dispatches the action. |