public class DefaultDockComponentManager extends 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 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. |
public void setDefaultConfiguration(DockComponentConfiguration configuration)
DockComponentManagersetDefaultConfiguration in interface DockComponentManagerconfiguration - the default configuration, may be nullpublic void addConfiguration(Filter<DockComponentRoot> filter, DockComponentConfiguration configuration)
DockComponentManagerfilter includes a DockComponentRoot, and
if no other configuration was appliedaddConfiguration in interface DockComponentManagerfilter - the condition telling where to apply the configuration, not nullconfiguration - the new configuration, not nullpublic void removeConfiguration(DockComponentConfiguration configuration)
DockComponentManagerconfiguration from the list of configurations. If configuration was added more than once,
then only the first occurrence will be removed.removeConfiguration in interface DockComponentManagerconfiguration - the configuration that should no longer be appliedpublic void register(DockComponentRoot root)
DockComponentManagerroot to the list of known DockComponentRoots, informs all listeners and applies a configuration
to root.register in interface DockComponentManagerroot - the new root, not nullpublic void unregister(DockComponentRoot root)
DockComponentManagerroot from the list of known DockComponentRoots.unregister in interface DockComponentManagerroot - the root to removeCopyright © 2017 Docking Frames. All rights reserved.