bibliothek.gui.dock.action.actions
Class SimpleDropDownItemAction

java.lang.Object
  extended by bibliothek.gui.dock.action.actions.AbstractStandardDockAction
      extended by bibliothek.gui.dock.action.actions.SimpleDockAction
          extended by bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
All Implemented Interfaces:
DockAction, DropDownItemAction, StandardDockAction
Direct Known Subclasses:
SimpleButtonAction, SimpleSelectableAction

public abstract class SimpleDropDownItemAction
extends SimpleDockAction
implements DropDownItemAction

An action that can be shown as child of a DropDownAction and which has advanced information for the DropDownAction.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
listeners
 
Constructor Summary
SimpleDropDownItemAction()
           
 
Method Summary
 boolean isDropDownSelectable()
          Tells whether this action can be selected.
 boolean isDropDownSelectable(Dockable dockable)
          Tells whether this action can be selected by a DropDownAction, if it is shown for dockable.
 boolean isDropDownTriggerable(Dockable dockable, boolean selected)
          Tells whether this action can be triggered if it is shown as child of a DropDownAction.
 boolean isDropDownTriggerableNotSelected()
          Tells whether this action can be triggered when shown on, but not selected by, a DropDownAction or not.
 boolean isDropDownTriggerableSelected()
          Tells whether this action can be triggered when shown on and selected by a DropDownAction or not.
 void setDropDownSelectable(boolean dropDownSelectable)
          Sets whether this action can be selected if it is a child of a DropDownAction or not.
 void setDropDownTriggerableNotSelected(boolean dropDownTriggerableNotSelected)
          Sets whether this action can be triggered when shown on, but not selected by, a DropDownAction or not.
 void setDropDownTriggerableSelected(boolean dropDownTriggerableSelected)
          Sets whether this action can be triggered when shown on, and selected by, a DropDownAction or not.
 
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction
bound, getAccelerator, getDisabledIcon, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setText, setTooltip, trigger, unbound
 
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
addDockActionListener, bind, fireActionDisabledIconChanged, 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.DockAction
createView, trigger
 

Constructor Detail

SimpleDropDownItemAction

public SimpleDropDownItemAction()
Method Detail

setDropDownSelectable

public void setDropDownSelectable(boolean dropDownSelectable)
Sets whether this action can be selected if it is a child of a DropDownAction or not.

Parameters:
dropDownSelectable - true if this action can be selected

isDropDownSelectable

public boolean isDropDownSelectable(Dockable dockable)
Description copied from interface: DropDownItemAction
Tells whether this action can be selected by a DropDownAction, if it is shown for dockable.

Specified by:
isDropDownSelectable in interface DropDownItemAction
Parameters:
dockable - the Dockable for which the action is shown
Returns:
true if the action can be selected

isDropDownSelectable

public boolean isDropDownSelectable()
Tells whether this action can be selected.

Returns:
true if it can be selected
See Also:
setDropDownSelectable(boolean)

setDropDownTriggerableSelected

public void setDropDownTriggerableSelected(boolean dropDownTriggerableSelected)
Sets whether this action can be triggered when shown on, and selected by, a DropDownAction or not.

Parameters:
dropDownTriggerableSelected - true if this action can be triggered

isDropDownTriggerableSelected

public boolean isDropDownTriggerableSelected()
Tells whether this action can be triggered when shown on and selected by a DropDownAction or not.

Returns:
true if the action can be triggered

setDropDownTriggerableNotSelected

public void setDropDownTriggerableNotSelected(boolean dropDownTriggerableNotSelected)
Sets whether this action can be triggered when shown on, but not selected by, a DropDownAction or not.

Parameters:
dropDownTriggerableNotSelected - true if this action can be triggered

isDropDownTriggerableNotSelected

public boolean isDropDownTriggerableNotSelected()
Tells whether this action can be triggered when shown on, but not selected by, a DropDownAction or not.

Returns:
true if the action can be triggered

isDropDownTriggerable

public boolean isDropDownTriggerable(Dockable dockable,
                                     boolean selected)
Description copied from interface: DropDownItemAction
Tells whether this action can be triggered if it is shown as child of a DropDownAction.

Specified by:
isDropDownTriggerable in interface DropDownItemAction
Parameters:
dockable - the Dockable for which the action is shown
selected - 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.
Returns:
true if the action can be triggered