public interface PagedTable<T>
Modifier and Type | Method and Description |
---|---|
org.apache.spark.ui.PagedDataSource<T> |
dataSource() |
String |
goButtonFormPath()
Returns the submission path for the "go to page #" form.
|
scala.collection.Seq<scala.xml.Node> |
headers() |
String |
pageLink(int page)
Return a link to jump to a page.
|
scala.collection.Seq<scala.xml.Node> |
pageNavigation(int page,
int pageSize,
int totalPages)
Return a page navigation.
|
String |
pageNumberFormField() |
String |
pageSizeFormField() |
scala.collection.Seq<scala.xml.Node> |
row(T t) |
scala.collection.Seq<scala.xml.Node> |
table(int page) |
String |
tableCssClass() |
String |
tableId() |
org.apache.spark.ui.PagedDataSource<T> dataSource()
String goButtonFormPath()
scala.collection.Seq<scala.xml.Node> headers()
String pageLink(int page)
page
- (undocumented)scala.collection.Seq<scala.xml.Node> pageNavigation(int page, int pageSize, int totalPages)
It will create a page navigation including a group of page numbers and a form to submit the page number.
Here are some examples of the page navigation:
<< < 11 12 13* 14 15 16 17 18 19 20 > >>
This is the first group, so "<<" is hidden.
< 1 2* 3 4 5 6 7 8 9 10 > >>
This is the first group and the first page, so "<<" and "<" are hidden.
1* 2 3 4 5 6 7 8 9 10 > >>
Assume totalPages is 19. This is the last group, so ">>" is hidden.
<< < 11 12 13* 14 15 16 17 18 19 >
Assume totalPages is 19. This is the last group and the last page, so ">>" and ">" are hidden.
<< < 11 12 13 14 15 16 17 18 19*
* means the current page number
<< means jumping to the first page of the previous group.
< means jumping to the previous page.
>> means jumping to the first page of the next group.
> means jumping to the next page.
page
- (undocumented)pageSize
- (undocumented)totalPages
- (undocumented)String pageNumberFormField()
String pageSizeFormField()
scala.collection.Seq<scala.xml.Node> row(T t)
scala.collection.Seq<scala.xml.Node> table(int page)
String tableCssClass()
String tableId()