Class JmixSimplePagination

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<com.vaadin.flow.component.html.Div>
io.jmix.flowui.kit.component.pagination.AbstractPagination
io.jmix.flowui.kit.component.pagination.JmixSimplePagination
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable
Direct Known Subclasses:
SimplePagination

public class JmixSimplePagination extends AbstractPagination
See Also:
  • Field Details

    • SIMPLE_PAGINATION_CLASS_NAME

      public static final String SIMPLE_PAGINATION_CLASS_NAME
      See Also:
    • STATUS_BAR_CLASS_NAME

      public static final String STATUS_BAR_CLASS_NAME
      See Also:
    • STATUS_SPAN_CLASS_NAME

      public static final String STATUS_SPAN_CLASS_NAME
      See Also:
    • TOTAL_COUNT_SPAN_CLASS_NAME

      public static final String TOTAL_COUNT_SPAN_CLASS_NAME
      See Also:
    • statusBar

      protected com.vaadin.flow.component.html.Div statusBar
    • rowsStatusSpan

      protected com.vaadin.flow.component.html.Span rowsStatusSpan
    • totalCountSpan

      protected com.vaadin.flow.component.html.Span totalCountSpan
    • autoLoad

      protected boolean autoLoad
  • Constructor Details

    • JmixSimplePagination

      public JmixSimplePagination()
  • Method Details

    • isAutoLoad

      public boolean isAutoLoad()
      Returns:
      whether items count should be loaded automatically
    • setAutoLoad

      public void setAutoLoad(boolean autoLoad)
      Sets whether items count should be loaded automatically. When the autoload is disabled the component doesn't know the total count of items and shows a button with [?]. When it's enabled the component makes a query to get the total count of items and shows it. The default value is false.
      Parameters:
      autoLoad - pass true to enable autoload, or false otherwise
    • initContent

      protected com.vaadin.flow.component.html.Div initContent()
      Overrides:
      initContent in class AbstractPagination
    • createInnerBar

      protected com.vaadin.flow.component.Component createInnerBar()
      Specified by:
      createInnerBar in class AbstractPagination
    • createStatusSpan

      protected com.vaadin.flow.component.html.Span createStatusSpan()
    • createTotalCountSpan

      protected com.vaadin.flow.component.html.Span createTotalCountSpan()
    • createStatusBar

      protected com.vaadin.flow.component.html.Div createStatusBar()
    • createNavigationButton

      protected com.vaadin.flow.component.button.Button createNavigationButton(String additionalClassName, com.vaadin.flow.component.icon.VaadinIcon icon)
      Overrides:
      createNavigationButton in class AbstractPagination
    • getRowsStatusLabel

      protected com.vaadin.flow.component.html.Span getRowsStatusLabel()
    • getTotalCountLabel

      protected com.vaadin.flow.component.html.Span getTotalCountLabel()