|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.component.DockComponentRootHandler
public abstract class DockComponentRootHandler
A wrapper for a DockComponentRoot
, implements all the features required to fully support
DockComponentConfiguration
.
Nested Class Summary | |
---|---|
protected static class |
DockComponentRootHandler.TraverseResult
Behavior for traversing the Component tree |
Constructor Summary | |
---|---|
DockComponentRootHandler(DockComponentRoot root)
Creates a new handler |
Method Summary | |
---|---|
void |
addRoot(Component component)
Adds component as root Component , it will be forwarded to the DockComponentConfiguration . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockComponentRootHandler(DockComponentRoot root)
root
- the root represented by this
, not null
Method Detail |
---|
public 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 null
public DockComponentConfiguration getConfiguration()
root
. Note that this method
does not call DockComponentRoot.getComponentConfiguration()
, instead it is expected to be called by
said method.
null
public void setController(DockController controller)
controller
- the controller, can be null
public void addRoot(Component component)
component
as root Component
, it will be forwarded to the DockComponentConfiguration
.
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 check
component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |