public class DefaultDockActionDistributor extends java.lang.Object implements DockActionDistributor
DockActionDistributor
searches for the annotations
TabDockAction
, TitleDockAction
and InfoDockAction
to decide which DockAction
should
be shown where.DockActionDistributor.Target
Constructor and Description |
---|
DefaultDockActionDistributor() |
Modifier and Type | Method and Description |
---|---|
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
DockAction s 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. |
public DockActionSource createSource(Dockable dockable, DockActionDistributor.Target target)
DockActionDistributor
DockAction
s that are to be shown on a target
.createSource
in interface DockActionDistributor
dockable
- the source of the actionstarget
- where the source will be usedprotected DockActionSource createTabSource(DockActionSource source)
DockActionSource
for the DockActionDistributor.Target
DockActionDistributor.Target.TAB
.source
- the basic actionsprotected DockActionSource createInfoSource(DockActionSource source)
DockActionSource
for the DockActionDistributor.Target
DockActionDistributor.Target.INFO_COMPONENT
.source
- the basic actionsprotected DockActionSource createTitleSource(DockActionSource source)
DockActionSource
for the DockActionDistributor.Target
DockActionDistributor.Target.TITLE
or for
those actions that are not marked with any annotation.source
- the basic actions