Package org.evoludo.ui
Interface ContextMenu.Listener
- All Superinterfaces:
HasContextMenuHandlers,HasHandlers,HasTouchCancelHandlers,HasTouchEndHandlers,HasTouchMoveHandlers,HasTouchStartHandlers
- All Known Implementing Classes:
AbstractGraph,Console.Log,GenericPopGraph,HistoGraph,LineGraph,ParaGraph,PopGraph2D,PopGraph3D,S3Graph
- Enclosing class:
ContextMenu
public static interface ContextMenu.Listener
extends HasContextMenuHandlers, HasTouchStartHandlers, HasTouchEndHandlers, HasTouchMoveHandlers, HasTouchCancelHandlers
Listener interface for widgets that offer context menus. This ensures proper
placement of the context menu.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the absolute left positioning of the widget requesting the context menu.intGet the absolute top positioning of the widget requesting the context menu.Methods inherited from interface HasContextMenuHandlers
addContextMenuHandlerMethods inherited from interface HasHandlers
fireEventMethods inherited from interface HasTouchCancelHandlers
addTouchCancelHandlerMethods inherited from interface HasTouchEndHandlers
addTouchEndHandlerMethods inherited from interface HasTouchMoveHandlers
addTouchMoveHandlerMethods inherited from interface HasTouchStartHandlers
addTouchStartHandler
-
Method Details
-
getAbsoluteLeft
int getAbsoluteLeft()Get the absolute left positioning of the widget requesting the context menu.- Returns:
- the absolute left of widget
-
getAbsoluteTop
int getAbsoluteTop()Get the absolute top positioning of the widget requesting the context menu.- Returns:
- absolute top of widget
-