Class CmsContextMenu.ContextMenuOpenedOnComponentEvent

java.lang.Object
java.util.EventObject
org.opencms.ui.contextmenu.CmsContextMenu.ContextMenuOpenedOnComponentEvent
All Implemented Interfaces:
Serializable
Enclosing class:
CmsContextMenu

ContextMenuOpenedOnComponentEvent is an event fired by the context menu when it's opened from a component.

See Also:
  • Constructor Details

    • ContextMenuOpenedOnComponentEvent

      public ContextMenuOpenedOnComponentEvent(CmsContextMenu contextMenu, int x, int y, com.vaadin.ui.Component component)
      Constructor.

      Parameters:
      contextMenu - the context menu
      x - the client x position
      y - the client y position
      component - the component
  • Method Details

    • 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.