bibliothek.gui.dock.component
Class DefaultDockStationComponentRootHandler

java.lang.Object
  extended by bibliothek.gui.dock.component.DockComponentRootHandler
      extended by bibliothek.gui.dock.component.DefaultDockStationComponentRootHandler

public class DefaultDockStationComponentRootHandler
extends DockComponentRootHandler

This root handler stops traversing Components when discovering a DockableDisplayer

Author:
Benjamin Sigg

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.component.DockComponentRootHandler
DockComponentRootHandler.TraverseResult
 
Constructor Summary
DefaultDockStationComponentRootHandler(DockComponentRoot root, DisplayerCollection displayers)
          Creates a new handler.
 
Method Summary
protected  DockComponentRootHandler.TraverseResult shouldTraverse(Component component)
          Tells whether component should be visited and configured.
 
Methods inherited from class bibliothek.gui.dock.component.DockComponentRootHandler
addRoot, getConfiguration, removeRoot, setConfiguration, setController
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDockStationComponentRootHandler

public DefaultDockStationComponentRootHandler(DockComponentRoot root,
                                              DisplayerCollection displayers)
Creates a new handler.

Parameters:
root - the components represented by this, not null
displayers - all the DockableDisplayers, not null
Method Detail

shouldTraverse

protected DockComponentRootHandler.TraverseResult shouldTraverse(Component component)
Description copied from class: DockComponentRootHandler
Tells whether component should be visited and configured.

Specified by:
shouldTraverse in class DockComponentRootHandler
Parameters:
component - the component to check
Returns:
the exact behavior for component