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
Modifier and TypeClassDescriptionprotected static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class javax.faces.component.UIData
COMPONENT_FAMILY, COMPONENT_TYPE
Fields 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_KEY
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
int
getPage()
int
int
int
getRows()
int
boolean
isPaginationRequest
(javax.faces.context.FacesContext context) boolean
boolean
Is this component touch enabled?void
void
setCurrentPageReportTemplate
(String currentPageReportTemplate) void
setEmptyMessage
(String emptyMessage) void
setFirst
(int first) void
setPageLinks
(int pageLinks) void
setPaginator
(boolean paginator) void
setPaginatorAlwaysVisible
(boolean paginatorAlwaysVisible) void
setPaginatorPosition
(String paginatorPosition) void
setPaginatorTemplate
(String paginatorTemplate) void
setRows
(int rows) void
setRowsPerPage
(String rowsPerPage) void
setRowsPerPageTemplate
(String rowsPerPageTemplate) void
setTouchable
(Boolean touchable) Enable/disable touch support for this component.void
updatePaginationData
(javax.faces.context.FacesContext context) Methods inherited from class org.primefaces.component.api.UIData
encodeBegin, getClientId, getContainerClientId, getIterableChildren, getRowIndex, getRowIndexVar, invokeOnComponent, isLazy, isNestedWithinIterator, isRowStatePreserved, markInitialState, preDecode, preEncode, preUpdate, preValidate, process, processChildren, processColumnFacets, processDecodes, processFacets, processPhase, processUpdates, processValidators, requiresColumns, restoreDescendantState, restoreDescendantState, restoreState, saveDescendantState, saveDescendantState, saveState, setId, setLazy, setRowIndex, setRowIndexVar, setRowModel, setRowStatePreserved, shouldProcessChild, shouldSkipChildren, shouldVisitChildren, visitColumnContent, visitColumnFacets, visitColumnGroup, visitColumnsAndColumnFacets, visitFacets, visitRows, visitTree
Methods inherited from class javax.faces.component.UIData
broadcast, createUniqueId, getDataModel, getFamily, getFirst, getFooter, getHeader, getRowCount, getRowData, getValue, getVar, isRowAvailable, queueEvent, setDataModel, setFooter, setHeader, setValue, setValueBinding, setValueExpression, setVar
Methods 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, unsubscribeFromEvent
Methods 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, setInView
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
-
EMPTY_MESSAGE
- See Also:
-
-
Constructor Details
-
UIPageableData
public UIPageableData()
-
-
Method Details
-
getEmptyMessage
-
setEmptyMessage
-
isTouchable
Description copied from interface:TouchAware
Is this component touch enabled?- Specified by:
isTouchable
in interfaceTouchAware
- Returns:
- false to disable
-
setTouchable
Description copied from interface:TouchAware
Enable/disable touch support for this component.- Specified by:
setTouchable
in interfaceTouchAware
- Parameters:
touchable
- true for touch support
-
isPaginator
public boolean isPaginator() -
setPaginator
public void setPaginator(boolean paginator) -
getPaginatorTemplate
- Specified by:
getPaginatorTemplate
in interfacePageable
-
setPaginatorTemplate
-
getRowsPerPageTemplate
- Specified by:
getRowsPerPageTemplate
in interfacePageable
-
setRowsPerPageTemplate
-
getCurrentPageReportTemplate
- Specified by:
getCurrentPageReportTemplate
in interfacePageable
-
setCurrentPageReportTemplate
-
getPageLinks
public int getPageLinks()- Specified by:
getPageLinks
in interfacePageable
-
setPageLinks
public void setPageLinks(int pageLinks) -
getPaginatorPosition
- Specified by:
getPaginatorPosition
in interfacePageable
-
setPaginatorPosition
-
isPaginatorAlwaysVisible
public boolean isPaginatorAlwaysVisible()- Specified by:
isPaginatorAlwaysVisible
in interfacePageable
-
setPaginatorAlwaysVisible
public void setPaginatorAlwaysVisible(boolean paginatorAlwaysVisible) -
getRows
public int getRows() -
setRows
public void setRows(int rows) - Overrides:
setRows
in classjavax.faces.component.UIData
-
setFirst
public void setFirst(int first) - Overrides:
setFirst
in 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:
getPageCount
in interfacePageable
-
getRowsToRender
public int getRowsToRender()- Specified by:
getRowsToRender
in interfacePageable
-
isPaginationRequest
public boolean isPaginationRequest(javax.faces.context.FacesContext context) -
updatePaginationData
public void updatePaginationData(javax.faces.context.FacesContext context) -
getRowsPerPage
-
setRowsPerPage
-