public class DefaultDockComponentManager extends java.lang.Object implements DockComponentManager
DockComponentManager
.Constructor and Description |
---|
DefaultDockComponentManager() |
Modifier and Type | Method and Description |
---|---|
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 DockComponentRoot s, 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 DockComponentRoot s. |
public void setDefaultConfiguration(DockComponentConfiguration configuration)
DockComponentManager
setDefaultConfiguration
in interface DockComponentManager
configuration
- the default configuration, may be null
public void addConfiguration(Filter<DockComponentRoot> filter, DockComponentConfiguration configuration)
DockComponentManager
filter
includes a DockComponentRoot
, and
if no other configuration was appliedaddConfiguration
in interface DockComponentManager
filter
- the condition telling where to apply the configuration, not null
configuration
- the new configuration, not null
public void removeConfiguration(DockComponentConfiguration configuration)
DockComponentManager
configuration
from the list of configurations. If configuration
was added more than once,
then only the first occurrence will be removed.removeConfiguration
in interface DockComponentManager
configuration
- the configuration that should no longer be appliedpublic void register(DockComponentRoot root)
DockComponentManager
root
to the list of known DockComponentRoot
s, informs all listeners and applies a configuration
to root
.register
in interface DockComponentManager
root
- the new root, not null
public void unregister(DockComponentRoot root)
DockComponentManager
root
from the list of known DockComponentRoot
s.unregister
in interface DockComponentManager
root
- the root to remove