Package org.primefaces.component.api
Class UIPageableData
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIData
org.primefaces.component.api.UIData
org.primefaces.component.api.UIPageableData
- All Implemented Interfaces:
EventListener,javax.faces.component.NamingContainer,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.component.UniqueIdVendor,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder,Pageable,TouchAware
- Direct Known Subclasses:
DataGridBase,DataListBase,DataTableBase,DataViewBase
UIData for pageable components
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class javax.faces.component.UIData
COMPONENT_FAMILY, COMPONENT_TYPEFields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEYFields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidintgetPage()intintintgetRows()intbooleanisPaginationRequest(javax.faces.context.FacesContext context) booleanbooleanIs this component touch enabled?voidvoidsetCurrentPageReportTemplate(String currentPageReportTemplate) voidsetEmptyMessage(String emptyMessage) voidsetFirst(int first) voidsetPageLinks(int pageLinks) voidsetPaginator(boolean paginator) voidsetPaginatorAlwaysVisible(boolean paginatorAlwaysVisible) voidsetPaginatorPosition(String paginatorPosition) voidsetPaginatorTemplate(String paginatorTemplate) voidsetRows(int rows) voidsetRowsPerPage(String rowsPerPage) voidsetRowsPerPageLabel(String rowsPerPageLabel) voidsetRowsPerPageTemplate(String rowsPerPageTemplate) voidsetTouchable(Boolean touchable) Enable/disable touch support for this component.voidupdatePaginationData(javax.faces.context.FacesContext context) Methods inherited from class org.primefaces.component.api.UIData
encodeBegin, getClientId, getContainerClientId, getDataModel, getIterableChildren, getRowIndex, getRowIndexVar, getSavedState, invokeOnComponent, isDefaultAndEmpty, isLazy, isNestedWithinIterator, isRowStatePreserved, markInitialState, preDecode, preEncode, preUpdate, preValidate, process, processChildren, processColumnFacets, processDecodes, processFacets, processPhase, processUpdates, processValidators, requiresColumns, restoreDescendantState, restoreDescendantState, restoreState, saveDescendantState, saveDescendantState, saveInputState, saveState, setDataModel, setId, setLazy, setRowIndex, setRowIndexVar, setRowModel, setRowStatePreserved, shouldProcessChild, shouldSkipChildren, shouldVisitChildren, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitRows, visitTreeMethods inherited from class javax.faces.component.UIData
broadcast, createUniqueId, getFamily, getFirst, getFooter, getHeader, getRowCount, getRowData, getValue, getVar, isRowAvailable, queueEvent, setFooter, setHeader, setValue, setValueBinding, setValueExpression, setVarMethods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, subscribeToEvent, unsubscribeFromEventMethods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInViewMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.primefaces.component.api.Pageable
getClientId, getFacet, getFirst, getFooter, getHeader, getRowCount
-
Field Details
-
PAGINATOR_TOP_CONTAINER_CLASS
- See Also:
-
PAGINATOR_BOTTOM_CONTAINER_CLASS
- See Also:
-
PAGINATOR_PAGES_CLASS
- See Also:
-
PAGINATOR_TOP_LEFT_CONTENT_CLASS
- See Also:
-
PAGINATOR_TOP_RIGHT_CONTENT_CLASS
- See Also:
-
PAGINATOR_BOTTOM_LEFT_CONTENT_CLASS
- See Also:
-
PAGINATOR_BOTTOM_RIGHT_CONTENT_CLASS
- See Also:
-
PAGINATOR_PAGE_CLASS
- See Also:
-
PAGINATOR_ACTIVE_PAGE_CLASS
- See Also:
-
PAGINATOR_CURRENT_CLASS
- See Also:
-
PAGINATOR_RPP_OPTIONS_CLASS
- See Also:
-
PAGINATOR_RPP_LABEL_CLASS
- See Also:
-
PAGINATOR_JTP_SELECT_CLASS
- See Also:
-
PAGINATOR_JTP_INPUT_CLASS
- See Also:
-
PAGINATOR_FIRST_PAGE_LINK_CLASS
- See Also:
-
PAGINATOR_FIRST_PAGE_ICON_CLASS
- See Also:
-
PAGINATOR_PREV_PAGE_LINK_CLASS
- See Also:
-
PAGINATOR_PREV_PAGE_ICON_CLASS
- See Also:
-
PAGINATOR_NEXT_PAGE_LINK_CLASS
- See Also:
-
PAGINATOR_NEXT_PAGE_ICON_CLASS
- See Also:
-
PAGINATOR_LAST_PAGE_LINK_CLASS
- See Also:
-
PAGINATOR_LAST_PAGE_ICON_CLASS
- See Also:
-
ARIA_HEADER_LABEL
- See Also:
-
ARIA_FIRST_PAGE_LABEL
- See Also:
-
ARIA_PREVIOUS_PAGE_LABEL
- See Also:
-
ARIA_NEXT_PAGE_LABEL
- See Also:
-
ARIA_LAST_PAGE_LABEL
- See Also:
-
ROWS_PER_PAGE_LABEL
- See Also:
-
EMPTY_MESSAGE
- See Also:
-
-
Constructor Details
-
UIPageableData
public UIPageableData()
-
-
Method Details
-
getEmptyMessage
-
setEmptyMessage
-
isTouchable
Description copied from interface:TouchAwareIs this component touch enabled?- Specified by:
isTouchablein interfaceTouchAware- Returns:
- false to disable
-
setTouchable
Description copied from interface:TouchAwareEnable/disable touch support for this component.- Specified by:
setTouchablein interfaceTouchAware- Parameters:
touchable- true for touch support
-
isPaginator
public boolean isPaginator() -
setPaginator
public void setPaginator(boolean paginator) -
getPaginatorTemplate
- Specified by:
getPaginatorTemplatein interfacePageable
-
setPaginatorTemplate
-
getRowsPerPageTemplate
- Specified by:
getRowsPerPageTemplatein interfacePageable
-
setRowsPerPageTemplate
-
getRowsPerPageLabel
- Specified by:
getRowsPerPageLabelin interfacePageable
-
setRowsPerPageLabel
-
getCurrentPageReportTemplate
- Specified by:
getCurrentPageReportTemplatein interfacePageable
-
setCurrentPageReportTemplate
-
getPageLinks
public int getPageLinks()- Specified by:
getPageLinksin interfacePageable
-
setPageLinks
public void setPageLinks(int pageLinks) -
getPaginatorPosition
- Specified by:
getPaginatorPositionin interfacePageable
-
setPaginatorPosition
-
isPaginatorAlwaysVisible
public boolean isPaginatorAlwaysVisible()- Specified by:
isPaginatorAlwaysVisiblein interfacePageable
-
setPaginatorAlwaysVisible
public void setPaginatorAlwaysVisible(boolean paginatorAlwaysVisible) -
getRows
public int getRows() -
setRows
public void setRows(int rows) - Overrides:
setRowsin classjavax.faces.component.UIData
-
setFirst
public void setFirst(int first) - Overrides:
setFirstin classjavax.faces.component.UIData
-
resetRows
public void resetRows() -
calculateRows
public void calculateRows() -
calculateFirst
public boolean calculateFirst() -
getPage
public int getPage() -
getPageCount
public int getPageCount()- Specified by:
getPageCountin interfacePageable
-
getRowsToRender
public int getRowsToRender()- Specified by:
getRowsToRenderin interfacePageable
-
isPaginationRequest
public boolean isPaginationRequest(javax.faces.context.FacesContext context) -
updatePaginationData
public void updatePaginationData(javax.faces.context.FacesContext context) -
getRowsPerPage
-
setRowsPerPage
-