|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbibliothek.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
public class CPanelPopup.PanelPopup
A custom action shows some dialog or window when triggered
| Constructor Summary | |
|---|---|
CPanelPopup.PanelPopup()
Creates a new action |
|
| Method Summary | ||
|---|---|---|
|
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(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(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(JComponent item,
DockTitle.Orientation orientation)
Called if the button item of a DockTitle which has
orientation orientation was triggered. |
|
boolean |
trigger(Dockable dockable)
Does the appropriate action that can be done respecting the current state of this action. |
|
| Methods inherited from class bibliothek.gui.dock.action.actions.SimpleButtonAction |
|---|
action, addActionListener, getCommand, removeActionListener, setCommand |
| Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDropDownItemAction |
|---|
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected |
| Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction |
|---|
bound, getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, trigger, unbound |
| Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
|---|
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface bibliothek.gui.dock.action.actions.SharingDropDownItemAction |
|---|
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected |
| Methods inherited from interface bibliothek.gui.dock.action.actions.SharingStandardDockAction |
|---|
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip |
| Methods inherited from interface bibliothek.gui.dock.action.StandardDockAction |
|---|
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener |
| Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction |
|---|
isDropDownSelectable, isDropDownTriggerable |
| Methods inherited from interface bibliothek.gui.dock.action.actions.SharingStandardDockAction |
|---|
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip |
| Methods inherited from interface bibliothek.gui.dock.action.StandardDockAction |
|---|
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener |
| Constructor Detail |
|---|
public CPanelPopup.PanelPopup()
| Method Detail |
|---|
public <V> V createView(ViewTarget<V> target,
ActionViewConverter converter,
Dockable dockable)
DockActiontarget 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 DockActioncreateView in class SimpleButtonActionV - 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 DockActiontrigger in class SimpleButtonActiondockable - the element for which this action is called
true 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 CommonDockActiongetAction in class CommonSimpleButtonActionnull
public void onMousePressed(JComponent item,
DockTitle.Orientation orientation)
item of
of a DockTitle which has orientation orientation.
item - the pressed componentorientation - the orientation of the title
public void onMouseReleased(JComponent item,
DockTitle.Orientation orientation)
item of
of a DockTitle which has orientation orientation.
item - the released componentorientation - the orientation of the title
public void onTrigger(JComponent item,
DockTitle.Orientation orientation)
item of a DockTitle which has
orientation orientation was triggered.
item - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||