Class AdvancedGrid<T>

java.lang.Object
com.vaadin.flow.component.Component
org.vaadin.addons.antlerflow.grid.AdvancedGrid<T>
Type Parameters:
T - the type of items contained in the grid
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable

@Tag("af-advanced-grid") @JsModule("./antlerflow/advanced-grid/advanced-grid.ts") public class AdvancedGrid<T> extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
AdvancedGrid is a component that enhances the functionality of a standard Grid by incorporating built-in pagination, data export capabilities, and a customizable toolbar. It is designed to work with various data providers and supports dynamic setting of data, page sizes, and pagination visibility.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    AdvancedGrid(int pageSize)
     
    AdvancedGrid(com.vaadin.flow.component.grid.Grid<T> grid)
     
    AdvancedGrid(com.vaadin.flow.data.provider.BackEndDataProvider<T,Void> dataProvider)
     
    AdvancedGrid(com.vaadin.flow.data.provider.DataProvider<T,Void> dataProvider)
     
    AdvancedGrid(com.vaadin.flow.data.provider.InMemoryDataProvider<T> inMemoryDataProvider)
     
    AdvancedGrid(com.vaadin.flow.data.provider.ListDataProvider<T> dataProvider)
     
    AdvancedGrid(Class<T> beanType)
     
    AdvancedGrid(Class<T> beanType, boolean autoCreateColumns)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addToActions(com.vaadin.flow.component.Component... components)
    Adds components to the "toolbar" slot.
    void
    addToFilters(com.vaadin.flow.component.Component... components)
    Adds components to the "toolbar" slot.
    void
    addToFooter(com.vaadin.flow.component.Component... components)
    Adds components to the "footer" slot.
    void
    enableExport(boolean exportEnabled)
     
    void
    setDataProvider(com.vaadin.flow.data.provider.DataProvider<T,?> dataProvider)
     
    void
    setInnerGrid(com.vaadin.flow.component.grid.Grid<T> innerGrid)
    Injects the given Grid into the "grid" slot inside the Lit template.
    void
    setItems(List<T> items)
     
    void
    setPageSize(int pageSize)
     
    void
    setPageSizes(Integer... pageSizes)
     
    void
    setPaginationVisibility(boolean visibility)
     

    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, setVisible

    Methods inherited from class 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.HasComponents

    add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasSize

    getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • AdvancedGrid

      public AdvancedGrid()
    • AdvancedGrid

      public AdvancedGrid(com.vaadin.flow.component.grid.Grid<T> grid)
    • AdvancedGrid

      public AdvancedGrid(com.vaadin.flow.data.provider.DataProvider<T,Void> dataProvider)
    • AdvancedGrid

      public AdvancedGrid(com.vaadin.flow.data.provider.BackEndDataProvider<T,Void> dataProvider)
    • AdvancedGrid

      public AdvancedGrid(com.vaadin.flow.data.provider.InMemoryDataProvider<T> inMemoryDataProvider)
    • AdvancedGrid

      public AdvancedGrid(com.vaadin.flow.data.provider.ListDataProvider<T> dataProvider)
    • AdvancedGrid

      public AdvancedGrid(Collection<T> items)
    • AdvancedGrid

      public AdvancedGrid(int pageSize)
    • AdvancedGrid

      public AdvancedGrid(Class<T> beanType, boolean autoCreateColumns)
    • AdvancedGrid

      public AdvancedGrid(Class<T> beanType)
  • Method Details

    • setInnerGrid

      public void setInnerGrid(com.vaadin.flow.component.grid.Grid<T> innerGrid)
      Injects the given Grid into the "grid" slot inside the Lit template.
    • setItems

      public void setItems(List<T> items)
    • setDataProvider

      public void setDataProvider(com.vaadin.flow.data.provider.DataProvider<T,?> dataProvider)
    • setPageSizes

      public void setPageSizes(Integer... pageSizes)
    • setPageSize

      public void setPageSize(int pageSize)
    • enableExport

      public void enableExport(boolean exportEnabled)
    • setPaginationVisibility

      public void setPaginationVisibility(boolean visibility)
    • addToFilters

      public void addToFilters(com.vaadin.flow.component.Component... components)
      Adds components to the "toolbar" slot.
    • addToActions

      public void addToActions(com.vaadin.flow.component.Component... components)
      Adds components to the "toolbar" slot.
    • addToFooter

      public void addToFooter(com.vaadin.flow.component.Component... components)
      Adds components to the "footer" slot.