public class UIXTree extends UIXHierarchy implements javax.faces.component.NamingContainer
Type | Phases | Description |
---|---|---|
org.apache.myfaces.trinidad.event.RowDisclosureEvent |
Apply Request Values Invoke Application |
The expansion event is generated for a table when the detail facet of a row is expanded or collapsed. For tree or a treeTable, the expansion event is generated when tree nodes are expanded or collapsed. |
org.apache.myfaces.trinidad.event.SelectionEvent |
Apply Request Values Invoke Application |
The selection event is delivered when the table selection changes. |
org.apache.myfaces.trinidad.event.FocusEvent |
Apply Request Values Invoke Application |
Event delivered when user clicks to focus on (or zoom into) a particular element's subtree of children. The TreeTable responds to this event by modifying the "focusPath" property appropriately. Subsequently, any registered FocusListener instances are called. |
org.apache.myfaces.trinidad.event.AttributeChangeEvent |
Invoke Application Apply Request Values |
Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change event might include the width of a column that supported client-side resizing. |
UIXCollection.NoColumnFacetsVisitContext
UIXComponentBase.ComponentSystemEventListenerWrapper
LocalRowKeyIndex.Confidence, LocalRowKeyIndex.LocalCachingStrategy
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static PropertyKey |
DISCLOSED_ROW_KEYS_KEY |
static PropertyKey |
FOCUS_LISTENER_KEY |
static PropertyKey |
FOCUS_ROW_KEY_KEY |
static PropertyKey |
IMMEDIATE_KEY |
static PropertyKey |
INITIALLY_EXPANDED_KEY |
static String |
NODE_STAMP_FACET |
static PropertyKey |
ROW_DISCLOSURE_LISTENER_KEY |
static PropertyKey |
SELECTED_ROW_KEYS_KEY |
static PropertyKey |
SELECTION_LISTENER_KEY |
static FacesBean.Type |
TYPE |
static PropertyKey |
VALUE_KEY |
static PropertyKey |
VAR_STATUS_KEY |
VAR_KEY
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY
Modifier | Constructor and Description |
---|---|
|
UIXTree()
Construct an instance of the UIXTree.
|
protected |
UIXTree(String rendererType)
Construct an instance of the UIXTree.
|
Modifier and Type | Method and Description |
---|---|
protected void |
__encodeBegin(javax.faces.context.FacesContext context) |
void |
addFocusListener(FocusListener listener)
Adds a focus listener.
|
void |
addRowDisclosureListener(RowDisclosureListener listener)
Adds a rowDisclosure listener.
|
void |
addSelectionListener(SelectionListener listener)
Adds a selection listener.
|
void |
broadcast(javax.faces.event.FacesEvent event)
Delivers an event.
|
CollectionModel |
createCollectionModel(CollectionModel current,
Object value)
Creates the CollectionModel to use with this component.
|
protected FacesBean |
createFacesBean(String rendererType) |
protected FacesBean.Type |
getBeanType() |
RowKeySet |
getDisclosedRowKeys()
Gets the set of disclosed rows for this component.
|
String |
getFamily() |
javax.el.MethodExpression |
getFocusListener()
Gets a method reference to a focus listener
|
FocusListener[] |
getFocusListeners()
Returns an array of attached focus listeners.
|
Object |
getFocusRowKey()
Gets the rowKey of the currently focused row.
|
javax.faces.component.UIComponent |
getNodeStamp()
the component to use to stamp each element in the
tree.
|
javax.el.MethodExpression |
getRowDisclosureListener()
Gets a method reference to an ExpansionListener
|
RowDisclosureListener[] |
getRowDisclosureListeners()
Returns an array of attached rowDisclosure listeners.
|
RowKeySet |
getSelectedRowKeys()
Gets the selection state for this component.
|
javax.el.MethodExpression |
getSelectionListener()
Gets a method reference to a selection listener
|
SelectionListener[] |
getSelectionListeners()
Returns an array of attached selection listeners.
|
Object |
getValue()
Gets the hierarchy of tree data - must be of type
org.apache.myfaces.trinidad.model.TreeModel
|
String |
getVarStatus()
Gets
Name of the EL variable used to reference the varStatus information.
|
boolean |
isImmediate()
Gets whether or not data validation - client-side or
server-side -
should take place when
events are generated by this component.
|
boolean |
isInitiallyExpanded()
Gets If upon initial rendering, the current subtree under the focused row path
should be expanded.
|
protected void |
postCreateCollectionModel(CollectionModel model)
Hook called with the result of
createCollectionModel . |
protected void |
processFacetsAndChildren(javax.faces.context.FacesContext context,
javax.faces.event.PhaseId phaseId)
Process this component's facets and children.
|
void |
queueEvent(javax.faces.event.FacesEvent event)
Sets the phaseID of UI events depending on the "immediate" property.
|
void |
removeFocusListener(FocusListener listener)
Removes a focus listener.
|
void |
removeRowDisclosureListener(RowDisclosureListener listener)
Removes a rowDisclosure listener.
|
void |
removeSelectionListener(SelectionListener listener)
Removes a selection listener.
|
void |
setDisclosedRowKeys(RowKeySet disclosedRowKeys)
Sets the set of disclosed rows for this component.
|
void |
setFocusListener(javax.el.MethodExpression focusListener)
Sets a method reference to a focus listener
|
void |
setFocusRowKey(Object focusRowKey)
Sets the rowKey of the currently focused row.
|
void |
setImmediate(boolean immediate)
Sets whether or not data validation - client-side or
server-side -
should take place when
events are generated by this component.
|
void |
setInitiallyExpanded(boolean initiallyExpanded)
Sets If upon initial rendering, the current subtree under the focused row path
should be expanded.
|
void |
setNodeStamp(javax.faces.component.UIComponent nodeStampFacet)
the component to use to stamp each element in the
tree.
|
void |
setRowDisclosureListener(javax.faces.el.MethodBinding binding)
Deprecated.
|
void |
setRowDisclosureListener(javax.el.MethodExpression rowDisclosureListener)
Sets a method reference to an ExpansionListener
|
void |
setSelectedRowKeys(RowKeySet selectedRowKeys)
Sets the selection state for this component.
|
void |
setSelectionListener(javax.faces.el.MethodBinding binding)
Deprecated.
|
void |
setSelectionListener(javax.el.MethodExpression selectionListener)
Sets a method reference to a selection listener
|
void |
setValue(Object value)
Sets the hierarchy of tree data - must be of type
org.apache.myfaces.trinidad.model.TreeModel
|
void |
setVarStatus(String varStatus)
Sets
Name of the EL variable used to reference the varStatus information.
|
protected boolean |
visitChildren(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
Override default children visiting code to visit the facets and facets of the columns
before delegating to the
visitData to visit the individual rows of data. |
protected boolean |
visitData(javax.faces.component.visit.VisitContext visitContext,
javax.faces.component.visit.VisitCallback callback)
Visit the rows and children of the columns of the collection per row-index.
|
areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, createVarStatusMap, enterContainer, exitContainer, getAllAncestorContainerRowKeys, getContainerRowKey, getContainerRowKey, getDepth, getDepth, getFirst, getRows, getStamps, getTreeModel, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isChildCollectionLocallyAvailable, isContainer, isContainerEmpty, visitHierarchy, visitLevel
areRowsAvailable, areRowsAvailable, areRowsAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearCurrencyStringCache, clearLocalCache, decodeChildrenImpl, defaultVisitChildren, encodeBegin, encodeEnd, ensureRowsAvailable, getCachingStrategy, getClientRowKey, getClientRowKeyManager, getCollectionModel, getCollectionModel, getContainerClientId, getCurrencyString, getEstimatedRowCount, getEstimatedRowCountConfidence, getRowCount, getRowData, getRowData, getRowData, getRowIndex, getRowKey, getSortCriteria, getVar, invokeOnComponent, isRowAvailable, isRowAvailable, isRowAvailable, isRowLocallyAvailable, isRowLocallyAvailable, isSortable, postRowDataChange, preRowDataChange, processComponent, processDecodes, processEvent, processFlattenedChildrenBegin, processRestoreState, processSaveState, processUpdates, processValidators, resetStampState, restoreStampState, restoreState, saveStampState, saveState, setClientRowKey, setCurrencyString, setRowIndex, setRowKey, setSortCriteria, setupELVariable, setupVisitingContext, setVar, tearDownVisitingContext, updateChildrenImpl, validateChildrenImpl, visitChildrenWithoutIterating, visitUnstampedFacets
adaptMethodBinding, addAttributeChange, addAttributeChangeListener, addClientBehavior, addComponentChange, addComponentChange, addComponentChangeFilter, addFacesListener, broadcastToMethodBinding, broadcastToMethodExpression, clearCachedClientIds, clearInitialState, decode, decodeChildren, encodeChildren, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientBehaviors, getClientId, getComponentChangeFilters, getContainerClientId, getDefaultEventName, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getListenersForEventClass, getParent, getProperty, getPropertyKey, getRenderedFacetsAndChildren, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, initialStateMarked, invokeOnChildrenComponents, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, removeAttributeChangeListener, removeComponentChangeFilter, removeFacesListener, satisfiesPartialTrigger, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setupFlattenedChildrenContext, setupFlattenedContext, setValueBinding, setValueExpression, subscribeToEvent, tearDownFlattenedChildrenContext, tearDownFlattenedContext, toString, unsubscribeFromEvent, updateChildren, validateChildren
addPartialTarget, broadcastInContext, clearCachedClientIds, defaultGetRenderedFacetsAndChildren, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, getStateHelper, getStateHelper, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setupChildrenEncodingContext, setupChildrenVisitingContext, setupEncodingContext, setUpEncodingContext, tearDownChildrenEncodingContext, tearDownChildrenVisitingContext, tearDownEncodingContext, visitAllChildren, visitChildren, visitTree, visitTree
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getTransientStateHelper, getTransientStateHelper, isCompositeComponent, isInView, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVar
areRowsAvailable, areRowsAvailable, areRowsAvailable, getRowCount, getRowData, getRowData, getRowData, getRowIndex, getRowKey, isRowAvailable, isRowAvailable, isRowAvailable, setRowIndex, setRowKey
areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, isRowLocallyAvailable, isRowLocallyAvailable
public static final FacesBean.Type TYPE
public static final PropertyKey SELECTED_ROW_KEYS_KEY
public static final PropertyKey IMMEDIATE_KEY
public static final PropertyKey ROW_DISCLOSURE_LISTENER_KEY
public static final PropertyKey DISCLOSED_ROW_KEYS_KEY
public static final PropertyKey SELECTION_LISTENER_KEY
public static final PropertyKey VAR_STATUS_KEY
public static final PropertyKey VALUE_KEY
public static final PropertyKey FOCUS_ROW_KEY_KEY
public static final PropertyKey FOCUS_LISTENER_KEY
public static final PropertyKey INITIALLY_EXPANDED_KEY
public static final String NODE_STAMP_FACET
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public UIXTree()
protected UIXTree(String rendererType)
@Deprecated public void setRowDisclosureListener(javax.faces.el.MethodBinding binding)
@Deprecated public void setSelectionListener(javax.faces.el.MethodBinding binding)
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent
in class UIXCollection
event
- a FacesEventpublic void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
broadcast
in class UIXCollection
event
- javax.faces.event.AbortProcessingException
protected void postCreateCollectionModel(CollectionModel model)
UIXCollection
createCollectionModel
.
Subclasses can use this method to perform initialization after the CollectionModel
is fully initialized.
Subclassers should call super before accessing any component state to ensure
that superclass initialization has been performed.postCreateCollectionModel
in class UIXCollection
model
- The model instance returned by
UIXCollection.createCollectionModel(org.apache.myfaces.trinidad.model.CollectionModel, java.lang.Object)
public CollectionModel createCollectionModel(CollectionModel current, Object value)
UIXCollection
postCreateCollectionModel
createCollectionModel
in class UIXHierarchy
current
- the current CollectionModel, or null if there is none.value
- this is the value returned from UIXCollection.getValue()
UIXCollection.postCreateCollectionModel(org.apache.myfaces.trinidad.model.CollectionModel)
protected void processFacetsAndChildren(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
UIXCollection
UIXCollection.processComponent(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.event.PhaseId)
as many times as necessary for each facet and child.
UIXCollection.processComponent(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.event.PhaseId)
may be called repeatedly for the same child if that child is
being stamped.processFacetsAndChildren
in class UIXCollection
protected boolean visitChildren(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
UIXCollection
Override default children visiting code to visit the facets and facets of the columns
before delegating to the visitData
to visit the individual rows of data.
Subclasses should override this method if they wish to change the way in which the non-stamped
children are visited. If they wish to change the wash the the stamped children are visited,
they should override visitData
instead.
visitChildren
in class UIXCollection
visitContext
- the VisitContext
for this visitcallback
- the VisitCallback
instancetrue
if all of the children to visit have been visitedUIXCollection.visitData(javax.faces.component.visit.VisitContext, javax.faces.component.visit.VisitCallback)
protected boolean visitData(javax.faces.component.visit.VisitContext visitContext, javax.faces.component.visit.VisitCallback callback)
UIXCollection
visitData
in class UIXCollection
visitContext
- The visiting contextcallback
- The visit callbackUIXCollection.visitChildren(VisitContext, VisitCallback)
protected FacesBean createFacesBean(String rendererType)
createFacesBean
in class UIXComponentBase
protected void __encodeBegin(javax.faces.context.FacesContext context) throws IOException
public final javax.faces.component.UIComponent getNodeStamp()
public final void setNodeStamp(javax.faces.component.UIComponent nodeStampFacet)
public final RowKeySet getSelectedRowKeys()
public final void setSelectedRowKeys(RowKeySet selectedRowKeys)
selectedRowKeys
- the new selectedRowKeys valuepublic final boolean isImmediate()
public final void setImmediate(boolean immediate)
immediate
- the new immediate valuepublic final javax.el.MethodExpression getRowDisclosureListener()
public final void setRowDisclosureListener(javax.el.MethodExpression rowDisclosureListener)
rowDisclosureListener
- the new rowDisclosureListener valuepublic final RowKeySet getDisclosedRowKeys()
public final void setDisclosedRowKeys(RowKeySet disclosedRowKeys)
disclosedRowKeys
- the new disclosedRowKeys valuepublic final javax.el.MethodExpression getSelectionListener()
public final void setSelectionListener(javax.el.MethodExpression selectionListener)
selectionListener
- the new selectionListener valuepublic final String getVarStatus()
getVarStatus
in class UIXCollection
UIXCollection.createVarStatusMap()
public final void setVarStatus(String varStatus)
varStatus
- the new varStatus valuepublic final Object getValue()
getValue
in class UIXCollection
public final void setValue(Object value)
value
- the new value valuepublic final Object getFocusRowKey()
getFocusRowKey
in class UIXHierarchy
public final void setFocusRowKey(Object focusRowKey)
focusRowKey
- the new focusRowKey valuepublic final javax.el.MethodExpression getFocusListener()
public final void setFocusListener(javax.el.MethodExpression focusListener)
focusListener
- the new focusListener valuepublic final boolean isInitiallyExpanded()
public final void setInitiallyExpanded(boolean initiallyExpanded)
initiallyExpanded
- the new initiallyExpanded valuepublic final void addRowDisclosureListener(RowDisclosureListener listener)
listener
- the rowDisclosure listener to addpublic final void removeRowDisclosureListener(RowDisclosureListener listener)
listener
- the rowDisclosure listener to removepublic final RowDisclosureListener[] getRowDisclosureListeners()
public final void addSelectionListener(SelectionListener listener)
listener
- the selection listener to addpublic final void removeSelectionListener(SelectionListener listener)
listener
- the selection listener to removepublic final SelectionListener[] getSelectionListeners()
public final void addFocusListener(FocusListener listener)
listener
- the focus listener to addpublic final void removeFocusListener(FocusListener listener)
listener
- the focus listener to removepublic final FocusListener[] getFocusListeners()
public String getFamily()
getFamily
in class UIXComponentBase
protected FacesBean.Type getBeanType()
getBeanType
in class UIXComponentBase
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.