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 java.lang.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

Constructor Summary
DefaultExpandStrategy()
           
 
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
 

Constructor Detail

DefaultExpandStrategy

public DefaultExpandStrategy()
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