public class DefaultExpandStrategy extends Object implements CLocationExpandStrategy
CLocationExpandStrategy
. This strategy
just contains a list for all known DockableProperty
s and can react
to each property accordinglyModifier and Type | Field and Description |
---|---|
static String |
EXTENSION_PARAM
Name of a parameter pointing to
this in an ExtensionName |
static Path |
STRATEGY_EXTENSION
Unique id of an extension of
CLocationExpandStrategy s that are utilizied before this strategy
is used. |
Constructor and Description |
---|
DefaultExpandStrategy(DockController controller)
Creates a new expand strategy loading extensions if available.
|
Modifier and Type | Method and Description |
---|---|
CLocation |
expand(CLocation location,
DockableProperty property)
Expands
location by creating a new location that represents
property . |
protected CLocation |
expand(CLocation location,
FlapDockProperty property)
Creates a new location by creating the child location of
location using
property for that step. |
protected CLocation |
expand(CLocation location,
ScreenDockProperty property)
Creates a new location by creating the child location of
location using
property for that step. |
protected CLocation |
expand(CLocation location,
SplitDockFullScreenProperty property)
Creates a new location by creating the child location of
location using
property for that step. |
protected CLocation |
expand(CLocation location,
SplitDockPathProperty property)
Creates a new location by creating the child location of
location using
property for that step. |
protected CLocation |
expand(CLocation location,
SplitDockPlaceholderProperty property)
Creates a new location by creating the child location of
location using
property for that step. |
protected CLocation |
expand(CLocation location,
SplitDockProperty property)
Creates a new location by creating the child location of
location using
property for that step. |
protected CLocation |
expand(CLocation location,
StackDockProperty property)
Creates a new location by creating the child location of
location using
property for that step. |
public static final Path STRATEGY_EXTENSION
CLocationExpandStrategy
s that are utilizied before this strategy
is used.public static final String EXTENSION_PARAM
this
in an ExtensionName
public DefaultExpandStrategy(DockController controller)
controller
- the controller in whose realm this strategy is usedpublic CLocation expand(CLocation location, DockableProperty property)
CLocationExpandStrategy
location
by creating a new location that represents
property
.expand
in interface CLocationExpandStrategy
location
- the location to expand, not null
property
- the property to expand, not null
, the
successor
can be ignored by this method.null
to indicate that
property
could not be understoodprotected CLocation expand(CLocation location, FlapDockProperty property)
location
using
property
for that step.location
- the location to expandproperty
- the property that is the source of the next locationnull
if no conversion is possibleprotected CLocation expand(CLocation location, ScreenDockProperty property)
location
using
property
for that step.location
- the location to expandproperty
- the property that is the source of the next locationnull
if no conversion is possibleprotected CLocation expand(CLocation location, SplitDockFullScreenProperty property)
location
using
property
for that step.location
- the location to expandproperty
- the property that is the source of the next locationnull
if no conversion is possibleprotected CLocation expand(CLocation location, SplitDockPathProperty property)
location
using
property
for that step.location
- the location to expandproperty
- the property that is the source of the next locationnull
if no conversion is possibleprotected CLocation expand(CLocation location, SplitDockPlaceholderProperty property)
location
using
property
for that step.location
- the location to expandproperty
- the property that is the source of the next locationnull
if no conversion is possibleprotected CLocation expand(CLocation location, SplitDockProperty property)
location
using
property
for that step.location
- the location to expandproperty
- the property that is the source of the next locationnull
if no conversion is possibleprotected CLocation expand(CLocation location, StackDockProperty property)
location
using
property
for that step.location
- the location to expandproperty
- the property that is the source of the next locationnull
if no conversion is possible