public abstract class AbstractDataScroller extends javax.faces.component.UIComponentBase implements DataScrollSource, IterationStateHolder, AjaxProps, CoreProps
The <rich:dataScroller> component is used for navigating through multiple pages of tables or grids.
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
CONTROLS_SEPARATOR_FACET_NAME |
static String |
FAST_FORWARD_DISABLED_FACET_NAME |
static String |
FAST_FORWARD_FACET_NAME |
static String |
FAST_REWIND_DISABLED_FACET_NAME |
static String |
FAST_REWIND_FACET_NAME |
static String |
FIRST_DISABLED_FACET_NAME |
static String |
FIRST_FACET_NAME |
static String |
LAST_DISABLED_FACET_NAME |
static String |
LAST_FACET_NAME |
static String |
NEXT_DISABLED_FACET_NAME |
static String |
NEXT_FACET_NAME |
static String |
PAGEMODE_FULL |
static String |
PAGEMODE_SHORT |
static String |
PAGES_FACET_NAME |
static String |
PREVIOUS_DISABLED_FACET_NAME |
static String |
PREVIOUS_FACET_NAME |
static String |
SCROLLER_STATE_ATTRIBUTE |
Constructor and Description |
---|
AbstractDataScroller() |
Modifier and Type | Method and Description |
---|---|
void |
addScrollListener(DataScrollListener listener)
Adds a DataScrollListener to this DataScrollSource.
|
void |
broadcast(javax.faces.event.FacesEvent event) |
abstract DataScrollerControlsMode |
getBoundaryControls()
The attribute specifies the visibility of boundaryControls.
|
javax.faces.component.UIComponent |
getDataTable()
Finds the dataTable which id is mapped to the "for" property
|
abstract DataScrollerControlsMode |
getFastControls()
The attribute specifies the visibility of fastControls.
|
abstract javax.faces.component.UIComponent |
getFastForward() |
abstract javax.faces.component.UIComponent |
getFastRewind() |
abstract int |
getFastStep()
The attribute indicates pages quantity to switch onto when fast scrolling is used.
|
int |
getFastStepOrDefault() |
javax.faces.component.UIComponent |
getFirst() |
String |
getFor()
Component ID of the table whose data is scrolled
|
Object |
getIterationState()
Get component state for a current iteration.
|
abstract javax.faces.component.UIComponent |
getLast() |
abstract String |
getLastPageMode()
The attribute to control whether last page of datascroller shows "rows" number of items or just the rest.
|
abstract int |
getMaxPages()
Maximum quantity of pages.
|
int |
getMaxPagesOrDefault() |
abstract javax.faces.component.UIComponent |
getNext() |
int |
getPage()
If page >= 1 then it's a page number to show
|
int |
getPageCount() |
int |
getPageCount(javax.faces.component.UIComponent data) |
int |
getPageCount(javax.faces.component.UIComponent data,
int rowCount,
int rows) |
int |
getPageForFacet(String facetName) |
abstract javax.faces.component.UIComponent |
getPrevious() |
int |
getRowCount() |
int |
getRowCount(javax.faces.component.UIComponent data) |
int |
getRows(javax.faces.component.UIComponent data) |
abstract javax.el.MethodExpression |
getScrollListener() |
DataScrollListener[] |
getScrollListeners()
Returns all ScrollListeners for this DataScrollSource.
|
abstract DataScrollerControlsMode |
getStepControls()
The attribute specifies the visibility of stepControls.
|
boolean |
isLocalPageSet() |
abstract boolean |
isRenderIfSinglePage()
If renderIfSinglePage is "true" then datascroller is displayed on condition that the data hold on one page.
|
void |
removeScrollListener(DataScrollListener listener)
Removes a DataFilterSliderListener from this DataScrollSource.
|
void |
resetLocalPage() |
void |
setFor(String forId) |
void |
setIterationState(Object state)
Set component state for the next iteration.
|
void |
setPage(int newPage) |
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getFamily, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExecute, getOnbegin, getStatus
getData, getOnbeforedomupdate, getOncomplete, getRender, isLimitRender, isResetValues
getStyle, getStyleClass, getTitle
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String SCROLLER_STATE_ATTRIBUTE
public static final String FIRST_FACET_NAME
public static final String LAST_FACET_NAME
public static final String NEXT_FACET_NAME
public static final String PREVIOUS_FACET_NAME
public static final String FAST_FORWARD_FACET_NAME
public static final String FAST_REWIND_FACET_NAME
public static final String FIRST_DISABLED_FACET_NAME
public static final String LAST_DISABLED_FACET_NAME
public static final String NEXT_DISABLED_FACET_NAME
public static final String PREVIOUS_DISABLED_FACET_NAME
public static final String FAST_FORWARD_DISABLED_FACET_NAME
public static final String FAST_REWIND_DISABLED_FACET_NAME
public static final String CONTROLS_SEPARATOR_FACET_NAME
public static final String PAGES_FACET_NAME
public static final String PAGEMODE_FULL
public static final String PAGEMODE_SHORT
public abstract boolean isRenderIfSinglePage()
public abstract String getLastPageMode()
public abstract int getMaxPages()
public int getMaxPagesOrDefault()
public abstract DataScrollerControlsMode getBoundaryControls()
public abstract DataScrollerControlsMode getFastControls()
public abstract DataScrollerControlsMode getStepControls()
public abstract int getFastStep()
public int getFastStepOrDefault()
public String getFor()
public void setFor(String forId)
public abstract javax.el.MethodExpression getScrollListener()
public void addScrollListener(DataScrollListener listener)
DataScrollSource
addScrollListener
in interface DataScrollSource
listener
- the Scroll listener to be addedpublic DataScrollListener[] getScrollListeners()
DataScrollSource
getScrollListeners
in interface DataScrollSource
public void removeScrollListener(DataScrollListener listener)
DataScrollSource
removeScrollListener
in interface DataScrollSource
listener
- the Scroll listener to be removedpublic void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException
broadcast
in class javax.faces.component.UIComponentBase
javax.faces.event.AbortProcessingException
public javax.faces.component.UIComponent getDataTable()
public int getPageForFacet(String facetName)
public int getPageCount(javax.faces.component.UIComponent data)
public int getPageCount(javax.faces.component.UIComponent data, int rowCount, int rows)
public int getPageCount()
public int getRowCount(javax.faces.component.UIComponent data)
public int getRowCount()
public int getRows(javax.faces.component.UIComponent data)
public javax.faces.component.UIComponent getFirst()
public abstract javax.faces.component.UIComponent getLast()
public abstract javax.faces.component.UIComponent getNext()
public abstract javax.faces.component.UIComponent getPrevious()
public abstract javax.faces.component.UIComponent getFastForward()
public abstract javax.faces.component.UIComponent getFastRewind()
public void setPage(int newPage)
public int getPage()
public boolean isLocalPageSet()
public void resetLocalPage()
public Object getIterationState()
IterationStateHolder
getIterationState
in interface IterationStateHolder
public void setIterationState(Object state)
IterationStateHolder
null
value. In the second case component should reset its state to the initial.setIterationState
in interface IterationStateHolder
state
- request-scope component state or null
. Details are subject for a component implementationCopyright © 2015 JBoss by Red Hat. All Rights Reserved.