Class CPanelPopup.PanelPopup
java.lang.Object
bibliothek.gui.dock.action.actions.AbstractStandardDockAction
bibliothek.gui.dock.action.actions.SimpleDockAction
bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
bibliothek.gui.dock.action.actions.SimpleButtonAction
bibliothek.gui.dock.common.action.core.CommonSimpleButtonAction
bibliothek.gui.dock.common.action.CPanelPopup.PanelPopup
- All Implemented Interfaces:
SharingDropDownItemAction,SharingStandardDockAction,ButtonDockAction,DockAction,DropDownItemAction,StandardDockAction,StandardDropDownItemAction,CommonDecoratableDockAction,CommonDockAction,CommonDropDownItem
- Enclosing class:
CPanelPopup
A custom action shows some dialog or window when triggered
- Author:
- Benjamin Sigg
-
Field Summary
Fields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> VcreateView(ViewTarget<V> target, ActionViewConverter converter, Dockable dockable) Gets theCActionthat is represented by this action.voidonMenuItemTrigger(Dockable dockable) Called if the menu-item representing this action has been hit.voidonMenuTrigger(JPopupMenu menu) Called if a menu is opening a submenu in whichthe contentis to be shown.voidonMousePressed(Dockable dockable, JComponent item, DockTitle.Orientation orientation) Called if the mouse is pressed on the buttonitemof of aDockTitlewhich has orientationorientation.voidonMouseReleased(Dockable dockable, JComponent item, DockTitle.Orientation orientation) Called if the mouse is released of the buttonitemof of aDockTitlewhich has orientationorientation.voidonTrigger(Dockable dockable, JComponent item, DockTitle.Orientation orientation) booleanMethods inherited from class bibliothek.gui.dock.action.actions.SimpleButtonAction
action, addActionListener, getCommand, removeActionListener, setCommandMethods inherited from class bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedMethods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction
bound, getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isAcceleratorGlobal, isEnabled, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, trigger, unboundMethods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface bibliothek.gui.dock.action.DockAction
bind, unbindMethods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction
isDropDownSelectable, isDropDownTriggerableMethods inherited from interface bibliothek.gui.dock.action.actions.SharingDropDownItemAction
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedMethods inherited from interface bibliothek.gui.dock.action.actions.SharingStandardDockAction
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltipMethods inherited from interface bibliothek.gui.dock.action.StandardDockAction
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
-
Constructor Details
-
PanelPopup
public PanelPopup()Creates a new action
-
-
Method Details
-
createView
- Specified by:
createViewin interfaceDockAction- Overrides:
createViewin classSimpleButtonAction
-
trigger
- Specified by:
triggerin interfaceDockAction- Overrides:
triggerin classSimpleButtonAction
-
getAction
Gets theCActionthat is represented by this action.- Specified by:
getActionin interfaceCommonDockAction- Overrides:
getActionin classCommonSimpleButtonAction- Returns:
- the action, never
null
-
onMousePressed
Called if the mouse is pressed on the buttonitemof of aDockTitlewhich has orientationorientation.- Parameters:
dockable- the element for which this panel is shownitem- the pressed componentorientation- the orientation of the title
-
onMouseReleased
Called if the mouse is released of the buttonitemof of aDockTitlewhich has orientationorientation.- Parameters:
dockable- the element for which this panel is shownitem- the released componentorientation- the orientation of the title
-
onTrigger
- Parameters:
dockable- the element for which this panel is shownitem- the triggered buttonorientation- the orientation of the title
-
onMenuItemTrigger
Called if the menu-item representing this action has been hit.- Parameters:
dockable- the source of the event
-
onMenuTrigger
Called if a menu is opening a submenu in whichthe contentis to be shown.- Parameters:
menu- the new parent of the content
-