|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
javax.faces.component.UIComponent
org.apache.myfaces.trinidad.component.UIXComponent
org.apache.myfaces.trinidad.component.UIXComponentBase
org.apache.myfaces.trinidad.component.UIXCollection
org.apache.myfaces.trinidad.component.UIXIterator
org.apache.myfaces.trinidad.component.UIXListView
public class UIXListView
UIXListView is a component that is similar to UIXIterator. In addition it adds support for selection and grouping. The grouping support add Tree Like functionaliy via the TreeModel class.
| Type | Phases | Description |
|---|---|---|
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.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.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 events might include the width of a column that supported client-side resizing. |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.myfaces.trinidad.model.LocalRowKeyIndex |
|---|
LocalRowKeyIndex.Confidence, LocalRowKeyIndex.LocalCachingStrategy |
| Field Summary | |
|---|---|
static java.lang.String |
COMPONENT_FAMILY |
static java.lang.String |
COMPONENT_TYPE |
static PropertyKey |
GROUP_DISCLOSED_ROW_KEYS_KEY |
static PropertyKey |
GROUP_DISCLOSURE_LISTENER_KEY |
static PropertyKey |
SELECTED_ROW_KEYS_KEY |
static PropertyKey |
SELECTION_LISTENER_KEY |
static FacesBean.Type |
TYPE |
| Fields inherited from class org.apache.myfaces.trinidad.component.UIXIterator |
|---|
FIRST_KEY, ROWS_KEY, VALUE_KEY, VAR_STATUS_KEY |
| Fields inherited from class org.apache.myfaces.trinidad.component.UIXCollection |
|---|
VAR_KEY |
| Fields inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase |
|---|
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Fields inherited from interface javax.faces.component.NamingContainer |
|---|
SEPARATOR_CHAR |
| Constructor Summary | |
|---|---|
|
UIXListView()Construct an instance of the UIXListView. |
protected |
UIXListView(java.lang.String rendererType)Construct an instance of the UIXListView. |
| Method Summary | |
|---|---|
void |
addRowDisclosureListener(RowDisclosureListener listener)Adds a rowDisclosure listener. |
void |
addSelectionListener(SelectionListener listener)Adds a selection listener. |
void |
broadcast(javax.faces.event.FacesEvent event)Delivers a wrapped event to the appropriate component. |
protected FacesBean |
createFacesBean(java.lang.String rendererType) |
void |
enterContainer()Treats the current element as a parent element and steps into the children. |
void |
exitContainer()Changes the rowData to be the parent rowData. |
java.util.List<java.lang.Object> |
getAllAncestorContainerRowKeys(java.lang.Object childRowKey)Gets the all the rowKeys of the ancestors of the given child row. |
protected FacesBean.Type |
getBeanType() |
java.lang.Object |
getContainerRowKey()Gets the rowKey of the current row's container. |
java.lang.Object |
getContainerRowKey(java.lang.Object childKey)Gets the rowKey of the given row's container. |
int |
getDepth()Gets the depth of the current row in this tree hierarchy |
int |
getDepth(java.lang.Object rowKey)Gets the depth of the current row in this tree hierarchy |
java.lang.String |
getFamily() |
RowKeySet |
getGroupDisclosedRowKeys()Gets the set of disclosed groups for this component. |
javax.el.MethodExpression |
getGroupDisclosureListener()Gets a method reference to a group disclosure listener |
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. |
boolean |
isContainer()Checks to see if the current element is a container of other elements. |
boolean |
isContainerEmpty()Checks to see if the container is empty. |
protected void |
postCreateCollectionModel(CollectionModel model)Hook called with the result of createCollectionModel. |
void |
queueEvent(javax.faces.event.FacesEvent event)Sets the phaseID of UI events depending on the "immediate" property. |
void |
removeRowDisclosureListener(RowDisclosureListener listener)Removes a rowDisclosure listener. |
void |
removeSelectionListener(SelectionListener listener)Removes a selection listener. |
void |
setGroupDisclosedRowKeys(RowKeySet groupDisclosedRowKeys)Sets the set of disclosed groups for this component. |
void |
setGroupDisclosureListener(javax.el.MethodExpression groupDisclosureListener)Sets a method reference to a group disclosure listener |
void |
setSelectedRowKeys(RowKeySet selectedRowKeys)Sets the selection state for this component. |
void |
setSelectionListener(javax.el.MethodExpression selectionListener)Sets a method reference to a selection listener |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXIterator |
|---|
createCollectionModel, createVarStatusMap, encodeChildren, getFirst, getRendersChildren, getRows, getValue, getVarStatus, isFlatteningChildren, processFacetsAndChildren, processFlattenedChildren, setFirst, setRows, setValue, setVarStatus, visitTree |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponent |
|---|
addPartialTarget, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setUpEncodingContext, setupVisitingContext, tearDownEncodingContext, tearDownVisitingContext, visitTree |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.myfaces.trinidad.model.LocalRowKeyIndex |
|---|
areRowsLocallyAvailable, areRowsLocallyAvailable, areRowsLocallyAvailable, clearCachedRow, clearCachedRow, clearCachedRows, clearCachedRows, clearLocalCache, getCachingStrategy, getEstimatedRowCount, getEstimatedRowCountConfidence, isRowLocallyAvailable, isRowLocallyAvailable |
| Field Detail |
|---|
public static final FacesBean.Type TYPE
public static final PropertyKey SELECTED_ROW_KEYS_KEY
public static final PropertyKey GROUP_DISCLOSED_ROW_KEYS_KEY
public static final PropertyKey SELECTION_LISTENER_KEY
public static final PropertyKey GROUP_DISCLOSURE_LISTENER_KEY
public static final java.lang.String COMPONENT_FAMILY
public static final java.lang.String COMPONENT_TYPE
| Constructor Detail |
|---|
public UIXListView()
protected UIXListView(java.lang.String rendererType)
| Method Detail |
|---|
public void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class UIXCollectionevent - a FacesEvent
public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
broadcast in class UIXCollectionevent - a FacesEventjavax.faces.event.AbortProcessingExceptionprotected void postCreateCollectionModel(CollectionModel model)
UIXCollectioncreateCollectionModel. 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 UIXCollectionmodel - The model instance returned by<createCollectionModelUIXCollection.createCollectionModel(org.apache.myfaces.trinidad.model.CollectionModel, java.lang.Object)protected FacesBean createFacesBean(java.lang.String rendererType)
createFacesBean in class UIXComponentBasepublic final void enterContainer()
isContainer() returns true.TreeModel.enterContainer()public final void exitContainer()
TreeModel.exitContainer()public final boolean isContainer()
TreeModel.isContainer()public boolean isContainerEmpty()
TreeModel.isContainerEmpty()public int getDepth()
TreeModel.getDepth()public int getDepth(java.lang.Object rowKey)
TreeModel.getDepth(Object)public java.lang.Object getContainerRowKey()
TreeModel.getContainerRowKey()public java.lang.Object getContainerRowKey(java.lang.Object childKey)
TreeModel.getContainerRowKey(Object)public java.util.List<java.lang.Object> getAllAncestorContainerRowKeys(java.lang.Object childRowKey)
TreeModel.getAllAncestorContainerRowKeys(Object)public final RowKeySet getSelectedRowKeys()
public final void setSelectedRowKeys(RowKeySet selectedRowKeys)
selectedRowKeys - the new selectedRowKeys valuepublic final RowKeySet getGroupDisclosedRowKeys()
public final void setGroupDisclosedRowKeys(RowKeySet groupDisclosedRowKeys)
groupDisclosedRowKeys - the new groupDisclosedRowKeys valuepublic final javax.el.MethodExpression getSelectionListener()
public final void setSelectionListener(javax.el.MethodExpression selectionListener)
selectionListener - the new selectionListener valuepublic final javax.el.MethodExpression getGroupDisclosureListener()
public final void setGroupDisclosureListener(javax.el.MethodExpression groupDisclosureListener)
groupDisclosureListener - the new groupDisclosureListener valuepublic 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 addRowDisclosureListener(RowDisclosureListener listener)
listener - the rowDisclosure listener to addpublic final void removeRowDisclosureListener(RowDisclosureListener listener)
listener - the rowDisclosure listener to removepublic final RowDisclosureListener[] getRowDisclosureListeners()
public java.lang.String getFamily()
getFamily in class UIXIteratorprotected FacesBean.Type getBeanType()
getBeanType in class UIXIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.