bibliothek.gui.dock.component
Class DefaultDockComponentManager

java.lang.Object
  extended by bibliothek.gui.dock.component.DefaultDockComponentManager
All Implemented Interfaces:
DockComponentManager

public class DefaultDockComponentManager
extends Object
implements DockComponentManager

Default implementation of DockComponentManager.

Author:
Benjamin Sigg

Constructor Summary
DefaultDockComponentManager()
           
 
Method Summary
 void addConfiguration(Filter<DockComponentRoot> filter, DockComponentConfiguration configuration)
          Adds a new configuration, the configuration is only applied if filter includes a DockComponentRoot, and if no other configuration was applied
 void register(DockComponentRoot root)
          Adds root to the list of known DockComponentRoots, informs all listeners and applies a configuration to root.
 void removeConfiguration(DockComponentConfiguration configuration)
          Removes configuration from the list of configurations.
 void setDefaultConfiguration(DockComponentConfiguration configuration)
          Sets the default configuration which is to be used if no other configuration is found.
 void unregister(DockComponentRoot root)
          Removes root from the list of known DockComponentRoots.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDockComponentManager

public DefaultDockComponentManager()
Method Detail

setDefaultConfiguration

public void setDefaultConfiguration(DockComponentConfiguration configuration)
Description copied from interface: DockComponentManager
Sets the default configuration which is to be used if no other configuration is found.

Specified by:
setDefaultConfiguration in interface DockComponentManager
Parameters:
configuration - the default configuration, may be null

addConfiguration

public void addConfiguration(Filter<DockComponentRoot> filter,
                             DockComponentConfiguration configuration)
Description copied from interface: DockComponentManager
Adds a new configuration, the configuration is only applied if filter includes a DockComponentRoot, and if no other configuration was applied

Specified by:
addConfiguration in interface DockComponentManager
Parameters:
filter - the condition telling where to apply the configuration, not null
configuration - the new configuration, not null

removeConfiguration

public void removeConfiguration(DockComponentConfiguration configuration)
Description copied from interface: DockComponentManager
Removes configuration from the list of configurations. If configuration was added more than once, then only the first occurrence will be removed.

Specified by:
removeConfiguration in interface DockComponentManager
Parameters:
configuration - the configuration that should no longer be applied

register

public void register(DockComponentRoot root)
Description copied from interface: DockComponentManager
Adds root to the list of known DockComponentRoots, informs all listeners and applies a configuration to root.

Specified by:
register in interface DockComponentManager
Parameters:
root - the new root, not null

unregister

public void unregister(DockComponentRoot root)
Description copied from interface: DockComponentManager
Removes root from the list of known DockComponentRoots.

Specified by:
unregister in interface DockComponentManager
Parameters:
root - the root to remove