bibliothek.gui.dock.action.dropdown
Interface DropDownItemAction

All Known Subinterfaces:
ButtonDockAction, CommonDropDownItem, CommonSelectableAction, SelectableDockAction, SharingDropDownItemAction, SharingSelectableDockAction, StandardDropDownItemAction
All Known Implementing Classes:
CCloseAction.Action, CExtendedModeAction.Action, CloseAction, CommonSimpleButtonAction, CommonSimpleCheckAction, CommonSimpleRadioAction, CPanelPopup.PanelPopup, DockFrontend.Hider, ExternalizedModeAction, FlapDockHoldToggle, GroupedButtonDockAction, GroupedDropDownItemAction, GroupedSelectableDockAction, GroupedSelectableDockAction.Check, GroupedSelectableDockAction.Radio, LocationModeAction, MaximizedModeAction, MinimizedModeAction, NormalModeAction, RenameAction, RenameAction.RenameDefaultDockable, RenameAction.RenameFlapDockStation, RenameAction.RenameSplitDockStation, RenameAction.RenameStackDockStation, ReplaceAction, ScreenFullscreenAction, SimpleButtonAction, SimpleDropDownItemAction, SimpleSelectableAction, SimpleSelectableAction.Check, SimpleSelectableAction.Radio, SplitFullScreenAction, StationChildrenActionSource.FocusAction

public interface DropDownItemAction

An action that can be child of a DropDownAction. The properties of this action are read by the view, for example if this action is wrapped into a DropDownViewItem.

Author:
Benjamin Sigg

Method Summary
 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.
 

Method Detail

isDropDownSelectable

boolean isDropDownSelectable(Dockable dockable)
Tells whether this action can be selected by a DropDownAction, if it is shown for dockable.

Parameters:
dockable - the Dockable for which the action is shown
Returns:
true if the action can be selected

isDropDownTriggerable

boolean isDropDownTriggerable(Dockable dockable,
                              boolean selected)
Tells whether this action can be triggered if it is shown as child of a DropDownAction.

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