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
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final Stringprotected com.vaadin.flow.component.html.Spanstatic final Stringstatic final Stringstatic final Stringprotected com.vaadin.flow.component.html.Divstatic final Stringprotected com.vaadin.flow.component.html.SpanFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.vaadin.flow.component.Componentprotected com.vaadin.flow.component.button.ButtoncreateNavigationButton(String additionalClassName, com.vaadin.flow.component.icon.VaadinIcon icon) protected com.vaadin.flow.component.html.Divprotected com.vaadin.flow.component.html.Spanprotected com.vaadin.flow.component.html.Spanprotected com.vaadin.flow.component.html.Spanprotected com.vaadin.flow.component.html.Spanprotected com.vaadin.flow.component.html.DivbooleanvoidsetAutoLoad(boolean autoLoad) Sets whether items count should be loaded automatically.Methods inherited from class io.jmix.flowui.kit.component.pagination.AbstractPagination
getJmixRowsPerPage, initNavigationButtons, setItemsPerPageMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods 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:
initContentin classAbstractPagination
-
createInnerBar
protected com.vaadin.flow.component.Component createInnerBar()- Specified by:
createInnerBarin 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()
-