bibliothek.gui.dock.action.actions
Interface SharingDropDownDockAction

All Superinterfaces:
DockAction, DropDownAction, SharingStandardDockAction, StandardDockAction
All Known Implementing Classes:
CommonSimpleDropDownAction, SimpleDropDownAction

@FrameworkOnly
public interface SharingDropDownDockAction
extends SharingStandardDockAction, DropDownAction

A SharingDropDownDockAction is a DropDownAction whose properties are shared by all Dockables and whose properties can be set by the client.

Author:
Benjamin Sigg

Field Summary
 
Fields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER
 
Fields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER
 
Method Summary
 void add(DockAction action)
          Adds an action to the menu.
 void insert(int index, DockAction... action)
          Inserts a list of actions into the menu.
 void insert(int index, DockAction action)
          Inserts an action into the menu.
 void remove(DockAction action)
          Removes action from the menu.
 void remove(int index)
          Removes an action from the menu.
 int size()
          Gets the number of actions shown in the menu.
 
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
 
Methods inherited from interface bibliothek.gui.dock.action.DropDownAction
addDropDownActionListener, getFilter, getSelection, getSubActions, removeDropDownActionListener, setSelection
 
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
 

Method Detail

add

void add(DockAction action)
Adds an action to the menu.

Parameters:
action - the action to add

insert

void insert(int index,
            DockAction action)
Inserts an action into the menu.

Parameters:
index - the location of the action
action - the new action

insert

void insert(int index,
            DockAction... action)
Inserts a list of actions into the menu.

Parameters:
index - the location of the first action
action - the actions to add

remove

void remove(int index)
Removes an action from the menu.

Parameters:
index - the location of the action

size

int size()
Gets the number of actions shown in the menu.

Returns:
the number of actions

remove

void remove(DockAction action)
Removes action from the menu.

Parameters:
action - the action to remove