Package org.opencms.ui.contextmenu
Class CmsContextMenu.ContextMenuOpenedOnComponentEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.opencms.ui.contextmenu.CmsContextMenu.ContextMenuOpenedOnComponentEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- CmsContextMenu
public static class CmsContextMenu.ContextMenuOpenedOnComponentEvent extends java.util.EventObject
ContextMenuOpenedOnComponentEvent is an event fired by the context menu when it's opened from a component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContextMenuOpenedOnComponentEvent(CmsContextMenu contextMenu, int x, int y, com.vaadin.ui.Component component)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsContextMenugetContextMenu()Returns the context menu.com.vaadin.ui.ComponentgetRequestSourceComponent()Returns the source component.intgetX()Returns the client x position.intgetY()Returns the client y position.
-
-
-
Constructor Detail
-
ContextMenuOpenedOnComponentEvent
public ContextMenuOpenedOnComponentEvent(CmsContextMenu contextMenu, int x, int y, com.vaadin.ui.Component component)
Constructor.- Parameters:
contextMenu- the context menux- the client x positiony- the client y positioncomponent- the component
-
-
Method Detail
-
getContextMenu
public CmsContextMenu getContextMenu()
Returns the context menu.- Returns:
- ContextMenu that was opened.
-
getRequestSourceComponent
public com.vaadin.ui.Component getRequestSourceComponent()
Returns the source component.- Returns:
- Component which initiated the context menu open request.
-
getX
public int getX()
Returns the client x position.- Returns:
- x-coordinate of open position.
-
getY
public int getY()
Returns the client y position.- Returns:
- y-coordinate of open position.
-
-