Optional
complementaryClickHelper: ComplementaryClickHelperProtected
clickThe BaseClickHelper instances being mixed
Protected
keyboardThe helper for handling enter key presses
Protected
Readonly
listenersProtected
pointerThe helper for handling pointer clicks
Private
pointerProtected
refsPrivate
widgetThe widget that will be auto-scrolled when keyboard focused
The current click state
Listen to events from this helper. Duplicate listeners allowed.
Protected
dispatchDispatch an event to all listeners.
Protected
dispatchDispatch an event to a specific listener. Listener does not have to be added
Protected
Readonly
handleHandle event from Widget#handleEvent. Does most of the button logic.
The event from Widget#handleEvent
The root from Widget#handleEvent
Is the button being clicked enabled? If not, then the click state will remain unchanged, but the event will be captured
The bounding box to be used for detecting pointer clicks
True if the event should be captured, false otherwise
Handle focus dropping from a BlurEvent. If keyboard focus is dropped, then the button is released via the ButtonClickHelper#keyboardClickHelper click helper
Returns true if the focus type was the keyboard focus (and therefore the button probably needs to be re-painted)
Handle focus grabbing from a FocusEvent. If keyboard focus is gained, then the button is hovered via the ButtonClickHelper#keyboardClickHelper click helper
The focus type from the FocusEvent
Returns true if the focus type was the keyboard focus (and therefore the button probably needs to be re-painted)
Stop listening to events from this helper. If a duplicate listener is removed, only one is removed.
True if a listener was removed, false otherwise.
A CompoundClickHelper specialised for Button-like widgets. Handles pointer clicks and enter key-presses if the widget has a keyboard focus.
GenericClickHelper methods are still available, however, calls to the new methods provided by this class are preferrable; mostly they implement Widget methods.