Class JmixPagination.JmixPage

java.lang.Object
io.jmix.ui.widget.JmixPagination.JmixPage
Enclosing class:
JmixPagination

public class JmixPagination.JmixPage extends Object
Class describes data page in the component.
  • Field Details

    • PRIMARY_STYLENAME

      public static final String PRIMARY_STYLENAME
      See Also:
    • SELECTED_PAGE_STYLENAME

      public static final String SELECTED_PAGE_STYLENAME
      See Also:
    • button

      protected com.vaadin.ui.Button button
    • selected

      protected boolean selected
    • itemsPerPage

      protected final int itemsPerPage
    • number

      protected int number
  • Constructor Details

    • JmixPage

      public JmixPage(int number, int itemsPerPage)
  • Method Details

    • getNumber

      public int getNumber()
      Returns:
      number of page starting from 1
    • setNumber

      public void setNumber(int number)
      Sets page number. Note, page number starts from 1.
      Parameters:
      number - page number value
    • isSelected

      public boolean isSelected()
      Returns:
      true if page is currently selected
    • setSelected

      public void setSelected(boolean selected)
      Sets page selected.
      Parameters:
      selected - whether page should be selected
    • getButton

      public com.vaadin.ui.Button getButton()
      Returns:
      the button that represents "page" in the UI
    • getFirstResult

      public int getFirstResult()
      Returns:
      the first result value that should be used for loading items
    • onPageButtonClickEvent

      protected void onPageButtonClickEvent(com.vaadin.ui.Button.ClickEvent event)