Class Paginator
java.lang.Object
com.vaadin.flow.component.Component
org.vaadin.addons.antlerflow.grid.pagination.Paginator
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable
@Tag("af-paginator")
@JsModule("./pagination/paginator.ts")
public class Paginator
extends com.vaadin.flow.component.Component
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationaddPageChangeListener(com.vaadin.flow.component.ComponentEventListener<Paginator.PageChangeEvent> listener) intintgetPage()intlongintvoidgotoPage(int page) voidsetEnabled(boolean enabled) voidsetHideEdges(boolean hideEdges) voidsetMaxButtons(int maxButtons) voidsetPage(int page) voidsetPageSize(int pageSize) voidsetPageSizeOptions(String pageSizeOptions) voidsetTotalItems(long totalItems) voidsetTotalPages(int totalPages) voidshowPageJump(boolean showPageJump) voidshowPageSize(boolean showPageSize) voidshowSummaryText(boolean showSummaryText) Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, 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 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.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
PAGE_CHANGE_EVENT
- See Also:
-
-
Constructor Details
-
Paginator
public Paginator()
-
-
Method Details
-
getPage
@Synchronize("page-change") public int getPage() -
setPage
public void setPage(int page) -
getPageSize
@Synchronize("page-change") public int getPageSize() -
setPageSize
public void setPageSize(int pageSize) -
gotoPage
public void gotoPage(int page) -
getPageSizeOptions
-
setPageSizeOptions
-
getOffset
@Synchronize("page-change") public int getOffset() -
getTotalItems
@Synchronize("page-change") public long getTotalItems() -
setTotalItems
public void setTotalItems(long totalItems) -
getTotalPages
@Synchronize("page-change") public int getTotalPages() -
setTotalPages
public void setTotalPages(int totalPages) -
setMaxButtons
public void setMaxButtons(int maxButtons) -
setHideEdges
public void setHideEdges(boolean hideEdges) -
showPageSize
public void showPageSize(boolean showPageSize) -
showSummaryText
public void showSummaryText(boolean showSummaryText) -
showPageJump
public void showPageJump(boolean showPageJump) -
setEnabled
public void setEnabled(boolean enabled) -
addPageChangeListener
public com.vaadin.flow.shared.Registration addPageChangeListener(com.vaadin.flow.component.ComponentEventListener<Paginator.PageChangeEvent> listener)
-