Class DefaultExpandStrategy

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

  • Constructor Details

    • 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 Details

    • 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