Class CPanelPopup.PanelPopup

All Implemented Interfaces:
SharingDropDownItemAction, SharingStandardDockAction, ButtonDockAction, DockAction, DropDownItemAction, StandardDockAction, StandardDropDownItemAction, CommonDecoratableDockAction, CommonDockAction, CommonDropDownItem
Enclosing class:
CPanelPopup

public class CPanelPopup.PanelPopup extends CommonSimpleButtonAction
A custom action shows some dialog or window when triggered
Author:
Benjamin Sigg
  • Constructor Details

    • PanelPopup

      public PanelPopup()
      Creates a new action
  • Method Details

    • createView

      public <V> V createView(ViewTarget<V> target, ActionViewConverter converter, Dockable dockable)
      Specified by:
      createView in interface DockAction
      Overrides:
      createView in class SimpleButtonAction
    • trigger

      public boolean trigger(Dockable dockable)
      Specified by:
      trigger in interface DockAction
      Overrides:
      trigger in class SimpleButtonAction
    • getAction

      public CPanelPopup getAction()
      Gets the CAction that is represented by this action.
      Specified by:
      getAction in interface CommonDockAction
      Overrides:
      getAction in class CommonSimpleButtonAction
      Returns:
      the action, never null
    • onMousePressed

      public void onMousePressed(Dockable dockable, JComponent item, DockTitle.Orientation orientation)
      Called if the mouse is pressed on the button item of of a DockTitle which has orientation orientation.
      Parameters:
      dockable - the element for which this panel is shown
      item - the pressed component
      orientation - the orientation of the title
    • onMouseReleased

      public void onMouseReleased(Dockable dockable, JComponent item, DockTitle.Orientation orientation)
      Called if the mouse is released of the button item of of a DockTitle which has orientation orientation.
      Parameters:
      dockable - the element for which this panel is shown
      item - the released component
      orientation - the orientation of the title
    • onTrigger

      public void onTrigger(Dockable dockable, JComponent item, DockTitle.Orientation orientation)
      Called if the button item of a DockTitle which has orientation orientation was triggered.
      Parameters:
      dockable - the element for which this panel is shown
      item - the triggered button
      orientation - the orientation of the title
    • onMenuItemTrigger

      public void onMenuItemTrigger(Dockable dockable)
      Called if the menu-item representing this action has been hit.
      Parameters:
      dockable - the source of the event
    • onMenuTrigger

      public void onMenuTrigger(JPopupMenu menu)
      Called if a menu is opening a submenu in which the content is to be shown.
      Parameters:
      menu - the new parent of the content