Protected
keyboardThe helper for handling enter key presses
Protected
pointerThe helper for handling pointer clicks
Private
pointerPrivate
widgetThe widget that will be auto-scrolled when keyboard focused
The current click state
See BaseClickHelper#clickStateChanged.
Note that this does not check if the combined state has changed, it only check if any of the states in CompoundClickHelper#clickHelpers has changed, meaning that this can be true while CompoundClickHelper#clickState is equal to CompoundClickHelper#lastClickState. To check whether the combined state changed, compare the aforementioned values. This is the default behaviour so that clicks aren't dropped.
Last click state
Similar to BaseClickHelper#wasClick, except that the wasClick property for each click helper is only true if the BaseClickHelper#clickStateChanged property is also true.
Unsets the BaseClickHelper#clickStateChanged flag in each click helper instance being mixed.
Handle 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
Returns a 2-tuple containing, respective, whether a click occurred, and whether the event should be captured
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)
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.