isPressed
isPressed: (ButtonModel) -> booleanWhether it is pressed (the mouse is down on it).
| Method | Returns | Description |
|---|---|---|
isPressed() | boolean | Whether it is pressed (the mouse is down on it). |
isRollover() | boolean | Whether the pointer is over it. |
isArmed() | boolean | Whether a release now would click it. |
isSelected() | boolean | Whether it is selected. |
addChangeListener(any) | () | Adds a ChangeListener: it hears every change of the state, as the button's own ChangeListeners do. |
| Method | Returns | Description |
|---|---|---|
AbstractButton.getModel | ButtonModel | The model's state (isPressed, isRollover, ...) and its change listeners. |
isPressedisPressed: (ButtonModel) -> booleanWhether it is pressed (the mouse is down on it).
isRolloverisRollover: (ButtonModel) -> booleanWhether the pointer is over it.
isArmedisArmed: (ButtonModel) -> booleanWhether a release now would click it.
isSelectedisSelected: (ButtonModel) -> booleanWhether it is selected.
addChangeListeneraddChangeListener: (ButtonModel, any) -> ()Adds a ChangeListener: it hears every change of the state, as the button's own ChangeListeners do.