|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.action.actions.AbstractStandardDockAction bibliothek.gui.dock.action.actions.GroupedDockAction<K,D> bibliothek.gui.dock.action.actions.GroupedDropDownItemAction<K,D>
K
- the type of the keys used for groupsD
- the type of model used as grouppublic abstract class GroupedDropDownItemAction<K,D extends SimpleDropDownItemAction>
An action that can be shown as child of a DropDownAction
.
Field Summary |
---|
Fields inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
listeners |
Constructor Summary | |
---|---|
GroupedDropDownItemAction(GroupKeyGenerator<? extends K> generator)
Creates a new action. |
Method Summary | |
---|---|
boolean |
isDropDownSelectable(Dockable dockable)
Tells whether this action can be selected by a DropDownAction ,
if it is shown for dockable . |
boolean |
isDropDownSelectable(Object key)
Tells whether the group key can be selected by a
DropDownAction . |
boolean |
isDropDownTriggerable(Dockable dockable,
boolean selected)
Tells whether this action can be triggered if it is shown as child of a DropDownAction . |
boolean |
isDropDownTriggerable(Object key,
boolean selected)
Tells whether the group key can be triggered by a
DropDownAction . |
void |
setDropDownSelectable(K key,
boolean selectable)
Sets whether the group key can be selected by a
DropDownAction . |
void |
setDropDownTriggerableNotSelected(K key,
boolean triggerable)
Sets whether the group key can be triggered if the event
occurs in a menu. |
void |
setDropDownTriggerableSelected(K key,
boolean triggerable)
Sets whether the group key can be triggered if the event
occurs on a drop-down-button. |
Methods inherited from class bibliothek.gui.dock.action.actions.GroupedDockAction |
---|
bound, createGroup, createGroupKey, ensureGroup, getAccelerator, getDisabledIcon, getDisabledIcon, getGenerator, getGroup, getGroup, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, groupExists, isEnabled, isEnabled, isKnown, isRemoveEmptyGroups, removeGroup, setAccelerator, setDisabledIcon, setEnabled, setGenerator, setGroup, setIcon, setRemoveEmptyGroups, setText, setTooltip, trigger, unbound |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, 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.StandardDockAction |
---|
addDockActionListener, getDisabledIcon, getIcon, getText, getTooltipText, isEnabled, removeDockActionListener |
Methods inherited from interface bibliothek.gui.dock.action.DockAction |
---|
bind, createView, trigger, unbind |
Constructor Detail |
---|
public GroupedDropDownItemAction(GroupKeyGenerator<? extends K> generator)
generator
- the generator that will be used to get a key for
Dockables which do not yet have a key. The generator can be null
and set later through the method GroupedDockAction.setGenerator(GroupKeyGenerator)
Method Detail |
---|
public boolean isDropDownSelectable(Dockable dockable)
DropDownItemAction
DropDownAction
,
if it is shown for dockable
.
isDropDownSelectable
in interface DropDownItemAction
dockable
- the Dockable for which the action is shown
true
if the action can be selectedpublic boolean isDropDownSelectable(Object key)
key
can be selected by a
DropDownAction
.
key
- the name of the group
true
if the group can be selectedpublic void setDropDownSelectable(K key, boolean selectable)
key
can be selected by a
DropDownAction
.
key
- the name of the groupselectable
- true
if the group can be selectedpublic boolean isDropDownTriggerable(Dockable dockable, boolean selected)
DropDownItemAction
DropDownAction
.
isDropDownTriggerable
in interface DropDownItemAction
dockable
- the Dockable for which the action is shownselected
- true
if the action is selected (the action
is triggered because the user clicks onto the DropDownAction
),
or false
if this action is just in a menu.
true
if the action can be triggeredpublic boolean isDropDownTriggerable(Object key, boolean selected)
key
can be triggered by a
DropDownAction
.
key
- the name of the groupselected
- true
if the event will be on a
drop-down-button itself, false
if the event is
in the menu.
true
if the group can be triggeredpublic void setDropDownTriggerableSelected(K key, boolean triggerable)
key
can be triggered if the event
occurs on a drop-down-button.
key
- the name of the grouptriggerable
- true
if the group can be triggeredpublic void setDropDownTriggerableNotSelected(K key, boolean triggerable)
key
can be triggered if the event
occurs in a menu.
key
- the name of the grouptriggerable
- true
if the group can be triggered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |