|
||||||||||
| 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.infragistics.faces.shared.component.DataRepeater
com.infragistics.faces.shared.component.DataList
com.infragistics.faces.grid.component.GridView
GridView is a very versatile and powerful component for displaying tabular data. It provides support for advanced features, such as:
Automatic Paging
The GridView component automatically handles paging through rows of data. To Enable automatic paging, simply set the pageSize property.
Automatic Sorting
The GridView component automatically provides support for sorting through columns. To Enable automatic sorting, simply set the sortBy property of the column(s) you want to sort-on.
Smart-Refresh (Built-in AJAX Support)
GridView leverages our unique Smart-Refresh technology to provide an unprecedented level of user-interaction, only available in desktop applications.
For instance, displaying a different page of data or sorting the grid, is actually done behind the scene as an AJAX request, considerably decreasing traffic over the wire and increasing the overall application performance.
Smart-DataBinding
GridView leverages our unique Smart-DataBinding technology which improves performance and bind the grid component to the underlying dataModel only when it's necessary
and not on each request, as it's the case with default JSF components.
Bound and unbound mode
GridView supports both bound and unbound mode. In unbound mode, rowItems are either created declaratively (in a JSP page) or added programmatically.
In bound mode (whenever the dataSource property points to a valid data model of a backing bean) row items are automatically created by GridView, one node for each row of the data model.
| Facet Name | Description |
|---|---|
| bottomPager | Specifies the bottom pager to use |
| footer | Specifies the grid footer |
| header | Specifies the grid header |
| topPager | Specifies the top pager to use |
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
FACET_BOTTOM_PAGER
|
static java.lang.String |
FACET_FOOTER
|
static java.lang.String |
FACET_HEADER
|
static java.lang.String |
FACET_TOP_PAGER
|
static java.lang.String |
RENDERER_TYPE
|
static java.lang.String |
ROW_SELECTION_MULTIPLE
|
static java.lang.String |
ROW_SELECTION_SINGLE
|
| Fields inherited from class com.infragistics.faces.shared.component.DataRepeater |
DATA_ROW |
| Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
| Constructor Summary | |
GridView()
|
|
| Method Summary | |
void |
addSelectedRowsChangeListener(SelectedRowsChangeListener listener)
Register a new SelectedRowsChangeListener to be notifiy of SelectedRowsChangeEvent |
void |
broadcast(javax.faces.event.FacesEvent event)
|
javax.faces.component.UIComponent |
getBottomPager()
Returns the bottom pager. |
java.util.List |
getColumns()
Returns all columns defined for the grid |
java.lang.String |
getFamily()
|
int |
getFixedColumnCount()
Returns the specifies the number of columns that are not scrolling. |
javax.faces.component.UIComponent |
getFooter()
Returns the grid footer if any |
javax.faces.component.UIComponent |
getHeader()
Returns the grid header if any |
static RowItem |
getRowItem(javax.faces.component.UIComponent component)
Returns the RowItem the component is nested-in |
java.util.List |
getRows()
Returns all rows contained in the grid |
java.util.List |
getSelectedRows()
Returns an immutable list of selected rows. |
javax.faces.el.MethodBinding |
getSelectedRowsChangeListener()
Returns the MethodBinding representing a SelectedRowsChangeListener method that is notified of SelectedRowsChangeEvent each time rows are about to be selected or unselected |
SelectedRowsChangeListener[] |
getSelectedRowsChangeListeners()
Returns the set of registered SelectedRowsChangeListener for this component |
javax.faces.component.UIComponent |
getTopPager()
Returns the top pager. |
boolean |
isBottomPagerRendered()
Returns the bottom pager render (visibility) status |
boolean |
isTopPagerRendered()
Returns the top pager render (visibility) status |
void |
processDecodes(javax.faces.context.FacesContext context)
|
void |
removeSelectedRowsChangeListener(SelectedRowsChangeListener listener)
Remove an existing SelectedRowsChangeListener (if any) |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setBottomPager(javax.faces.component.UIComponent pager)
Sets the bottom pager. |
void |
setBottomPagerRendered(boolean bottomPagerRendered)
Sets the bottom pager render (visibility) status |
void |
setFixedColumnCount(int fixedColumnCount)
Sets the specifies the number of columns that are not scrolling. |
void |
setFooter(javax.faces.component.UIComponent footer)
Sets the grid footer |
void |
setHeader(javax.faces.component.UIComponent header)
Sets the grid header |
void |
setSelectedRowsChangeListener(javax.faces.el.MethodBinding selectedRowsChangeListener)
Sets the MethodBinding representing a SelectedRowsChangeListener method that is notified of SelectedRowsChangeEvent each time rows are about to be selected or unselected |
void |
setTopPager(javax.faces.component.UIComponent pager)
Sets the top pager. |
void |
setTopPagerRendered(boolean topPagerRendered)
Sets the top pager render (visibility) status |
| Methods inherited from class com.infragistics.faces.shared.component.DataList |
addPageChangeListener, addSortListener, firePageChangeEvent, fireSortEvent, getItemCount, getPageChangeListener, getPageChangeListeners, getPageCount, getPageIndex, getPageSize, getSortExpressionIndex, getSortExpressions, getSortListener, getSortListeners, isCustomPagingEnabled, isCustomSortingEnabled, removePageChangeListener, removeSortListener, setCustomPagingEnabled, setCustomSortingEnabled, setItemCount, setPageChangeListener, setPageIndex, setPageSize, setSortExpressions, setSortListener |
| Methods inherited from class com.infragistics.faces.shared.component.DataRepeater |
dataBind, encodeBegin, encodeEnd, getDataKeyName, getDataKeyValue, getDataSource, getTemplateItems, processUpdates, processValidators, queueEvent, setDataKeyName, setDataSource, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponentBase |
decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String COMPONENT_FAMILY
public static java.lang.String COMPONENT_TYPE
public static final java.lang.String FACET_BOTTOM_PAGER
public static final java.lang.String FACET_FOOTER
public static final java.lang.String FACET_HEADER
public static final java.lang.String FACET_TOP_PAGER
public static java.lang.String RENDERER_TYPE
public static final java.lang.String ROW_SELECTION_MULTIPLE
public static final java.lang.String ROW_SELECTION_SINGLE
| Constructor Detail |
public GridView()
| Method Detail |
public static RowItem getRowItem(javax.faces.component.UIComponent component)
component -
public void addSelectedRowsChangeListener(SelectedRowsChangeListener listener)
public void broadcast(javax.faces.event.FacesEvent event)
throws javax.faces.event.AbortProcessingException
broadcast in class DataListjavax.faces.event.AbortProcessingExceptionpublic javax.faces.component.UIComponent getBottomPager()
public java.util.List getColumns()
public java.lang.String getFamily()
getFamily in class DataListpublic int getFixedColumnCount()
public javax.faces.component.UIComponent getFooter()
public javax.faces.component.UIComponent getHeader()
public java.util.List getRows()
public java.util.List getSelectedRows()
public javax.faces.el.MethodBinding getSelectedRowsChangeListener()
public SelectedRowsChangeListener[] getSelectedRowsChangeListeners()
public javax.faces.component.UIComponent getTopPager()
public boolean isBottomPagerRendered()
public boolean isTopPagerRendered()
public void processDecodes(javax.faces.context.FacesContext context)
public void removeSelectedRowsChangeListener(SelectedRowsChangeListener listener)
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class DataListStateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class DataListStateHolder.saveState(javax.faces.context.FacesContext)public void setBottomPager(javax.faces.component.UIComponent pager)
pager - public void setBottomPagerRendered(boolean bottomPagerRendered)
bottomPagerRendered - booleanpublic void setFixedColumnCount(int fixedColumnCount)
fixedColumnCount - intpublic void setFooter(javax.faces.component.UIComponent footer)
footer - public void setHeader(javax.faces.component.UIComponent header)
header - public void setSelectedRowsChangeListener(javax.faces.el.MethodBinding selectedRowsChangeListener)
selectedRowsChangeListener - MethodBindingpublic void setTopPager(javax.faces.component.UIComponent pager)
pager - public void setTopPagerRendered(boolean topPagerRendered)
topPagerRendered - boolean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||