org.richfaces.component
Class UIDatascroller

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.richfaces.component.UIDatascroller
All Implemented Interfaces:
javax.faces.component.StateHolder, DataScrollerSource
Direct Known Subclasses:
HtmlDatascroller

public abstract class UIDatascroller
extends javax.faces.component.UIComponentBase
implements DataScrollerSource

JSF component class


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String FAST_FORWARD_FACET_NAME
           
static java.lang.String FAST_REWIND_FACET_NAME
           
static java.lang.String FIRST_FACET_NAME
           
static java.lang.String LAST_FACET_NAME
           
static java.lang.String NEXT_FACET_NAME
           
static java.lang.String PREVIOUS_FACET_NAME
           
 
Constructor Summary
UIDatascroller()
           
 
Method Summary
 void addScrollerListener(DataScrollerListener listener)
          Adds a DataScrollerListener to this DataScrollerSource.
 void broadcast(javax.faces.event.FacesEvent event)
           
protected  javax.faces.component.UIData getDataTable()
          Finds the dataTable which id is mapped to the "for" property
abstract  java.lang.String getEventsQueue()
           
 java.lang.String getFamily()
           
 javax.faces.component.UIComponent getFastForward()
           
 javax.faces.component.UIComponent getFastRewind()
           
abstract  int getFastStep()
           
 javax.faces.component.UIComponent getFirst()
           
 int getFirstRow()
           
abstract  java.lang.String getFor()
           
abstract  java.lang.String getHandleValue()
           
 javax.faces.component.UIComponent getLast()
           
abstract  int getMaxPages()
           
 javax.faces.component.UIComponent getNext()
           
 int getPageCount()
           
 int getPageIndex()
          Gets the index of the current page
 javax.faces.component.UIComponent getPrevious()
           
abstract  int getRequestDelay()
           
 int getRowCount()
           
 int getRows()
           
abstract  javax.faces.el.MethodBinding getScrollerListener()
           
 DataScrollerListener[] getScrollerListeners()
          Returns all ScrollerListeners for this DataScrollerSource.
abstract  java.lang.String getSelectedStyle()
           
abstract  java.lang.String getSelectedStyleClass()
           
abstract  java.lang.String getStyle()
           
abstract  java.lang.String getStyleClass()
           
abstract  java.lang.String getTableStyleClass()
           
abstract  boolean isAjaxSingle()
           
abstract  boolean isRenderCurrentAsText()
           
abstract  boolean isRenderIfSinglePage()
           
 void removeScrollerListener(DataScrollerListener listener)
          Removes a DataFilterSliderListener from this DataScrollerSourceSource.
abstract  void setAjaxSingle(boolean ajaxSingle)
           
abstract  void setEventsQueue(java.lang.String eventsQueue)
           
abstract  void setFastStep(int FastStep)
           
abstract  void setFor(java.lang.String f)
           
abstract  void setHandleValue(java.lang.String handleValue)
           
abstract  void setMaxPages(int maxPages)
           
 void setPage(java.lang.String facetName)
          Sets the page number according to the parameter recived from the commandLink
 void setPageIndex(int page)
          Sets the page index
abstract  void setRenderCurrentAsText(boolean renderCurrentAsText)
           
abstract  void setRenderIfSinglePage(boolean renderIfSinglePage)
           
abstract  void setRequestDelay(int requestDelay)
           
abstract  void setScrollerListener(javax.faces.el.MethodBinding scrollerListener)
           
abstract  void setSelectedStyle(java.lang.String selectedStyle)
           
abstract  void setSelectedStyleClass(java.lang.String selectedStyleClass)
           
abstract  void setStyle(java.lang.String styleClass)
           
abstract  void setStyleClass(java.lang.String styleClass)
           
abstract  void setTableStyleClass(java.lang.String tableStyleClass)
           
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

FIRST_FACET_NAME

public static final java.lang.String FIRST_FACET_NAME
See Also:
Constant Field Values

LAST_FACET_NAME

public static final java.lang.String LAST_FACET_NAME
See Also:
Constant Field Values

NEXT_FACET_NAME

public static final java.lang.String NEXT_FACET_NAME
See Also:
Constant Field Values

PREVIOUS_FACET_NAME

public static final java.lang.String PREVIOUS_FACET_NAME
See Also:
Constant Field Values

FAST_FORWARD_FACET_NAME

public static final java.lang.String FAST_FORWARD_FACET_NAME
See Also:
Constant Field Values

FAST_REWIND_FACET_NAME

public static final java.lang.String FAST_REWIND_FACET_NAME
See Also:
Constant Field Values
Constructor Detail

UIDatascroller

public UIDatascroller()
Method Detail

addScrollerListener

public void addScrollerListener(DataScrollerListener listener)
Description copied from interface: DataScrollerSource
Adds a DataScrollerListener to this DataScrollerSource.

Specified by:
addScrollerListener in interface DataScrollerSource
Parameters:
listener - the Scroler listener to be added

getScrollerListeners

public DataScrollerListener[] getScrollerListeners()
Description copied from interface: DataScrollerSource
Returns all ScrollerListeners for this DataScrollerSource.

Specified by:
getScrollerListeners in interface DataScrollerSource
Returns:
the Scroler listener array

removeScrollerListener

public void removeScrollerListener(DataScrollerListener listener)
Description copied from interface: DataScrollerSource
Removes a DataFilterSliderListener from this DataScrollerSourceSource.

Specified by:
removeScrollerListener in interface DataScrollerSource
Parameters:
listener - the Scroler listener to be removed

broadcast

public void broadcast(javax.faces.event.FacesEvent event)
               throws javax.faces.event.AbortProcessingException
Overrides:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException

getScrollerListener

public abstract javax.faces.el.MethodBinding getScrollerListener()

setScrollerListener

public abstract void setScrollerListener(javax.faces.el.MethodBinding scrollerListener)

setFor

public abstract void setFor(java.lang.String f)

getFor

public abstract java.lang.String getFor()

getFastStep

public abstract int getFastStep()

setFastStep

public abstract void setFastStep(int FastStep)

isRenderIfSinglePage

public abstract boolean isRenderIfSinglePage()

setRenderIfSinglePage

public abstract void setRenderIfSinglePage(boolean renderIfSinglePage)

getMaxPages

public abstract int getMaxPages()

setMaxPages

public abstract void setMaxPages(int maxPages)

isRenderCurrentAsText

public abstract boolean isRenderCurrentAsText()

setRenderCurrentAsText

public abstract void setRenderCurrentAsText(boolean renderCurrentAsText)

getSelectedStyleClass

public abstract java.lang.String getSelectedStyleClass()

setSelectedStyleClass

public abstract void setSelectedStyleClass(java.lang.String selectedStyleClass)

getSelectedStyle

public abstract java.lang.String getSelectedStyle()

setSelectedStyle

public abstract void setSelectedStyle(java.lang.String selectedStyle)

getEventsQueue

public abstract java.lang.String getEventsQueue()

setEventsQueue

public abstract void setEventsQueue(java.lang.String eventsQueue)

isAjaxSingle

public abstract boolean isAjaxSingle()

setAjaxSingle

public abstract void setAjaxSingle(boolean ajaxSingle)

getRequestDelay

public abstract int getRequestDelay()

setRequestDelay

public abstract void setRequestDelay(int requestDelay)

getTableStyleClass

public abstract java.lang.String getTableStyleClass()

setTableStyleClass

public abstract void setTableStyleClass(java.lang.String tableStyleClass)

getStyleClass

public abstract java.lang.String getStyleClass()

getStyle

public abstract java.lang.String getStyle()

setStyleClass

public abstract void setStyleClass(java.lang.String styleClass)

setStyle

public abstract void setStyle(java.lang.String styleClass)

getHandleValue

public abstract java.lang.String getHandleValue()

setHandleValue

public abstract void setHandleValue(java.lang.String handleValue)

getDataTable

protected javax.faces.component.UIData getDataTable()
Finds the dataTable which id is mapped to the "for" property

Returns:
the dataTable component

getPageIndex

public int getPageIndex()
Gets the index of the current page

Returns:
the page index

setPage

public void setPage(java.lang.String facetName)
Sets the page number according to the parameter recived from the commandLink

Parameters:
facetName -

setPageIndex

public void setPageIndex(int page)
Sets the page index

Parameters:
page - number

getPageCount

public int getPageCount()
Returns:
the page count of the uidata

getRowCount

public int getRowCount()
Returns:
int

getRows

public int getRows()
Returns:
int

getFirst

public javax.faces.component.UIComponent getFirst()

getLast

public javax.faces.component.UIComponent getLast()

getNext

public javax.faces.component.UIComponent getNext()

getFastForward

public javax.faces.component.UIComponent getFastForward()

getFastRewind

public javax.faces.component.UIComponent getFastRewind()

getPrevious

public javax.faces.component.UIComponent getPrevious()

getFirstRow

public int getFirstRow()
Returns:
int

getFamily

public java.lang.String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent


Copyright © 2007. All Rights Reserved.