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:
SharingDropDownItemAction, SharingStandardDockAction, DockAction, DropDownItemAction, StandardDockAction
Direct Known Subclasses:
SimpleButtonAction, SimpleSelectableAction

public abstract class SimpleDropDownItemAction
extends SimpleDockAction
implements DropDownItemAction, SharingDropDownItemAction

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
 
Fields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER
 
Constructor Summary
SimpleDropDownItemAction(boolean monitorDisabling)
          Creates a new action.
 
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, 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.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.DockAction
bind, createView, trigger, unbind
 

Constructor Detail

SimpleDropDownItemAction

public SimpleDropDownItemAction(boolean monitorDisabling)
Creates a new action.

Parameters:
monitorDisabling - whether to monitor the current DisablingStrategy
Method Detail

setDropDownSelectable

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

Specified by:
setDropDownSelectable in interface SharingDropDownItemAction
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()
Description copied from interface: SharingDropDownItemAction
Tells whether this action can be selected.

Specified by:
isDropDownSelectable in interface SharingDropDownItemAction
Returns:
true if it can be selected
See Also:
SharingDropDownItemAction.setDropDownSelectable(boolean)

setDropDownTriggerableSelected

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

Specified by:
setDropDownTriggerableSelected in interface SharingDropDownItemAction
Parameters:
dropDownTriggerableSelected - true if this action can be triggered

isDropDownTriggerableSelected

public boolean isDropDownTriggerableSelected()
Description copied from interface: SharingDropDownItemAction
Tells whether this action can be triggered when shown on and selected by a DropDownAction or not.

Specified by:
isDropDownTriggerableSelected in interface SharingDropDownItemAction
Returns:
true if the action can be triggered

setDropDownTriggerableNotSelected

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

Specified by:
setDropDownTriggerableNotSelected in interface SharingDropDownItemAction
Parameters:
dropDownTriggerableNotSelected - true if this action can be triggered

isDropDownTriggerableNotSelected

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

Specified by:
isDropDownTriggerableNotSelected in interface SharingDropDownItemAction
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