|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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.UIXHierarchy
public abstract class UIXHierarchy
Base class for components that take a TreeModel, which is a hierarchical model.
Field Summary |
---|
Fields inherited from class org.apache.myfaces.trinidad.component.UIXCollection |
---|
TYPE, 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 interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
protected |
UIXHierarchy()
|
protected |
UIXHierarchy(java.lang.String rendererType)
Create a Page component with the given render-type |
Method Summary | |
---|---|
CollectionModel |
createCollectionModel(CollectionModel current,
java.lang.Object value)
Creates the CollectionModel to use with this component. |
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. |
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 |
int |
getFirst()
Gets the index of the first visible row in this tree |
abstract java.lang.Object |
getFocusRowKey()
|
int |
getRows()
Gets the maximum number of rows that this tree should show at a time. |
protected java.util.List<javax.faces.component.UIComponent> |
getStamps()
Gets the UIComponents that are considered stamps. |
protected TreeModel |
getTreeModel()
Gets the TreeModel that this tree is displaying. |
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. |
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.component.CollectionComponent |
---|
getVar |
Methods inherited from interface org.apache.myfaces.trinidad.model.RowKeyIndex |
---|
getRowCount, getRowData, getRowData, getRowIndex, getRowKey, isRowAvailable, isRowAvailable, setRowIndex, setRowKey |
Constructor Detail |
---|
protected UIXHierarchy(java.lang.String rendererType)
protected UIXHierarchy()
Method Detail |
---|
public CollectionModel createCollectionModel(CollectionModel current, java.lang.Object value)
UIXCollection
createCollectionModel
in class UIXCollection
current
- the current CollectionModel, or null if there is none.value
- this is the value returned from UIXCollection.getValue()
public int getFirst()
getFirst
in interface CollectionComponent
public int getRows()
getRows
in interface CollectionComponent
public 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)
protected final TreeModel getTreeModel()
protected java.util.List<javax.faces.component.UIComponent> getStamps()
UIXCollection
getStamps
in class UIXCollection
public abstract java.lang.Object getFocusRowKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |