chrriis.uihierarchy
Class SingleLevelAccessor

java.lang.Object
  extended bychrriis.uihierarchy.Accessor
      extended bychrriis.uihierarchy.SingleLevelAccessor
Direct Known Subclasses:
ParentLevelAccessor

public abstract class SingleLevelAccessor
extends Accessor

An accessor for a single hierarchy level.

Version:
1.0 2003.11.30
Author:
Christopher Deckers (chrriis@brainlex.com)

Nested Class Summary
 class SingleLevelAccessor.ConstraintsHandler
          A manipulator for the constraints of the SingleLevelAccessor.
 
Method Summary
 Component getComponent()
          Get the component at this hierarchy level.
 UIHConfig getConfig()
          Get the configuration the accessor uses.
 SingleLevelAccessor.ConstraintsHandler getConstraintsHandler()
          Get a handler for the constraints of the level of this accessor.
 String getDottedDecimalPath()
          Get the level path as a dotted decimal notation.
 SingleLevelAccessor next()
          Create an accessor for the next sibbling.
 SingleLevelAccessor parent()
          Create an accessor for the parent.
 SingleLevelAccessor previous()
          Create an accessor for the previous sibbling.
 
Methods inherited from class chrriis.uihierarchy.Accessor
forceEnabled, forceHEnabled, getComponents, getEnabledState, isEnabled, isEnabled, isHEnabled, isVisible, remove, run, runTraversing, setEnabled, setEnabled, setHEnabled, setHEnabled, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConstraintsHandler

public SingleLevelAccessor.ConstraintsHandler getConstraintsHandler()
Get a handler for the constraints of the level of this accessor.


getComponent

public Component getComponent()
Get the component at this hierarchy level.

Returns:
The component.

getConfig

public UIHConfig getConfig()
Get the configuration the accessor uses.

Returns:
The configuration.

previous

public SingleLevelAccessor previous()
Create an accessor for the previous sibbling.

Returns:
A hierarchy level accessor of the previous sibbling, or null if first child or no parent.

next

public SingleLevelAccessor next()
Create an accessor for the next sibbling.

Returns:
A hierarchy level accessor of the next sibbling, or null if last child.

parent

public SingleLevelAccessor parent()
Create an accessor for the parent.

Returns:
A hierarchy level accessor of the parent level, or null if no parent.

getDottedDecimalPath

public String getDottedDecimalPath()
Get the level path as a dotted decimal notation.

Returns:
The dotted decimal notation of the path to the level of this accessor.