|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.faces.component.UIComponent
oracle.adf.view.faces.component.UIXComponent
oracle.adf.view.faces.component.UIXComponentBase
oracle.adf.view.faces.component.UIXCollection
Base class for components that do stamping. This class set the EL 'var' variable correctly when the rowData changes. And it wraps events that are queued, so that the correct rowData can be restored on this component when the event is broadcast.
| Field Summary |
| Fields inherited from class oracle.adf.view.faces.component.UIXComponentBase |
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY, TYPE |
| Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
| Constructor Summary | |
protected |
UIXCollection()
|
protected |
UIXCollection(java.lang.String rendererType)
|
| Method Summary | |
void |
broadcast(FacesEvent event)
Delivers a wrapped event to the appropriate component. |
protected void |
clearCurrencyStringCache()
Clear the rowKey-to-currencyString cache. |
protected abstract CollectionModel |
createCollectionModel(CollectionModel current,
java.lang.Object value)
Creates the CollectionModel to use with this component. |
protected java.util.Map |
createVarStatusMap()
Gets the Map to use as the "varStatus". |
protected void |
decodeChildrenImpl(FacesContext context)
Calls processDecodes on all facets and children of this component. |
void |
encodeBegin(FacesContext context)
Clears all the currency strings. |
void |
encodeEnd(FacesContext context)
|
protected CollectionModel |
getCollectionModel()
Gets the CollectionModel to use with this component. |
protected CollectionModel |
getCollectionModel(boolean createIfNull)
Gets the CollectionModel to use with this component. |
java.lang.String |
getCurrencyString()
Gets a short currency string that can be used to setup this component later. |
protected java.lang.String |
getLocalClientId()
Gets the client-id of this component, 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. |
java.lang.Object |
getRowData(int rowIndex)
Gets the rowData at the given index. |
int |
getRowIndex()
Gets the index of the current row. |
java.lang.Object |
getRowKey()
Gets the rowKey of the current row. |
java.util.List |
getSortCriteria()
Gets the criteria that this collection is sorted by. |
protected java.util.List |
getStamps()
Gets the UIComponents that are considered stamps. |
protected abstract java.lang.Object |
getValue()
Gets the value that must be converted into a CollectionModel |
abstract java.lang.String |
getVar()
Gets the EL variable name to use when iterating through the collection's data. |
abstract java.lang.String |
getVarStatus()
Gets the EL variable name to use to expose the varStatusMap. |
boolean |
isRowAvailable()
Checks to see if the current row is available. |
boolean |
isRowAvailable(int rowIndex)
Checks to see if the row at the given index is available. |
boolean |
isSortable(java.lang.String property)
|
protected void |
postRowDataChange()
Sets up this component to use the new rowData. |
protected void |
preRowDataChange()
Prepares this component for a change in the rowData. |
protected void |
processComponent(FacesContext context,
UIComponent component,
PhaseId phaseId)
Process a component. |
void |
processDecodes(FacesContext context)
Decodes this component before decoding the facets. |
protected abstract void |
processFacetsAndChildren(FacesContext context,
PhaseId phaseId)
Process this component's facets and children. |
java.lang.Object |
processSaveState(FacesContext context)
|
void |
queueEvent(FacesEvent event)
Queues an event. |
void |
resetStampState()
Resets this component's stamps to their uninitialized state. |
protected void |
restoreStampState(FacesContext context,
UIComponent stamp,
java.lang.Object stampState)
Restores the state of a stamp. |
void |
restoreState(FacesContext context,
java.lang.Object state)
|
protected java.lang.Object |
saveStampState(FacesContext context,
UIComponent stamp)
Saves the state of a stamp. |
java.lang.Object |
saveState(FacesContext context)
|
void |
setCurrencyString(java.lang.String currency)
Restores this component's rowData to be what it was when the given currency string was created. |
void |
setRowIndex(int rowIndex)
Makes a row current. |
void |
setRowKey(java.lang.Object rowKey)
Makes a row current. |
void |
setSortCriteria(java.util.List criteria)
Sorts this collection by the given criteria. |
protected void |
updateChildrenImpl(FacesContext context)
|
protected void |
validateChildrenImpl(FacesContext context)
Calls processValidators on all facets and children of this component. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected UIXCollection(java.lang.String rendererType)
protected UIXCollection()
| Method Detail |
public void queueEvent(FacesEvent event)
queueEvent in class UIXComponentBaseevent - a FacesEvent
public void broadcast(FacesEvent event)
throws AbortProcessingException
broadcast in class UIXComponentBaseevent - a FacesEvent
AbortProcessingExceptionpublic final void processDecodes(FacesContext context)
processDecodes in class UIXComponentBasecontext - the FacesContextprotected void decodeChildrenImpl(FacesContext context)
UIXComponentBase
decodeChildrenImpl in class UIXComponentBasecontext - the current FacesContextprotected void validateChildrenImpl(FacesContext context)
UIXComponentBase
validateChildrenImpl in class UIXComponentBasecontext - the current FacesContextprotected void updateChildrenImpl(FacesContext context)
updateChildrenImpl in class UIXComponentBasepublic void resetStampState()
public java.lang.Object processSaveState(FacesContext context)
processSaveState in class UIXComponentBasepublic java.lang.Object saveState(FacesContext context)
saveState in interface StateHoldersaveState in class UIXComponentBase
public void restoreState(FacesContext context,
java.lang.Object state)
restoreState in interface StateHolderrestoreState in class UIXComponentBasepublic final boolean isRowAvailable()
CollectionModel.isRowAvailable(int)public final int getRowCount()
DataModel.getRowCount()public final int getRowIndex()
DataModel.getRowIndex()public final java.lang.Object getRowKey()
CollectionModel.getRowKey()public final java.lang.Object getRowData()
CollectionModel.getRowData(int)public boolean isRowAvailable(int rowIndex)
rowIndex - the index of the row to check.
CollectionModel.isRowAvailable(int)public java.lang.Object getRowData(int rowIndex)
rowIndex - the index of the row to get data from.
CollectionModel.getRowData(int)public abstract java.lang.String getVar()
public abstract java.lang.String getVarStatus()
createVarStatusMap()public void setRowKey(java.lang.Object rowKey)
preRowDataChange() and
postRowDataChange() as appropriate.
rowKey - The rowKey of the row that should be made current. Use null
to clear the current row.CollectionModel.setRowKey(java.lang.Object)public void setRowIndex(int rowIndex)
preRowDataChange() and
postRowDataChange() as appropriate.
rowIndex - The rowIndex of the row that should be made current. Use -1
to clear the current row.DataModel.setRowIndex(int)public final boolean isSortable(java.lang.String property)
property - a property name in the model
CollectionModel.isSortable(java.lang.String)public void setSortCriteria(java.util.List criteria)
criteria - Each element in this List must be of type SortCriterion.SortCriterion,
CollectionModel.setSortCriteria(java.util.List)public final java.util.List getSortCriteria()
SortCriterion,
CollectionModel.getSortCriteria()protected void clearCurrencyStringCache()
encodeBegin(javax.faces.context.FacesContext) is called.
public final void encodeBegin(FacesContext context)
throws java.io.IOException
encodeBegin in class UIXComponentBasejava.io.IOException
public void encodeEnd(FacesContext context)
throws java.io.IOException
encodeEnd in class UIXComponentBasejava.io.IOExceptionpublic java.lang.String getCurrencyString()
setCurrencyString(java.lang.String)public void setCurrencyString(java.lang.String currency)
All the information needed to restore the rowData on this component (for example: rowkey) is encoded on the given currency string. However, this currency string is very short. As a result, its lifetime is also very short. Currency strings are valid across one request only. They come into existence during the encode phase, and they are cleared before the start of the encode phase on the next request.
This method gets the corresponding currencyKey and passes it to
#setCurrencyKey
getCurrencyString()protected final java.lang.String getLocalClientId()
getLocalClientId in class UIXComponentBasegetCurrencyString()protected final void preRowDataChange()
protected final void postRowDataChange()
protected java.util.List getStamps()
protected java.lang.Object saveStampState(FacesContext context,
UIComponent stamp)
protected void restoreStampState(FacesContext context,
UIComponent stamp,
java.lang.Object stampState)
protected final void processComponent(FacesContext context,
UIComponent component,
PhaseId phaseId)
processDecodes(javax.faces.context.FacesContext),
UIXComponentBase.processValidators(javax.faces.context.FacesContext) or
UIXComponentBase.processUpdates(javax.faces.context.FacesContext)
depending on the {#link PhaseId}.
protected abstract void processFacetsAndChildren(FacesContext context,
PhaseId phaseId)
processComponent(javax.faces.context.FacesContext, javax.faces.component.UIComponent, javax.faces.event.PhaseId)
as many times as necessary for each facet and child.
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.
protected final CollectionModel getCollectionModel()
protected final CollectionModel getCollectionModel(boolean createIfNull)
createIfNull - creates the collection model if necessary
protected abstract CollectionModel createCollectionModel(CollectionModel current,
java.lang.Object value)
current - the current CollectionModel, or null if there is none.value - this is the value returned from getValue()protected abstract java.lang.Object getValue()
protected java.util.Map createVarStatusMap()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||