|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.faces.component.UIComponent | +--oracle.adf.view.faces.component.UIXComponent | +--oracle.adf.view.faces.component.UIXComponentBase | +--oracle.adf.view.faces.component.CollectionBase | +--oracle.adf.view.faces.component.TreeBase
Base class for the Tree component. The behaviour supported by this class includes expanding and collapsing tree elements.
Field Summary |
Fields inherited from class oracle.adf.view.faces.component.UIXComponentBase |
ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY, TYPE |
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
Constructor Summary | |
|
TreeBase()
Create a Tree component with the default render-type |
protected |
TreeBase(java.lang.String rendererType)
Create a Tree component with the given render-type |
Method Summary | |
void |
addDisclosureListener(DisclosureListener listener)
Adds a DisclosureListener. |
void |
encodeBegin(javax.faces.context.FacesContext context)
|
abstract javax.faces.el.MethodBinding |
getDisclosureListener()
|
DisclosureListener[] |
getDisclosureListeners()
Retrieves all DisclosureListeners |
int |
getFirst()
|
protected java.lang.String |
getLocalClientId()
Gets the client-id of this component, minus any parent NamingContainers. |
java.util.List |
getPath()
The path to the parent element. |
int |
getRowCount()
Gets the total number of child elements of the current parent element. |
java.lang.Object |
getRowData()
Gets the data for the current element |
int |
getRowIndex()
Gets the index of the current element. |
java.lang.String |
getRowKey()
Gets the row-key of the current element |
int |
getRows()
Gets the maximum number of rows that this tree should show at a time. |
RowKeySet |
getSelectionState()
|
protected TreeModel |
getTreeModel()
Gets the TreeModel that this tree is displaying. |
abstract TreeState |
getTreeState()
Gets the state associated with the expanded state of tree elements |
abstract java.lang.Object |
getValue()
Gets the underlying tree model. |
abstract boolean |
isImmediate()
If this returns true, then the events generated by this tree (such as DisclosureEvent) will not perform any validation. |
boolean |
isRowAvailable()
Checks to see if the current element is available. |
boolean |
isRowContainer()
Checks to see if the current element is a container of other elements. |
void |
popPath()
Sets a new parent element. |
void |
processDecodes(javax.faces.context.FacesContext context)
Decodes this component before decoding the facets. |
void |
pushPath()
Sets a new parent element. |
void |
removeDisclosureListener(DisclosureListener listener)
Removes a DisclosureListener. |
protected void |
restoreStampState(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent stamp)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object stateObj)
|
protected void |
saveStampState(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent stamp)
saves the state of a component being used as a stamp. |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setPath(java.util.List path)
Sets a new parent element. |
void |
setRowIndex(int rowIndex)
Makes an element current. |
void |
setRowKey(java.lang.String rowKey)
Makes an element current. |
abstract void |
setTreeState(TreeState state)
Sets the state associated with the expanded state of tree elements |
Methods inherited from class oracle.adf.view.faces.component.CollectionBase |
broadcast, getVar, processUpdates, processValidators, queueEvent |
Methods inherited from class oracle.adf.view.faces.component.UIXComponentBase |
addFacesListener, createFacesBean, decode, encodeChildren, encodeEnd, findComponent, getAttribute, getAttributes, getBeanType, getBooleanProperty, getChildCount, getChildren, getClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getFamily, getId, getIntProperty, getParent, getProperty, getPropertyKey, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, setAttribute, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.adf.view.faces.component.CollectionComponent |
getVar |
Constructor Detail |
public TreeBase()
protected TreeBase(java.lang.String rendererType)
Method Detail |
public abstract TreeState getTreeState()
public abstract void setTreeState(TreeState state)
state
- the new expansion statepublic abstract java.lang.Object getValue()
public final int getRowCount()
getRowCount
in interface CollectionComponent
DataModel.getRowCount()
public final java.lang.Object getRowData()
getRowData
in interface CollectionComponent
getRowData
in class CollectionBase
DataModel.getRowData()
public final boolean isRowAvailable()
isRowAvailable
in interface CollectionComponent
isRowAvailable
in class CollectionBase
DataModel.isRowAvailable()
public final int getRows()
getRows
in interface CollectionComponent
public final int getFirst()
getFirst
in interface CollectionComponent
public final RowKeySet getSelectionState()
getSelectionState
in interface CollectionComponent
public final int getRowIndex()
getRowIndex
in interface CollectionComponent
DataModel.getRowIndex()
public void setRowIndex(int rowIndex)
setRowIndex
in interface CollectionComponent
rowIndex
- the index of the element to make current.
use -1 to clear the current element.DataModel.setRowIndex(int)
public final java.lang.String getRowKey()
getRowKey
in interface CollectionComponent
getRowKey
in class CollectionBase
CollectionModel.getRowKey()
public final void setRowKey(java.lang.String rowKey)
setRowKey
in interface CollectionComponent
setRowKey
in class CollectionBase
rowKey
- the row-key of the element to make current.
Use null to clear the current element.CollectionModel.setRowKey(java.lang.String)
public final java.util.List getPath()
TreeModel.getPath()
public final void setPath(java.util.List path)
path
- each element is a row-key string. This defines a path from the
root element of the tree to the new parent element.TreeModel.setPath(java.util.List)
public final void pushPath()
isRowContainer()
returns true.
TreeModel.pushPath()
public final void popPath()
TreeModel.popPath()
public final boolean isRowContainer()
TreeModel.isRowContainer()
public final void addDisclosureListener(DisclosureListener listener)
public final void removeDisclosureListener(DisclosureListener listener)
public final DisclosureListener[] getDisclosureListeners()
public abstract javax.faces.el.MethodBinding getDisclosureListener()
public abstract boolean isImmediate()
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class UIXComponentBase
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object stateObj)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UIXComponentBase
public void processDecodes(javax.faces.context.FacesContext context)
CollectionBase
processDecodes
in class CollectionBase
context
- public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class UIXComponentBase
java.io.IOException
protected final TreeModel getTreeModel()
protected final java.lang.String getLocalClientId()
getLocalClientId
in class UIXComponentBase
protected void restoreStampState(javax.faces.context.FacesContext context, javax.faces.component.UIComponent stamp)
protected void saveStampState(javax.faces.context.FacesContext context, javax.faces.component.UIComponent stamp)
context
- stamp
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |