public class BrowserData extends Object
| Constructor and Description |
|---|
BrowserData() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseurl()
Returns the URL to be loaded when another page is to be shown.
|
int |
getPage()
Gets the page currently displayed.
|
int |
getPagecount()
Gets the number of pages to be shown.
|
Iterator<Integer> |
getPageIterator()
Returns an iterator that iterates thru a sequence of page numbers.
|
String |
getPageparam()
Returns the parameter name containing the page currently shown in this browser.
|
int |
getPagesteps()
Gets a good guess for large step increments.
|
long |
getResultcount()
Gets the number of entries of the result.
|
void |
setBaseurl(String baseurl) |
void |
setPage(int page) |
void |
setPagecount(int pagecount) |
void |
setPageparam(String pageparam) |
void |
setResultcount(long resultcount) |
public BrowserData()
public int getPagecount()
public void setPagecount(int pagecount)
public int getPagesteps()
Examples: pagecount=14, pagesteps=10. pagecount=321, pagesteps=100. pagecount=812312, pagesteps=100000.
For a pagecount of 0, 0 is be returned.
public int getPage()
public void setPage(int page)
public long getResultcount()
public void setResultcount(long resultcount)
public String getBaseurl()
public void setBaseurl(String baseurl)
public String getPageparam()
public void setPageparam(String pageparam)
public Iterator<Integer> getPageIterator()
The current state of the BrowserData is frozen in this iterator.
Note that the Iterator starts counting from 1 to make the result readable for humans, while the browser itself counts the page starting from zero.
Copyright © 2004–2016. All rights reserved.