public class RichFacesDataScroller extends Object implements DataScroller, AdvancedVisibleComponentIteractions<RichFacesDataScroller.AdvancedDataScrollerInteractions>
Modifier and Type | Class and Description |
---|---|
class |
RichFacesDataScroller.AdvancedDataScrollerInteractions |
DataScroller.DataScrollerSwitchButton
Constructor and Description |
---|
RichFacesDataScroller() |
Modifier and Type | Method and Description |
---|---|
RichFacesDataScroller.AdvancedDataScrollerInteractions |
advanced() |
int |
getActivePageNumber()
Gets the index of the currently selected page.
|
boolean |
hasPages()
Determines whether there are some pages to scroll over with this DataScroller.
|
void |
switchTo(DataScroller.DataScrollerSwitchButton btn)
Switch by buttons.
|
void |
switchTo(int pageNumber)
Direct switch to page.
|
public int getActivePageNumber()
DataScroller
getActivePageNumber
in interface DataScroller
public void switchTo(int pageNumber)
DataScroller
switchTo
in interface DataScroller
pageNumber
- of the page which will be selectedpublic void switchTo(DataScroller.DataScrollerSwitchButton btn)
DataScroller
switchTo
in interface DataScroller
btn
- the button which will be used to control the dataScroller in order to switch to a wished pageDataScroller.DataScrollerSwitchButton
public boolean hasPages()
DataScroller
hasPages
in interface DataScroller
public RichFacesDataScroller.AdvancedDataScrollerInteractions advanced()
advanced
in interface AdvancedInteractions<RichFacesDataScroller.AdvancedDataScrollerInteractions>
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.