|
||||||||||
| 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.Pager
A pager is a component providing a user interface to navigate through a large number of items.
It is typically displayed as links to navigate to the first/previous/next/last page or specific page indexes.
Page Indexes
It is possible to show/hide page indexes by calling #setDisplayPageIndexes(boolean)
| Facet Name | Description |
|---|---|
| firstPage | allows to specify the component used to display the "first page" link. |
| previousPage | allows to specify the component used to display the "previous page" link. |
| nextPage | allows to specify the component used to display the "next page" link. |
| lastPage | allows to specify the component used to display the "last page" link. |
| Field Summary | |
static java.lang.String |
COMPONENT_FAMILY
|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
RENDERER_TYPE
|
| Constructor Summary | |
Pager()
|
|
| Method Summary | |
java.lang.String |
getFamily()
|
javax.faces.component.UIComponent |
getFirstPage()
Return the component that is displayed to navigate to the first page |
DataList |
getForComponent()
Returns the UIComponent that is linked to (or controlled by) the pager |
java.lang.String |
getForComponentId()
Returns the id of the component that is linked to (or controlled by) the pager |
javax.faces.component.UIComponent |
getLastPage()
Return the component that's displayed to navigate to the last page |
int |
getMaximumPageNumbers()
Returns the maximum number of pages to display |
javax.faces.component.UIComponent |
getNextPage()
Return the component that's displayed to navigate to the next page |
javax.faces.component.UIComponent |
getPreviousPage()
Return the component that's displayed to navigate to the previous page |
boolean |
isFirstLastRendered()
Returns the a flag indicating whether the first and last pages are visible or not |
boolean |
isPageNumbersRendered()
Returns the a flag indicating whether page numbers are visible or not |
boolean |
isPreviousNextRendered()
Returns the a flag indicating whether the previous and next pages are visible or not |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setFirstLastRendered(boolean firstLastRendered)
Sets the a flag indicating whether the first and last pages are visible or not |
void |
setFirstPage(javax.faces.component.UIComponent component)
Sets the UIComponent that is displayed to move to the first record |
void |
setForComponentId(java.lang.String forComponentId)
Sets the id of the component that is linked-to or controlled by the pager |
void |
setLastPage(javax.faces.component.UIComponent component)
Sets the UIComponent that is displayed to move to the last record |
void |
setMaximumPageNumbers(int maximumPageNumbers)
Sets the maximum number of pages to display |
void |
setNextPage(javax.faces.component.UIComponent component)
Sets the UIComponent that is displayed to move to the next record |
void |
setPageNumbersRendered(boolean pageNumbersRendered)
Sets the a flag indicating whether page numbers are visible or not |
void |
setPreviousNextRendered(boolean previousNextRendered)
Sets the a flag indicating whether the previous and next pages are visible or not |
void |
setPreviousPage(javax.faces.component.UIComponent component)
Sets the UIComponent that is displayed to move to the previous record |
| Methods inherited from class javax.faces.component.UIComponentBase |
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| 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 java.lang.String RENDERER_TYPE
| Constructor Detail |
public Pager()
| Method Detail |
public java.lang.String getFamily()
public javax.faces.component.UIComponent getFirstPage()
public DataList getForComponent()
public java.lang.String getForComponentId()
public javax.faces.component.UIComponent getLastPage()
public int getMaximumPageNumbers()
public javax.faces.component.UIComponent getNextPage()
public javax.faces.component.UIComponent getPreviousPage()
public boolean isFirstLastRendered()
public boolean isPageNumbersRendered()
public boolean isPreviousNextRendered()
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
public java.lang.Object saveState(javax.faces.context.FacesContext context)
public void setFirstLastRendered(boolean firstLastRendered)
firstLastRendered - booleanpublic void setFirstPage(javax.faces.component.UIComponent component)
component - UIComponentpublic void setForComponentId(java.lang.String forComponentId)
forComponentId - Stringpublic void setLastPage(javax.faces.component.UIComponent component)
component - UIComponentpublic void setMaximumPageNumbers(int maximumPageNumbers)
maximumPageNumbers - intpublic void setNextPage(javax.faces.component.UIComponent component)
component - public void setPageNumbersRendered(boolean pageNumbersRendered)
pageNumbersRendered - booleanpublic void setPreviousNextRendered(boolean previousNextRendered)
previousNextRendered - booleanpublic void setPreviousPage(javax.faces.component.UIComponent component)
component -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||