|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
com.ibm.xsp.component.UIDataIterator
public class UIDataIterator
Iterates over a data set with its children creating only one instance of the
children.
Not intended to be subclassed. Note, this does not implement
FacesRowAttrsComponent because the HTML output doesn't have a
representation of a row.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.faces.component.UIComponentBase |
|---|
javax.faces.component.UIComponentBase.AggregatedIterator, javax.faces.component.UIComponentBase.UnmodifiableIterator |
| Nested classes/interfaces inherited from class javax.faces.component.UIComponent |
|---|
javax.faces.component.UIComponent.StateMap, javax.faces.component.UIComponent.StateMapEntry |
| Field Summary | |
|---|---|
static java.lang.String |
AJAX_GETROWS
|
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static int |
DEFAULT_ROWS_PER_PAGE
This is a default value that will be applied if "rows" is not set or is less than 1 |
| Fields inherited from class javax.faces.component.UIComponentBase |
|---|
EMPTY_ITERATOR |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
_xspStateId |
| Fields inherited from interface javax.faces.component.NamingContainer |
|---|
SEPARATOR_CHAR |
| Constructor Summary | |
|---|---|
UIDataIterator()
|
|
| Method Summary | |
|---|---|
void |
_xspCleanTransientData()
|
void |
addAttr(Attr attr)
Add an Attr, to appear as an attribute in the HTML output of this control
or object tag. |
void |
broadcast(javax.faces.event.FacesEvent event)
|
protected java.lang.String |
computeDataModelKey()
Computes Data model key based on parent DataIterators. |
protected javax.faces.model.DataModel |
createDataModel()
Helper method for creating the data model based on the components value. |
void |
encodeBegin(javax.faces.context.FacesContext context)
|
void |
encodeChildren(javax.faces.context.FacesContext context)
|
void |
encodeEnd(javax.faces.context.FacesContext context)
|
java.lang.String |
getAjaxUrl(javax.faces.context.FacesContext context,
java.lang.String verb)
|
java.lang.String |
getAjaxUrl(java.lang.String verb)
|
java.util.List<Attr> |
getAttrs()
The extra attributes to be output on the base element at the root of this control or object tag. |
java.lang.String |
getClientId(javax.faces.context.FacesContext context)
|
javax.faces.model.DataModel |
getDataModel()
Helper method to return the current DataModel instance |
protected DataSource |
getDataSource()
|
java.lang.String |
getDir()
|
java.lang.String |
getFamily()
|
int |
getFirst()
|
int |
getIndex()
Deprecated. Use getRowIndex() instead, to match the UIData class and the FacesDataIterator interface. |
java.lang.String |
getIndexVar()
Return the value of the indexVar property. |
java.lang.Class<? extends javax.faces.component.UIComponent> |
getJavaClass(com.ibm.xsp.page.parse.types.FacesInstance instance)
The class returned must be a non-abstract UIComponent class, with
a public, zero-arguments constructor. |
java.lang.String |
getNonChildClientId(javax.faces.context.FacesContext context)
|
boolean |
getRendersChildren()
|
int |
getRowCount()
Return the number of rows in the underlying data model. |
int |
getRowCount(int maxCount)
|
int |
getRowIndex()
|
int |
getRows()
|
java.lang.Object |
getValue()
|
java.lang.String |
getVar()
|
boolean |
gotoFirstPage()
Go to the first page in the data control. |
boolean |
gotoLastPage()
Go to the last page in the data control. |
boolean |
gotoNextPage()
Go to the next page in the data control. |
boolean |
gotoPage(int page)
Go to the specified page in the data control. |
boolean |
gotoPreviousPage()
Go to the previous page in the data control. |
boolean |
gotoRow(int row)
Go to the specified row in the data control. |
boolean |
handles(javax.faces.context.FacesContext context)
Check if the pathinfo request is for this target ajax component |
boolean |
invokeOnComponent(javax.faces.context.FacesContext context,
java.lang.String clientId,
javax.faces.component.ContextCallback callback)
|
protected boolean |
isNestedInUIIterator()
|
boolean |
isRemoveRepeat()
Return the value of the removeRepeat property. |
boolean |
isRepeatControls()
Return the value of the repeatControls property. |
boolean |
isRowAvailable()
|
protected void |
processAjaxGetRows(javax.faces.context.FacesContext context)
|
void |
processAjaxRequest(javax.faces.context.FacesContext context)
Process the request for this target ajax component |
void |
processDecodes(javax.faces.context.FacesContext context)
|
void |
processUpdates(javax.faces.context.FacesContext context)
|
void |
processValidators(javax.faces.context.FacesContext context)
|
protected java.util.List<DataPublisher.ShadowedObject> |
publishControlData(javax.faces.context.FacesContext context)
|
protected void |
pushVars(javax.faces.context.FacesContext context,
javax.faces.model.DataModel model)
|
void |
queueEvent(javax.faces.event.FacesEvent event)
|
protected void |
resetDataModel()
resets data model |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object _state)
|
protected void |
restoreValueHolderState(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected void |
revokeControlData(java.util.List<DataPublisher.ShadowedObject> shadowedObjects,
javax.faces.context.FacesContext context)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
protected void |
saveValueHolderState(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
setAttrs(java.util.List<Attr> attrs)
This method is not used by the XPage generated .java file - instead the addAttr(Attr) method is used to add attributes to the list. |
void |
setDir(java.lang.String dir)
|
void |
setFirst(int first)
|
void |
setIndex(int index)
Deprecated. use setRowIndex(int) instead, to match the UIData class |
void |
setIndexVar(java.lang.String indexVar)
Set the value of the indexVar property. |
void |
setRemoveRepeat(boolean remove)
Set the value of the removeRepeat property. |
void |
setRepeatControls(boolean repeatControls)
Set the value of the repeatControls property. |
void |
setRowIndex(int index)
|
void |
setRows(int rows)
|
void |
setValue(java.lang.Object o)
|
void |
setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
|
void |
setVar(java.lang.String var)
|
boolean |
visitTree(javax.faces.component.visit.VisitContext context,
javax.faces.component.visit.VisitCallback callback)
|
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
_xspGetReadOnlyObj, _xspGetRendererData, _xspRemoveReadOnlyObj, _xspRemoveRendererData, _xspSetIdUnchecked, _xspSetReadOnlyObj, _xspSetRendererData, addFacesListener, decode, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
_xspGetStateId, _xspGetStateMap, _xspRestoreAttribute, _xspRestoreState, _xspSaveState, isVisitable, markInitialState, setControlState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String COMPONENT_FAMILY
public static final int DEFAULT_ROWS_PER_PAGE
public static final java.lang.String AJAX_GETROWS
| Constructor Detail |
|---|
public UIDataIterator()
| Method Detail |
|---|
public void _xspCleanTransientData()
_xspCleanTransientData in class javax.faces.component.UIComponentBasepublic java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic java.lang.Class<? extends javax.faces.component.UIComponent> getJavaClass(com.ibm.xsp.page.parse.types.FacesInstance instance)
FacesDefinitionClassUIComponent class, with
a public, zero-arguments constructor.
Note, none of the properties or attributes will have been set on this
UIComponent when this method is invoked - only the constructor
will have been called. This UIComponent will then be discarded
after invoking this method.
The implementation is expected to examine the properties of the tag in the FacesInstance to decide which runtime class to return. (If the implementation always returns the same class, then this mechanism need not be used - instead just declare the tag's java class as being that runtime class)
getJavaClass in interface FacesDefinitionClassinstance - an instance of a tag in an .xsp, where the java class defined
for the tag is this UIComponent class.
public javax.faces.model.DataModel getDataModel()
getDataModel in interface FacesDataIteratorprotected DataSource getDataSource()
protected javax.faces.model.DataModel createDataModel()
protected java.lang.String computeDataModelKey()
protected void resetDataModel()
public boolean gotoFirstPage()
public boolean gotoPreviousPage()
public boolean gotoNextPage()
public boolean gotoLastPage()
public boolean gotoRow(int row)
public boolean gotoPage(int page)
public java.lang.String getDir()
public void setDir(java.lang.String dir)
public int getFirst()
getFirst in interface FacesDataIteratorpublic void setFirst(int first)
setFirst in interface FacesDataIteratorfirst - Set the index of the first row to be processed, if set to value less than zero it will be set to zero.public int getRows()
getRows in interface FacesDataIteratorpublic void setRows(int rows)
setRows in interface FacesDataIteratorrows - Sets the number of rows to be process starting from the index.public java.lang.Object getValue()
public void setValue(java.lang.Object o)
public int getIndex()
getRowIndex() instead, to match the UIData class and the FacesDataIterator interface.
public int getRowIndex()
getRowIndex in interface FacesDataIteratorgetRowIndex in interface FacesRowIndexpublic void setIndex(int index)
setRowIndex(int) instead, to match the UIData class
rowIndex - The rowIndex to set.public void setRowIndex(int index)
rowIndex - The rowIndex to set.protected java.util.List<DataPublisher.ShadowedObject> publishControlData(javax.faces.context.FacesContext context)
shadowedObjects - null or list of shadowedObjects
protected void revokeControlData(java.util.List<DataPublisher.ShadowedObject> shadowedObjects,
javax.faces.context.FacesContext context)
protected void pushVars(javax.faces.context.FacesContext context,
javax.faces.model.DataModel model)
public boolean isRowAvailable()
public java.lang.String getIndexVar()
Return the value of the indexVar property. Contents:
The variable name under which the row index is made available to children
public boolean isRepeatControls()
Return the value of the repeatControls property. Contents:
Boolean flag indicating if mulitple controls are to be created. The repeat has to modes, when repeatControls="false" (default), a single set of child controls are iterated over for each entry in the data model thats to be processed. The second mode is where on inital page creation, multiple sets of controls are created one for each row in the data model.
public void setIndexVar(java.lang.String indexVar)
Set the value of the indexVar property.
public void setRepeatControls(boolean repeatControls)
Set the value of the repeatControls property.
public boolean isRemoveRepeat()
Return the value of the removeRepeat property. Contents:
A boolean flag indicating the repeat should be removed after repeating it's child controls. Note: This only works if it repeats a single child which is a naming container.
public void setRemoveRepeat(boolean remove)
Set the value of the removeRepeat property.
public java.util.List<Attr> getAttrs()
null. The addAttr(Attr)
method should be used to add an Attr.
getAttrs in interface FacesAttrsObjectpublic void addAttr(Attr attr)
Attr, to appear as an attribute in the HTML output of this control
or object tag.
addAttr in interface FacesAttrsObjectaction - public void setAttrs(java.util.List<Attr> attrs)
addAttr(Attr) method is used to add attributes to the list.
public void setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
setValueBinding in class javax.faces.component.UIComponentBasepublic java.lang.String getVar()
public void setVar(java.lang.String var)
var - The var to set.public boolean getRendersChildren()
getRendersChildren in class javax.faces.component.UIComponentBasepublic void queueEvent(javax.faces.event.FacesEvent event)
queueEvent in class javax.faces.component.UIComponentBase
public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
broadcast in class javax.faces.component.UIComponentBasejavax.faces.event.AbortProcessingException
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeBegin in class javax.faces.component.UIComponentBasejava.io.IOException
public void encodeChildren(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeChildren in class javax.faces.component.UIComponentBasejava.io.IOException
public void encodeEnd(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeEnd in class javax.faces.component.UIComponentBasejava.io.IOExceptionpublic void processDecodes(javax.faces.context.FacesContext context)
processDecodes in class javax.faces.component.UIComponentBasepublic void processUpdates(javax.faces.context.FacesContext context)
processUpdates in class javax.faces.component.UIComponentBasepublic void processValidators(javax.faces.context.FacesContext context)
processValidators in class javax.faces.component.UIComponentBaseprotected boolean isNestedInUIIterator()
public int getRowCount()
public int getRowCount(int maxCount)
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object _state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIComponentBasepublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIComponentBase
protected void saveValueHolderState(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
protected void restoreValueHolderState(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
public boolean invokeOnComponent(javax.faces.context.FacesContext context,
java.lang.String clientId,
javax.faces.component.ContextCallback callback)
throws javax.faces.FacesException
invokeOnComponent in class javax.faces.component.UIComponentjavax.faces.FacesException
public boolean visitTree(javax.faces.component.visit.VisitContext context,
javax.faces.component.visit.VisitCallback callback)
visitTree in class javax.faces.component.UIComponentpublic java.lang.String getClientId(javax.faces.context.FacesContext context)
getClientId in class javax.faces.component.UIComponentBasepublic java.lang.String getNonChildClientId(javax.faces.context.FacesContext context)
getNonChildClientId in interface FacesRefreshableComponentpublic java.lang.String getAjaxUrl(java.lang.String verb)
public java.lang.String getAjaxUrl(javax.faces.context.FacesContext context,
java.lang.String verb)
public boolean handles(javax.faces.context.FacesContext context)
FacesAjaxComponent
handles in interface FacesAjaxComponent
public void processAjaxRequest(javax.faces.context.FacesContext context)
throws java.io.IOException
FacesAjaxComponent
processAjaxRequest in interface FacesAjaxComponentjava.io.IOException
protected void processAjaxGetRows(javax.faces.context.FacesContext context)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||