public class CPanelPopup.PanelPopup extends CommonSimpleButtonAction
Constructor and Description |
---|
CPanelPopup.PanelPopup()
Creates a new action
|
Modifier and Type | Method and Description |
---|---|
<V> V |
createView(ViewTarget<V> target,
ActionViewConverter converter,
Dockable dockable)
Creates a view for this action, for the platform
target and
with help of converter . |
CPanelPopup |
getAction()
Gets the
CAction that is represented by this action. |
void |
onMenuItemTrigger(Dockable dockable)
Called if the menu-item representing this action has been
hit.
|
void |
onMenuTrigger(JPopupMenu menu)
Called if a menu is opening a submenu in which
the content
is to be shown. |
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 . |
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 . |
void |
onTrigger(Dockable dockable,
JComponent item,
DockTitle.Orientation orientation)
|
boolean |
trigger(Dockable dockable)
Does the appropriate action that can be done respecting the current
state of this action.
|
action, addActionListener, getCommand, removeActionListener, setCommand
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
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, unbound
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
isDropDownSelectable, isDropDownTriggerable
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
public <V> V createView(ViewTarget<V> target, ActionViewConverter converter, Dockable dockable)
DockAction
target
and
with help of converter
. Clients might use their own
code to create a new view, but the preferred way is to call
ActionViewConverter.createView(ActionType, DockAction, ViewTarget, Dockable)
with an ActionType
that fits to this DockAction.createView
in interface DockAction
createView
in class SimpleButtonAction
V
- the type of view requestedtarget
- The platform on which the view will be usedconverter
- A set of methods that can be used to create a viewdockable
- The Dockable for which the view will be shown. Note that
this action may not yet be bound
to this action.public boolean trigger(Dockable dockable)
DockAction
trigger
in interface DockAction
trigger
in class SimpleButtonAction
dockable
- the element for which this action is calledtrue
if this action could do anything, false
if this action was not able to react in any way to the event.public CPanelPopup getAction()
CAction
that is represented by this action.getAction
in interface CommonDockAction
getAction
in class CommonSimpleButtonAction
null
public void onMousePressed(Dockable dockable, JComponent item, DockTitle.Orientation orientation)
item
of
of a DockTitle
which has orientation orientation
.dockable
- the element for which this panel is shownitem
- the pressed componentorientation
- the orientation of the titlepublic void onMouseReleased(Dockable dockable, JComponent item, DockTitle.Orientation orientation)
item
of
of a DockTitle
which has orientation orientation
.dockable
- the element for which this panel is shownitem
- the released componentorientation
- the orientation of the titlepublic void onTrigger(Dockable dockable, JComponent item, DockTitle.Orientation orientation)
dockable
- the element for which this panel is shownitem
- the triggered buttonorientation
- the orientation of the titlepublic void onMenuItemTrigger(Dockable dockable)
dockable
- the source of the eventpublic void onMenuTrigger(JPopupMenu menu)
the content
is to be shown.menu
- the new parent of the content