public abstract class DockComponentRootHandler extends Object
DockComponentRoot, implements all the features required to fully support
DockComponentConfiguration.| Modifier and Type | Class and Description |
|---|---|
protected static class |
DockComponentRootHandler.TraverseResult
Behavior for traversing the
Component tree |
| Constructor and Description |
|---|
DockComponentRootHandler(DockComponentRoot root)
Creates a new handler
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRoot(Component component)
|
DockComponentConfiguration |
getConfiguration()
Gets the configuration that is applied to
root. |
void |
removeRoot(Component component)
Removes
component as root. |
void |
setConfiguration(DockComponentConfiguration configuration)
Sets the configuration that is to be applied to
root. |
void |
setController(DockController controller)
Sets the controller in whose realm this handler is used.
|
protected abstract DockComponentRootHandler.TraverseResult |
shouldTraverse(Component component)
Tells whether
component should be visited and configured. |
public DockComponentRootHandler(DockComponentRoot root)
root - the root represented by this, not nullpublic void setConfiguration(DockComponentConfiguration configuration)
root. Note that this
method does not call DockComponentRoot.setComponentConfiguration(DockComponentConfiguration), instead
it is expected to be called by said method.configuration - the new configuration, can be nullpublic DockComponentConfiguration getConfiguration()
root. Note that this method
does not call DockComponentRoot.getComponentConfiguration(), instead it is expected to be called by
said method.nullpublic void setController(DockController controller)
controller - the controller, can be nullpublic void addRoot(Component component)
component - a new root componentpublic void removeRoot(Component component)
component as root.component - the component to removeprotected abstract DockComponentRootHandler.TraverseResult shouldTraverse(Component component)
component should be visited and configured.component - the component to checkcomponentCopyright © 2017 Docking Frames. All rights reserved.