bibliothek.gui.dock.common.location
Class DefaultExpandStrategy

java.lang.Object
  extended by bibliothek.gui.dock.common.location.DefaultExpandStrategy
All Implemented Interfaces:
CLocationExpandStrategy

public class DefaultExpandStrategy
extends Object
implements CLocationExpandStrategy

The default implementation of CLocationExpandStrategy. This strategy just contains a list for all known DockablePropertys and can react to each property accordingly

Author:
Benjamin Sigg

Field Summary
static String EXTENSION_PARAM
          Name of a parameter pointing to this in an ExtensionName
static Path STRATEGY_EXTENSION
          Unique id of an extension of CLocationExpandStrategys that are utilizied before this strategy is used.
 
Constructor Summary
DefaultExpandStrategy(DockController controller)
          Creates a new expand strategy loading extensions if available.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRATEGY_EXTENSION

public static final Path STRATEGY_EXTENSION
Unique id of an extension of CLocationExpandStrategys that are utilizied before this strategy is used.


EXTENSION_PARAM

public static final String EXTENSION_PARAM
Name of a parameter pointing to this in an ExtensionName

See Also:
Constant Field Values
Constructor Detail

DefaultExpandStrategy

public DefaultExpandStrategy(DockController controller)
Creates a new expand strategy loading extensions if available.

Parameters:
controller - the controller in whose realm this strategy is used
Method Detail

expand

public CLocation expand(CLocation location,
                        DockableProperty property)
Description copied from interface: CLocationExpandStrategy
Expands location by creating a new location that represents property.

Specified by:
expand in interface CLocationExpandStrategy
Parameters:
location - the location to expand, not null
property - the property to expand, not null, the successor can be ignored by this method.
Returns:
the expanded location, can be null to indicate that property could not be understood

expand

protected CLocation expand(CLocation location,
                           FlapDockProperty property)
Creates a new location by creating the child location of location using property for that step.

Parameters:
location - the location to expand
property - the property that is the source of the next location
Returns:
the new location or null if no conversion is possible

expand

protected CLocation expand(CLocation location,
                           ScreenDockProperty property)
Creates a new location by creating the child location of location using property for that step.

Parameters:
location - the location to expand
property - the property that is the source of the next location
Returns:
the new location or null if no conversion is possible

expand

protected CLocation expand(CLocation location,
                           SplitDockFullScreenProperty property)
Creates a new location by creating the child location of location using property for that step.

Parameters:
location - the location to expand
property - the property that is the source of the next location
Returns:
the new location or null if no conversion is possible

expand

protected CLocation expand(CLocation location,
                           SplitDockPathProperty property)
Creates a new location by creating the child location of location using property for that step.

Parameters:
location - the location to expand
property - the property that is the source of the next location
Returns:
the new location or null if no conversion is possible

expand

protected CLocation expand(CLocation location,
                           SplitDockPlaceholderProperty property)
Creates a new location by creating the child location of location using property for that step.

Parameters:
location - the location to expand
property - the property that is the source of the next location
Returns:
the new location or null if no conversion is possible

expand

protected CLocation expand(CLocation location,
                           SplitDockProperty property)
Creates a new location by creating the child location of location using property for that step.

Parameters:
location - the location to expand
property - the property that is the source of the next location
Returns:
the new location or null if no conversion is possible

expand

protected CLocation expand(CLocation location,
                           StackDockProperty property)
Creates a new location by creating the child location of location using property for that step.

Parameters:
location - the location to expand
property - the property that is the source of the next location
Returns:
the new location or null if no conversion is possible