bibliothek.gui.dock.station.stack.action
Class DefaultDockActionDistributor

java.lang.Object
  extended by bibliothek.gui.dock.station.stack.action.DefaultDockActionDistributor
All Implemented Interfaces:
DockActionDistributor
Direct Known Subclasses:
CDefaultDockActionDistributor

public class DefaultDockActionDistributor
extends Object
implements DockActionDistributor

This implementation of a DockActionDistributor searches for the annotations TabDockAction, TitleDockAction and InfoDockAction to decide which DockAction should be shown where.

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from interface bibliothek.gui.dock.station.stack.action.DockActionDistributor
DockActionDistributor.Target
 
Constructor Summary
DefaultDockActionDistributor()
           
 
Method Summary
protected  DockActionSource createInfoSource(DockActionSource source)
          Creates a new DockActionSource for the DockActionDistributor.Target DockActionDistributor.Target.INFO_COMPONENT.
 DockActionSource createSource(Dockable dockable, DockActionDistributor.Target target)
          Creates a selection of the DockActions that are to be shown on a target.
protected  DockActionSource createTabSource(DockActionSource source)
          Creates a new DockActionSource for the DockActionDistributor.Target DockActionDistributor.Target.TAB.
protected  DockActionSource createTitleSource(DockActionSource source)
          Creates a new DockActionSource for the DockActionDistributor.Target DockActionDistributor.Target.TITLE or for those actions that are not marked with any annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDockActionDistributor

public DefaultDockActionDistributor()
Method Detail

createSource

public DockActionSource createSource(Dockable dockable,
                                     DockActionDistributor.Target target)
Description copied from interface: DockActionDistributor
Creates a selection of the DockActions that are to be shown on a target.

Specified by:
createSource in interface DockActionDistributor
Parameters:
dockable - the source of the actions
target - where the source will be used
Returns:
the actions

createTabSource

protected DockActionSource createTabSource(DockActionSource source)
Creates a new DockActionSource for the DockActionDistributor.Target DockActionDistributor.Target.TAB.

Parameters:
source - the basic actions
Returns:
the filtered actions

createInfoSource

protected DockActionSource createInfoSource(DockActionSource source)
Creates a new DockActionSource for the DockActionDistributor.Target DockActionDistributor.Target.INFO_COMPONENT.

Parameters:
source - the basic actions
Returns:
the filtered actions

createTitleSource

protected DockActionSource createTitleSource(DockActionSource source)
Creates a new DockActionSource for the DockActionDistributor.Target DockActionDistributor.Target.TITLE or for those actions that are not marked with any annotation.

Parameters:
source - the basic actions
Returns:
the filtered actions