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
public class UIPageableData extends UIData implements Pageable, TouchAware
UIData for pageable components
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
UIPageableData.InternalPropertyKeys
static class
UIPageableData.PropertyKeys
-
Field Summary
-
Constructor Summary
Constructors Constructor Description UIPageableData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calculateFirst()
void
calculateRows()
String
getCurrentPageReportTemplate()
String
getEmptyMessage()
int
getPage()
int
getPageCount()
int
getPageLinks()
String
getPaginatorPosition()
String
getPaginatorTemplate()
int
getRows()
String
getRowsPerPage()
String
getRowsPerPageLabel()
String
getRowsPerPageTemplate()
int
getRowsToRender()
boolean
isPaginationRequest(javax.faces.context.FacesContext context)
boolean
isPaginator()
boolean
isPaginatorAlwaysVisible()
boolean
isTouchable()
Is this component touch enabled?void
resetRows()
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
setRowsPerPageLabel(String rowsPerPageLabel)
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, getDataModel, 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, setDataModel, 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, getFamily, getFirst, getFooter, getHeader, getRowCount, getRowData, getValue, getVar, isRowAvailable, queueEvent, 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 Detail
-
PAGINATOR_TOP_CONTAINER_CLASS
public static final String PAGINATOR_TOP_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_BOTTOM_CONTAINER_CLASS
public static final String PAGINATOR_BOTTOM_CONTAINER_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_PAGES_CLASS
public static final String PAGINATOR_PAGES_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_TOP_LEFT_CONTENT_CLASS
public static final String PAGINATOR_TOP_LEFT_CONTENT_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_TOP_RIGHT_CONTENT_CLASS
public static final String PAGINATOR_TOP_RIGHT_CONTENT_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_BOTTOM_LEFT_CONTENT_CLASS
public static final String PAGINATOR_BOTTOM_LEFT_CONTENT_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_BOTTOM_RIGHT_CONTENT_CLASS
public static final String PAGINATOR_BOTTOM_RIGHT_CONTENT_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_PAGE_CLASS
public static final String PAGINATOR_PAGE_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_ACTIVE_PAGE_CLASS
public static final String PAGINATOR_ACTIVE_PAGE_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_CURRENT_CLASS
public static final String PAGINATOR_CURRENT_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_RPP_OPTIONS_CLASS
public static final String PAGINATOR_RPP_OPTIONS_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_RPP_LABEL_CLASS
public static final String PAGINATOR_RPP_LABEL_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_JTP_SELECT_CLASS
public static final String PAGINATOR_JTP_SELECT_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_JTP_INPUT_CLASS
public static final String PAGINATOR_JTP_INPUT_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_FIRST_PAGE_LINK_CLASS
public static final String PAGINATOR_FIRST_PAGE_LINK_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_FIRST_PAGE_ICON_CLASS
public static final String PAGINATOR_FIRST_PAGE_ICON_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_PREV_PAGE_LINK_CLASS
public static final String PAGINATOR_PREV_PAGE_LINK_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_PREV_PAGE_ICON_CLASS
public static final String PAGINATOR_PREV_PAGE_ICON_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_NEXT_PAGE_LINK_CLASS
public static final String PAGINATOR_NEXT_PAGE_LINK_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_NEXT_PAGE_ICON_CLASS
public static final String PAGINATOR_NEXT_PAGE_ICON_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_LAST_PAGE_LINK_CLASS
public static final String PAGINATOR_LAST_PAGE_LINK_CLASS
- See Also:
- Constant Field Values
-
PAGINATOR_LAST_PAGE_ICON_CLASS
public static final String PAGINATOR_LAST_PAGE_ICON_CLASS
- See Also:
- Constant Field Values
-
ARIA_HEADER_LABEL
public static final String ARIA_HEADER_LABEL
- See Also:
- Constant Field Values
-
ARIA_FIRST_PAGE_LABEL
public static final String ARIA_FIRST_PAGE_LABEL
- See Also:
- Constant Field Values
-
ARIA_PREVIOUS_PAGE_LABEL
public static final String ARIA_PREVIOUS_PAGE_LABEL
- See Also:
- Constant Field Values
-
ARIA_NEXT_PAGE_LABEL
public static final String ARIA_NEXT_PAGE_LABEL
- See Also:
- Constant Field Values
-
ARIA_LAST_PAGE_LABEL
public static final String ARIA_LAST_PAGE_LABEL
- See Also:
- Constant Field Values
-
ROWS_PER_PAGE_LABEL
public static final String ROWS_PER_PAGE_LABEL
- See Also:
- Constant Field Values
-
EMPTY_MESSAGE
public static final String EMPTY_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEmptyMessage
public String getEmptyMessage()
-
setEmptyMessage
public void setEmptyMessage(String emptyMessage)
-
isTouchable
public boolean isTouchable()
Description copied from interface:TouchAware
Is this component touch enabled?- Specified by:
isTouchable
in interfaceTouchAware
- Returns:
- false to disable
-
setTouchable
public void setTouchable(boolean touchable)
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
public String getPaginatorTemplate()
- Specified by:
getPaginatorTemplate
in interfacePageable
-
setPaginatorTemplate
public void setPaginatorTemplate(String paginatorTemplate)
-
getRowsPerPageTemplate
public String getRowsPerPageTemplate()
- Specified by:
getRowsPerPageTemplate
in interfacePageable
-
setRowsPerPageTemplate
public void setRowsPerPageTemplate(String rowsPerPageTemplate)
-
getRowsPerPageLabel
public String getRowsPerPageLabel()
- Specified by:
getRowsPerPageLabel
in interfacePageable
-
setRowsPerPageLabel
public void setRowsPerPageLabel(String rowsPerPageLabel)
-
getCurrentPageReportTemplate
public String getCurrentPageReportTemplate()
- Specified by:
getCurrentPageReportTemplate
in interfacePageable
-
setCurrentPageReportTemplate
public void setCurrentPageReportTemplate(String currentPageReportTemplate)
-
getPageLinks
public int getPageLinks()
- Specified by:
getPageLinks
in interfacePageable
-
setPageLinks
public void setPageLinks(int pageLinks)
-
getPaginatorPosition
public String getPaginatorPosition()
- Specified by:
getPaginatorPosition
in interfacePageable
-
setPaginatorPosition
public void setPaginatorPosition(String paginatorPosition)
-
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 void calculateFirst()
-
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
public String getRowsPerPage()
-
setRowsPerPage
public void setRowsPerPage(String rowsPerPage)
-
-