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
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static final String
protected com.vaadin.flow.component.html.Span
static final String
static final String
static final String
protected com.vaadin.flow.component.html.Div
static final String
protected com.vaadin.flow.component.html.Span
Fields inherited from class io.jmix.flowui.kit.component.pagination.AbstractPagination
BASE_BUTTON_CLASS_NAME, componentBaseClassName, FIRST_BUTTON_CLASS_NAME, firstButton, jmixRowsPerPage, LAST_BUTTON_CLASS_NAME, lastButton, NEXT_BUTTON_CLASS_NAME, nextButton, PREV_BUTTON_CLASS_NAME, previousButton
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.Component
protected com.vaadin.flow.component.button.Button
createNavigationButton
(String additionalClassName, com.vaadin.flow.component.icon.VaadinIcon icon) protected com.vaadin.flow.component.html.Div
protected com.vaadin.flow.component.html.Span
protected com.vaadin.flow.component.html.Span
protected com.vaadin.flow.component.html.Span
protected com.vaadin.flow.component.html.Span
protected com.vaadin.flow.component.html.Div
boolean
void
setAutoLoad
(boolean autoLoad) Sets whether items count should be loaded automatically.Methods inherited from class io.jmix.flowui.kit.component.pagination.AbstractPagination
getJmixRowsPerPage, initNavigationButtons, setItemsPerPage
Methods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElement
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
SIMPLE_PAGINATION_CLASS_NAME
- See Also:
-
STATUS_BAR_CLASS_NAME
- See Also:
-
STATUS_SPAN_CLASS_NAME
- See Also:
-
TOTAL_COUNT_SPAN_CLASS_NAME
- See Also:
-
ROWS_STATUS_LINK_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 isfalse
.- Parameters:
autoLoad
- pass true to enable autoload, or false otherwise
-
initContent
protected com.vaadin.flow.component.html.Div initContent()- Overrides:
initContent
in classAbstractPagination
-
createInnerBar
protected com.vaadin.flow.component.Component createInnerBar()- Specified by:
createInnerBar
in classAbstractPagination
-
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() -
getRowsStatusLabel
protected com.vaadin.flow.component.html.Span getRowsStatusLabel() -
getTotalCountLabel
protected com.vaadin.flow.component.html.Span getTotalCountLabel()
-