public abstract class AbstractTreeNode extends javax.faces.component.UIComponentBase implements MetaComponentResolver, MetaComponentEncoder, IterationStateHolder, TreeToggleSource, CoreProps, EventsKeyProps, EventsMouseProps, ImmediateProps, I18nProps, TreeProps, TreeCommonProps
The
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
SUBTREE_META_COMPONENT_ID |
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEYMETA_COMPONENT_SEPARATOR_CHAR| Constructor and Description |
|---|
AbstractTreeNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeToggleListener(TreeToggleListener listener) |
void |
broadcast(javax.faces.event.FacesEvent event) |
void |
encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId) |
AbstractTree |
findTreeComponent() |
String |
getFamily() |
Object |
getIterationState()
Get component state for a current iteration.
|
protected Boolean |
getLocalExpandedValue(javax.faces.context.FacesContext facesContext) |
abstract String |
getOnbeforetoggle()
The client-side script method to be called before the node is toggle.
|
abstract String |
getOntoggle()
The client-side script method to be called after the node is toggle.
|
TreeToggleListener[] |
getTreeToggleListeners() |
abstract String |
getType()
The type of the this component.
|
boolean |
isExpanded()
Determines if this tree node is expanded.
|
abstract boolean |
isImmediate()
Flag indicating that, if this component is activated by the user, notifications should be delivered to interested
listeners and actions immediately (that is, during Apply Request Values phase) rather than waiting until the
Invoke Application phase.
|
void |
queueEvent(javax.faces.event.FacesEvent event) |
void |
removeTreeToggleListener(TreeToggleListener listener) |
String |
resolveClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId)
Resolves and returns string identifying supported meta-component or
null if provided meta-component name is
not a supported one. |
void |
setExpanded(boolean newValue) |
void |
setIterationState(Object state)
Set component state for the next iteration.
|
String |
substituteUnresolvedClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId)
Provides replacement for unresolved meta-component names.
|
boolean |
visitTree(javax.faces.component.visit.VisitContext context,
javax.faces.component.visit.VisitCallback callback) |
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpressionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStyle, getStyleClass, getTitlegetOnkeydown, getOnkeypress, getOnkeyupgetOnclick, getOndblclick, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseupgetNodeClass, getNodeType, getOnbeforenodetoggle, getOnbeforeselectionchange, getOnnodetoggle, getOnselectionchange, getRowKeyVar, getSelection, getSelectionChangeListener, getSelectionType, getStateVar, getToggleListener, getToggleNodeEvent, getToggleType, getVar, isKeepSavedgetHandleClass, getIconClass, getIconCollapsed, getIconExpanded, getIconLeaf, getLabelClasspublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String SUBTREE_META_COMPONENT_ID
public String getFamily()
getFamily in class javax.faces.component.UIComponentpublic abstract boolean isImmediate()
ImmediatePropsisImmediate in interface ImmediatePropspublic abstract String getType()
public abstract String getOntoggle()
public abstract String getOnbeforetoggle()
protected Boolean getLocalExpandedValue(javax.faces.context.FacesContext facesContext)
public boolean isExpanded()
public void setExpanded(boolean newValue)
public Object getIterationState()
IterationStateHoldergetIterationState in interface IterationStateHolderpublic void setIterationState(Object state)
IterationStateHoldernull
value. In the second case component should reset its state to the initial.setIterationState in interface IterationStateHolderstate - request-scope component state or null. Details are subject for a component implementationpublic AbstractTree findTreeComponent()
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class javax.faces.component.UIComponentBasepublic void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
broadcast in class javax.faces.component.UIComponentBasejavax.faces.event.AbortProcessingExceptionpublic void addTreeToggleListener(TreeToggleListener listener)
addTreeToggleListener in interface TreeToggleSourcepublic TreeToggleListener[] getTreeToggleListeners()
public void removeTreeToggleListener(TreeToggleListener listener)
removeTreeToggleListener in interface TreeToggleSourcepublic String resolveClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent contextComponent, String metaComponentId)
MetaComponentResolvernull if provided meta-component name is
not a supported one.resolveClientId in interface MetaComponentResolverfacesContext - - current instance of FacesContextcontextComponent - - instance of UIComponent that requested resolution of meta-componentmetaComponentId - - name of meta-component (without leading '@' sign)nullpublic String substituteUnresolvedClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent contextComponent, String metaComponentId)
MetaComponentResolvernullsubstituteUnresolvedClientId in interface MetaComponentResolverfacesContext - - current instance of FacesContextcontextComponent - - instance of UIComponent that requested resolution of meta-componentmetaComponentId - - name of meta-component (without leading '@' sign)nullpublic boolean visitTree(javax.faces.component.visit.VisitContext context,
javax.faces.component.visit.VisitCallback callback)
visitTree in class javax.faces.component.UIComponentpublic void encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId)
throws IOException
encodeMetaComponent in interface MetaComponentEncoderIOExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.