Class CmsContextMenu.ContextMenuOpenedOnComponentEvent

    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CmsContextMenu getContextMenu()
      Returns the context menu.
      com.vaadin.ui.Component getRequestSourceComponent()
      Returns the source component.
      int getX()
      Returns the client x position.
      int getY()
      Returns the client y position.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

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

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