org.apache.myfaces.tobago.internal.component
Class AbstractUITreeNode
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
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
Fields inherited from class javax.faces.component.UIOutput |
COMPONENT_FAMILY, COMPONENT_TYPE |
Fields inherited from class javax.faces.component.UIComponent |
bindings |
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 |
AbstractUITreeNode
public AbstractUITreeNode()
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.