|
|||||||||||
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.TableBase
Base class for the Table component. The behaviour supported by this base class include record navigation, sorting, selection and detail-disclosure.
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 | |
TableBase()
|
Method Summary | |
void |
addGotoListener(GotoListener listener)
Adds a GotoListener. |
void |
addSortListener(SortListener listener)
Adds a SortListener. |
void |
encodeBegin(javax.faces.context.FacesContext context)
|
abstract javax.faces.component.UIComponent |
getDetail()
Gets the component used to display the details of a row. |
abstract javax.faces.el.MethodBinding |
getDisclosureListener()
|
abstract RowKeySet |
getDisclosureState()
Gets the state associated with detail-disclosure |
abstract int |
getFirst()
Gets the index of the first row that is currently visible. |
abstract javax.faces.el.MethodBinding |
getGotoListener()
|
GotoListener[] |
getGotoListeners()
Retrieves all GotoListeners |
protected java.lang.String |
getLocalClientId()
Gets the client-id of this table, without any NamingContainers. |
int |
getRowCount()
Gets the total number of rows in this table. |
java.lang.Object |
getRowData()
Gets the data for the current row. |
int |
getRowIndex()
Gets the index of the current row. |
java.lang.String |
getRowKey()
Gets the row-key of the current row. |
abstract int |
getRows()
Gets the maximum number of rows that this table will display at a time. |
abstract RowKeySet |
getSelectionState()
Gets the state associated with selection |
java.lang.String |
getSortBy()
Gets the property that this model is currently sorted by. |
abstract javax.faces.el.MethodBinding |
getSortListener()
|
SortListener[] |
getSortListeners()
Retrieves all SortListeners |
boolean |
getSortOrder()
the direction in which this table is sorted. |
abstract java.lang.Object |
getValue()
Gets the underlying model being displayed by this table. |
abstract boolean |
isImmediate()
If this returns true, then the events generated by this table (such as GotoEvent, SortEvent and DisclosureEvent) will not perform any validation. |
boolean |
isRowAvailable()
Checks to see if the current row is available. |
boolean |
isSortable(java.lang.String property)
|
void |
processDecodes(javax.faces.context.FacesContext context)
Decodes this component before decoding the facets. |
void |
processUpdates(javax.faces.context.FacesContext context)
Updates this component before updating the facets. |
void |
removeGotoListener(GotoListener listener)
Removes a GotoListener. |
void |
removeSortListener(SortListener listener)
Removes a SortListener. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
abstract void |
setDisclosureState(RowKeySet state)
Sets the state associated with detail-disclosure. |
abstract void |
setFirst(int first)
Sets the index of the first row that is currently visible. |
void |
setRowIndex(int rowIndex)
Makes a row current. |
void |
setRowKey(java.lang.String rowKey)
Makes a row current. |
abstract void |
setSelectionState(RowKeySet model)
Sets the state associated with selection |
void |
sort(java.lang.String property,
boolean isAscending)
Sort the underlying model using the given parameters. |
Methods inherited from class oracle.adf.view.faces.component.CollectionBase |
broadcast, getVar, 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 TableBase()
Method Detail |
public void encodeBegin(javax.faces.context.FacesContext context) throws java.io.IOException
encodeBegin
in class UIXComponentBase
java.io.IOException
public void processDecodes(javax.faces.context.FacesContext context)
CollectionBase
processDecodes
in class CollectionBase
context
- public void processUpdates(javax.faces.context.FacesContext context)
CollectionBase
processUpdates
in class CollectionBase
context
- public abstract void setDisclosureState(RowKeySet state)
state
- the new disclosure state.public abstract RowKeySet getDisclosureState()
public abstract RowKeySet getSelectionState()
getSelectionState
in interface CollectionComponent
public abstract void setSelectionState(RowKeySet model)
model
- the new selection statepublic abstract java.lang.Object getValue()
public abstract int getRows()
getRows
in interface CollectionComponent
public abstract int getFirst()
getFirst
in interface CollectionComponent
public abstract void setFirst(int first)
first
- zero-based index of the first visible row.public abstract javax.faces.component.UIComponent getDetail()
public final java.lang.Object getRowData()
getRowData
in interface CollectionComponent
getRowData
in class CollectionBase
DataModel.getRowData()
public final int getRowIndex()
getRowIndex
in interface CollectionComponent
DataModel.getRowIndex()
public final void setRowIndex(int rowIndex)
setRowIndex
in interface CollectionComponent
rowIndex
- the zero-based row-index of the row that should be made
current. Use -1 to clear the current row.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 row that should be made current. Use null
to clear the current row.CollectionModel.setRowKey(java.lang.String)
public final boolean isRowAvailable()
isRowAvailable
in interface CollectionComponent
isRowAvailable
in class CollectionBase
DataModel.isRowAvailable()
public final int getRowCount()
getRowCount
in interface CollectionComponent
DataModel.getRowCount()
public final boolean isSortable(java.lang.String property)
property
- a property name in the model
CollectionModel.isSortable(java.lang.String)
public final void sort(java.lang.String property, boolean isAscending)
CollectionModel.sort(java.lang.String, boolean)
public final boolean getSortOrder()
CollectionModel.getSortOrder()
public final java.lang.String getSortBy()
CollectionModel.getSortBy()
protected java.lang.String getLocalClientId()
getLocalClientId
in class UIXComponentBase
public abstract javax.faces.el.MethodBinding getGotoListener()
public abstract javax.faces.el.MethodBinding getSortListener()
public abstract javax.faces.el.MethodBinding getDisclosureListener()
public abstract boolean isImmediate()
public void addGotoListener(GotoListener listener)
public void removeGotoListener(GotoListener listener)
public GotoListener[] getGotoListeners()
public void addSortListener(SortListener listener)
public void removeSortListener(SortListener listener)
public SortListener[] getSortListeners()
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 state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class UIXComponentBase
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |