ButtonModel

Methods
5
Fields
None

Methods

MethodReturnsDescription
isPressed()booleanWhether it is pressed (the mouse is down on it).
isRollover()booleanWhether the pointer is over it.
isArmed()booleanWhether a release now would click it.
isSelected()booleanWhether it is selected.
addChangeListener(any)()Adds a ChangeListener: it hears every change of the state, as the button's own ChangeListeners do.

Returned by

MethodReturnsDescription
AbstractButton.getModelButtonModelThe model's state (isPressed, isRollover, ...) and its change listeners.

Method details

addChangeListener

addChangeListener: (ButtonModel, any) -> ()

Adds a ChangeListener: it hears every change of the state, as the button's own ChangeListeners do.