org.apache.myfaces.tobago.internal.component
Class AbstractUITreeNode

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIOutput
              extended by org.apache.myfaces.tobago.internal.component.AbstractUITreeNode
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.component.ValueHolder, SupportsMarkup, TreeModelBuilder, Configurable
Direct Known Subclasses:
UITreeNode

public abstract class AbstractUITreeNode
extends javax.faces.component.UIOutput
implements SupportsMarkup, TreeModelBuilder, Configurable


Field Summary
 
Fields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
AbstractUITreeNode()
           
 
Method Summary
 void addTreeExpansionListener(TreeExpansionListener listener)
           
 void addTreeMarkedListener(TreeMarkedListener listener)
           
 void broadcast(javax.faces.event.FacesEvent event)
           
 void buildTreeModelBegin(javax.faces.context.FacesContext facesContext, MixedTreeModel model)
           
 void buildTreeModelChildren(javax.faces.context.FacesContext facesContext, MixedTreeModel model)
           
 void buildTreeModelEnd(javax.faces.context.FacesContext facesContext, MixedTreeModel model)
           
 void encodeBegin(javax.faces.context.FacesContext context)
           
 int getDepth()
           
 List<Boolean> getJunctions()
           
 int getLevel()
          Returns the level of the tree node inside of the virtual tree.
 TreePath getPath()
           
abstract  javax.faces.el.MethodBinding getTreeExpansionListener()
           
 TreeExpansionListener[] getTreeExpansionListeners()
           
abstract  javax.faces.el.MethodBinding getTreeMarkedListener()
           
 TreeMarkedListener[] getTreeMarkedListeners()
           
 Object getValue()
           
abstract  boolean isExpanded()
           
 boolean isFolder()
           
 boolean isHasNextSibling()
           
abstract  boolean isMarked()
           
abstract  boolean isSelected()
           
 String nodeStateId(javax.faces.context.FacesContext facesContext)
           
 void removeStateChangeListener(TreeExpansionListener listener)
           
 void removeStateChangeListener(TreeMarkedListener listener)
           
 void restoreState(javax.faces.context.FacesContext context, Object componentState)
           
 Object saveState(javax.faces.context.FacesContext context)
           
 void setDepth(int depth)
           
abstract  void setExpanded(boolean expanded)
           
 void setFolder(boolean folder)
           
 void setHasNextSibling(boolean hasNextSibling)
           
 void setJunctions(List<Boolean> junctions)
           
abstract  void setMarked(boolean b)
           
 void setPath(TreePath path)
           
abstract  void setSelected(boolean selected)
           
abstract  void setTreeExpansionListener(javax.faces.el.MethodBinding treeExpansionListener)
           
abstract  void setTreeMarkedListener(javax.faces.el.MethodBinding treeMarkedListener)
           
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getFamily, getLocalValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.tobago.component.SupportsMarkup
getCurrentMarkup, getMarkup, setCurrentMarkup, setMarkup
 
Methods inherited from interface org.apache.myfaces.tobago.config.Configurable
getCurrentMarkup, getRendererType
 

Constructor Detail

AbstractUITreeNode

public AbstractUITreeNode()
Method Detail

buildTreeModelBegin

public void buildTreeModelBegin(javax.faces.context.FacesContext facesContext,
                                MixedTreeModel model)
Specified by:
buildTreeModelBegin in interface TreeModelBuilder

buildTreeModelChildren

public void buildTreeModelChildren(javax.faces.context.FacesContext facesContext,
                                   MixedTreeModel model)
Specified by:
buildTreeModelChildren in interface TreeModelBuilder

buildTreeModelEnd

public void buildTreeModelEnd(javax.faces.context.FacesContext facesContext,
                              MixedTreeModel model)
Specified by:
buildTreeModelEnd in interface TreeModelBuilder

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context)
                 throws IOException
Overrides:
encodeBegin in class javax.faces.component.UIComponentBase
Throws:
IOException

getValue

public Object getValue()
Specified by:
getValue in interface javax.faces.component.ValueHolder
Overrides:
getValue in class javax.faces.component.UIOutput

getLevel

public int getLevel()
Returns the level of the tree node inside of the virtual tree. The root node has level 0. The children of the root note have level 1, and so on.


nodeStateId

public String nodeStateId(javax.faces.context.FacesContext facesContext)

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         Object componentState)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIOutput

saveState

public Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIOutput

getDepth

public int getDepth()

setDepth

public void setDepth(int depth)

isFolder

public boolean isFolder()

setFolder

public void setFolder(boolean folder)

getPath

public TreePath getPath()

setPath

public void setPath(TreePath path)

getJunctions

public List<Boolean> getJunctions()

setJunctions

public void setJunctions(List<Boolean> junctions)

isHasNextSibling

public boolean isHasNextSibling()

setHasNextSibling

public void setHasNextSibling(boolean hasNextSibling)

getTreeExpansionListener

public abstract javax.faces.el.MethodBinding getTreeExpansionListener()

setTreeExpansionListener

public abstract void setTreeExpansionListener(javax.faces.el.MethodBinding treeExpansionListener)

addTreeExpansionListener

public void addTreeExpansionListener(TreeExpansionListener listener)

getTreeExpansionListeners

public TreeExpansionListener[] getTreeExpansionListeners()

removeStateChangeListener

public void removeStateChangeListener(TreeExpansionListener listener)

getTreeMarkedListener

public abstract javax.faces.el.MethodBinding getTreeMarkedListener()

setTreeMarkedListener

public abstract void setTreeMarkedListener(javax.faces.el.MethodBinding treeMarkedListener)

addTreeMarkedListener

public void addTreeMarkedListener(TreeMarkedListener listener)

getTreeMarkedListeners

public TreeMarkedListener[] getTreeMarkedListeners()

removeStateChangeListener

public void removeStateChangeListener(TreeMarkedListener listener)

isMarked

public abstract boolean isMarked()

setMarked

public abstract void setMarked(boolean b)

isExpanded

public abstract boolean isExpanded()

setExpanded

public abstract void setExpanded(boolean expanded)

isSelected

public abstract boolean isSelected()

setSelected

public abstract void setSelected(boolean selected)


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.