| java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase javax.faces.component.UIData
All known Subclasses: javax.faces.component.html.HtmlDataTable,
Constructor Summary | |
public | UIData() Construct an instance of the UIData. |
COMPONENT_FAMILY | final public static String COMPONENT_FAMILY(Code) | | |
COMPONENT_TYPE | final public static String COMPONENT_TYPE(Code) | | |
UIData | public UIData()(Code) | | Construct an instance of the UIData.
|
broadcast | public void broadcast(FacesEvent event) throws AbortProcessingException(Code) | | Ensure that before the event's listeners are invoked this UIData
component's "current row" is set to the row associated with the event.
See queueEvent for more details.
|
encodeBegin | public void encodeBegin(FacesContext context) throws IOException(Code) | | Perform necessary actions when rendering of this component starts,
before delegating to the inherited implementation which calls the
associated renderer's encodeBegin method.
|
getDataModel | protected DataModel getDataModel()(Code) | | Return the datamodel for this table, potentially fetching the data from
a backing bean via a value-binding if this is the first time this method
has been called.
This is complicated by the fact that this table may be nested within
another table. In this case a different datamodel should be fetched
for each row. When nested within a parent table, the parent reference
won't change but parent.getClientId() will, as the suffix changes
depending upon the current row index. A map object on this component
is therefore used to cache the datamodel for each row of the table.
In the normal case where this table is not nested inside a component
that changes its id (like a table does) then this map only ever has
one entry.
|
getFirst | public int getFirst()(Code) | | Gets The index of the first row to be displayed, where 0 is the first row.
the new first value |
getRowCount | public int getRowCount()(Code) | | |
getRowIndex | public int getRowIndex()(Code) | | |
getRows | public int getRows()(Code) | | Gets The number of rows to be displayed. Specify zero for all remaining rows in the table.
the new rows value |
getValue | public Object getValue()(Code) | | Gets An EL expression that specifies the data model that backs this table. The value can be of any type.
A value of type DataModel is used directly. Array-like parameters of type java.util.List, array of Object,
java.sql.ResultSet, or javax.servlet.jsp.jstl.sql.Result are wrapped in a DataModel.
Other values are wrapped in a DataModel as a single row.
the new value value |
getVar | public String getVar()(Code) | | Gets Defines the name of the request-scope variable that will hold the current row during iteration. This value must be a static value.
the new var value |
isRowAvailable | public boolean isRowAvailable()(Code) | | |
queueEvent | public void queueEvent(FacesEvent event)(Code) | | Modify events queued for any child components so that the
UIData state will be correctly configured before the event's
listeners are executed.
Child components or their renderers may register events against
those child components. When the listener for that event is
eventually invoked, it may expect the uidata's rowData and
rowIndex to be referring to the same object that caused the
event to fire.
The original queueEvent call against the child component has been
forwarded up the chain of ancestors in the standard way, making
it possible here to wrap the event in a new event whose source
is this component, not the original one. When the event
finally is executed, this component's broadcast method is invoked,
which ensures that the UIData is set to be at the correct row
before executing the original event.
|
setFirst | public void setFirst(int first)(Code) | | Set the index of the first row to be displayed, where 0 is the first row.
|
setRowIndex | public void setRowIndex(int rowIndex)(Code) | | Set the current row index that methods like getRowData use.
Param rowIndex can be -1, meaning "no row".
Parameters: rowIndex - |
setRows | public void setRows(int rows)(Code) | | Set the maximum number of rows displayed in the table.
|
setValueExpression | public void setValueExpression(String name, ValueExpression binding)(Code) | | |
setVar | public void setVar(String var)(Code) | | Sets Defines the name of the request-scope variable that will hold the current row during iteration. This value must be a static value.
Parameters: var - the new var value |
Methods inherited from javax.faces.component.UIComponentBase | protected void addFacesListener(FacesListener listener)(Code)(Java Doc) public void broadcast(FacesEvent event) throws AbortProcessingException(Code)(Java Doc) public void decode(FacesContext context)(Code)(Java Doc) public void encodeBegin(FacesContext context) throws IOException(Code)(Java Doc) public void encodeChildren(FacesContext context) throws IOException(Code)(Java Doc) public void encodeEnd(FacesContext context) throws IOException(Code)(Java Doc) public UIComponent findComponent(String expr)(Code)(Java Doc) public Map<String, Object> getAttributes()(Code)(Java Doc) public int getChildCount()(Code)(Java Doc) public List<UIComponent> getChildren()(Code)(Java Doc) public String getClientId(FacesContext context)(Code)(Java Doc) T getExpressionValue(String attribute, T explizitValue, T defaultValueIfExpressionNull)(Code)(Java Doc) protected FacesContext getFacesContext()(Code)(Java Doc) protected FacesListener[] getFacesListeners(Class clazz)(Code)(Java Doc) public UIComponent getFacet(String name)(Code)(Java Doc) public int getFacetCount()(Code)(Java Doc) public Map<String, UIComponent> getFacets()(Code)(Java Doc) public Iterator<UIComponent> getFacetsAndChildren()(Code)(Java Doc) public String getId()(Code)(Java Doc) public UIComponent getParent()(Code)(Java Doc) protected Renderer getRenderer(FacesContext context)(Code)(Java Doc) public String getRendererType()(Code)(Java Doc) public boolean getRendersChildren()(Code)(Java Doc) public ValueBinding getValueBinding(String name)(Code)(Java Doc) public boolean invokeOnComponent(FacesContext context, String clientId, ContextCallback callback) throws FacesException(Code)(Java Doc) public boolean isRendered()(Code)(Java Doc) public boolean isTransient()(Code)(Java Doc) public void processDecodes(FacesContext context)(Code)(Java Doc) public void processRestoreState(FacesContext context, Object state)(Code)(Java Doc) public Object processSaveState(FacesContext context)(Code)(Java Doc) public void processUpdates(FacesContext context)(Code)(Java Doc) public void processValidators(FacesContext context)(Code)(Java Doc) public void queueEvent(FacesEvent event)(Code)(Java Doc) protected void removeFacesListener(FacesListener listener)(Code)(Java Doc) public static Object restoreAttachedState(FacesContext context, Object stateObj) throws IllegalStateException(Code)(Java Doc) public void restoreState(FacesContext context, Object state)(Code)(Java Doc) public static Object saveAttachedState(FacesContext context, Object attachedObject)(Code)(Java Doc) public Object saveState(FacesContext context)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public void setParent(UIComponent parent)(Code)(Java Doc) public void setRendered(boolean rendered)(Code)(Java Doc) public void setRendererType(String rendererType)(Code)(Java Doc) public void setTransient(boolean transientFlag)(Code)(Java Doc) public void setValueBinding(String name, ValueBinding binding)(Code)(Java Doc)
|
|
|