public class TreeNode
extends javax.faces.component.UIComponentBase
implements javax.faces.component.NamingContainer
The treeNode provides the template that be applied in rendering each node in the backing data model. The treeNode supports two facets: the icon facet and the content facet. The icon facet is intended to contain a graphic image that will serve as the icon for the node it represents. This image can be customized for each node, or default icons for leaf nodes, expand branch nodes, and contracted branch nodes will be used. The content facet can contain any collection of components. For each node in the tree's backing data model, the child components of the two facets will be rendered with state retrieved from the data model as configured in the JSP by the application developer.
This component extends the JSF UIComponentBase and implements the JSF NamingContainer interface. By default this component is rendered by the "com.icesoft.faces.View" renderer type.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FACET_CONTENT
The name for the content facet of the TreeNode
|
static java.lang.String |
FACET_ICON
The name for the icon facet of the TreeNode
|
| Constructor and Description |
|---|
TreeNode()
Default no args constructor
|
TreeNode(javax.swing.tree.DefaultMutableTreeNode node,
Tree trunk) |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.component.UIComponent |
getContent() |
java.lang.String |
getFamily() |
javax.faces.component.UIComponent |
getIcon() |
javax.swing.tree.DefaultMutableTreeNode |
getMutable() |
java.lang.String |
getRendererType() |
Tree |
getTree() |
void |
setMutable(javax.swing.tree.DefaultMutableTreeNode mutable) |
void |
setTree(Tree tree) |
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreepublic static final java.lang.String FACET_CONTENT
public static final java.lang.String FACET_ICON
public TreeNode()
public TreeNode(javax.swing.tree.DefaultMutableTreeNode node,
Tree trunk)
node - trunk - public java.lang.String getRendererType()
getRendererType in class javax.faces.component.UIComponentBasepublic java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic javax.swing.tree.DefaultMutableTreeNode getMutable()
public void setMutable(javax.swing.tree.DefaultMutableTreeNode mutable)
mutable - public Tree getTree()
public void setTree(Tree tree)
tree - public javax.faces.component.UIComponent getContent()
public javax.faces.component.UIComponent getIcon()
Copyright 2025 ICEsoft Technologies Canada, Corp. All Rights Reserved.