public class JmixPagination.JmixPage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.ui.Button |
button |
protected int |
itemsPerPage |
protected int |
number |
static java.lang.String |
PRIMARY_STYLENAME |
protected boolean |
selected |
static java.lang.String |
SELECTED_PAGE_STYLENAME |
Constructor and Description |
---|
JmixPage(int number,
int itemsPerPage) |
Modifier and Type | Method and Description |
---|---|
com.vaadin.ui.Button |
getButton() |
int |
getFirstResult() |
int |
getNumber() |
boolean |
isSelected() |
protected void |
onPageButtonClickEvent(com.vaadin.ui.Button.ClickEvent event) |
void |
setNumber(int number)
Sets page number.
|
void |
setSelected(boolean selected)
Sets page selected.
|
public static final java.lang.String PRIMARY_STYLENAME
public static final java.lang.String SELECTED_PAGE_STYLENAME
protected com.vaadin.ui.Button button
protected boolean selected
protected final int itemsPerPage
protected int number
public int getNumber()
1
public void setNumber(int number)
number
- page number valuepublic boolean isSelected()
true
if page is currently selectedpublic void setSelected(boolean selected)
selected
- whether page should be selectedpublic com.vaadin.ui.Button getButton()
public int getFirstResult()
protected void onPageButtonClickEvent(com.vaadin.ui.Button.ClickEvent event)