bibliothek.gui.dock.common.util
Class CDockUtilities

java.lang.Object
  extended by bibliothek.gui.dock.util.DockUtilities
      extended by bibliothek.gui.dock.common.util.CDockUtilities

public class CDockUtilities
extends DockUtilities

A set of utility methods usefull in the Common project

Author:
Benjamin Sigg
See Also:
DockUtilities

Nested Class Summary
 
Nested classes/interfaces inherited from class bibliothek.gui.dock.util.DockUtilities
DockUtilities.DockVisitor
 
Constructor Summary
CDockUtilities()
           
 
Method Summary
static CDockable getFirstDockable(DockElement element)
          Searches a CDockable in the tree starting with element.
static CStation<?> getFirstWorkingArea(CStation<?> station)
          Starting with station, and traversing the tree upwards, searches the first CStation which is a working area.
 
Methods inherited from class bibliothek.gui.dock.util.DockUtilities
acceptable, acceptable, append, checkLayoutLocked, disableCheckLayoutLocked, disabledIcon, ensureTreeValidity, ensureTreeValidity, getDirectChild, getLastProperty, getPropertyChain, getPropertyChain, getPropertyChain, getRoot, getShowingComponent, iconImage, isAncestor, isAncestor, listDockables, loadIcons, loadIcons, mergePlaceholders, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDockUtilities

public CDockUtilities()
Method Detail

getFirstWorkingArea

public static CStation<?> getFirstWorkingArea(CStation<?> station)
Starting with station, and traversing the tree upwards, searches the first CStation which is a working area.

Parameters:
station - the station on which to start the search
Returns:
the first working area (closest to station)

getFirstDockable

public static CDockable getFirstDockable(DockElement element)
Searches a CDockable in the tree starting with element. This method first travels along the selected dockables before searching the entire tree.

Parameters:
element - root of the tree
Returns:
the first CDockable that is found in element