org.openfaces.component.table
Class TreeStructure

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.openfaces.component.table.TreeStructure
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder
Direct Known Subclasses:
DynamicTreeStructure, StaticTreeStructure

public abstract class TreeStructure
extends javax.faces.component.UIComponentBase

A base class for all kinds of tree structure implementations. It defines a common interface that all tree structures can be queried with.

There can be any number of nodes on the top level. Each node has the following attributes:


Field Summary
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Method Summary
abstract  int getLevel()
           
abstract  int getNodeCount()
           
abstract  java.lang.Object getNodeData()
           
abstract  boolean getNodeHasChildren()
           
abstract  int getNodeIndex()
           
abstract  java.lang.Object getNodeKey()
           
abstract  void goToChildLevel()
           
abstract  void goToParentLevel()
           
abstract  void goToTopLevel()
           
abstract  boolean isNodeAvailable()
           
abstract  void setNodeIndex(int curentNodeIndex)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getFamily, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLevel

public abstract int getLevel()

goToTopLevel

public abstract void goToTopLevel()

goToChildLevel

public abstract void goToChildLevel()

goToParentLevel

public abstract void goToParentLevel()

getNodeCount

public abstract int getNodeCount()

setNodeIndex

public abstract void setNodeIndex(int curentNodeIndex)

getNodeIndex

public abstract int getNodeIndex()

isNodeAvailable

public abstract boolean isNodeAvailable()

getNodeKey

public abstract java.lang.Object getNodeKey()

getNodeData

public abstract java.lang.Object getNodeData()

getNodeHasChildren

public abstract boolean getNodeHasChildren()


Copyright © 1998-2010 TeamDev Ltd. All Rights Reserved.