Package org.evoludo.ui
Class ContextMenu.Registration
Object
Registration
- All Implemented Interfaces:
HandlerRegistration
,HandlerRegistration
- Enclosing class:
ContextMenu
Manage registrations of listener widgets, their context menu providers and
the corresponding event handlers. Used for a lookup table to match listeners
and providers with the listeners serving as the lookup key.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate HandlerRegistration
The reference to the context menu event handler.private ContextMenu.Listener
Listener widget for context menu requests.private ContextMenu.Provider
Provider of context menu entries for this listener widget.private HandlerRegistration
The reference to the touch cancel event handler.private HandlerRegistration
The reference to the touch end event handler.private HandlerRegistration
The reference to the touch move event handler.private HandlerRegistration
The reference to the touch start event handler. -
Constructor Summary
ConstructorsConstructorDescriptionRegistration
(ContextMenu.Listener listener, ContextMenu.Provider provider) Register all event handlers relevant for handling context menus withlistener
widget and associate with the context menuprovider
. -
Method Summary
Modifier and TypeMethodDescriptionGet the listener widget for context menu events.Get the provider of entries of context menu for this listener widget.void
-
Field Details
-
contextMenuHandler
The reference to the context menu event handler. -
touchStartHandler
The reference to the touch start event handler. -
touchEndHandler
The reference to the touch end event handler. -
touchMoveHandler
The reference to the touch move event handler. -
touchCancelHandler
The reference to the touch cancel event handler. -
provider
Provider of context menu entries for this listener widget. -
listener
Listener widget for context menu requests.
-
-
Constructor Details
-
Registration
Register all event handlers relevant for handling context menus withlistener
widget and associate with the context menuprovider
.- Parameters:
listener
- widget sporting a context menuprovider
- provides context menu entries for this listener widget
-
-
Method Details
-
getProvider
Get the provider of entries of context menu for this listener widget.- Returns:
- the provider
-
getListener
Get the listener widget for context menu events.- Returns:
- the listening widget
-
removeHandler
public void removeHandler()- Specified by:
removeHandler
in interfaceHandlerRegistration
-