Class PoolItemGrid

  • All Implemented Interfaces:
    com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasTheme, com.vaadin.flow.data.binder.HasDataProvider<BusinessObjectLight>, com.vaadin.flow.data.binder.HasItems<BusinessObjectLight>, Serializable

    public class PoolItemGrid
    extends org.vaadin.tatu.BeanTable<BusinessObjectLight>
    Represents a grid of business objects (pool items) for displaying data in a UI. Extends the BeanTable class.
    Author:
    Mauricio Ruiz Beltrán <mauricio.ruiz@kuwaiba.org>
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.vaadin.tatu.BeanTable

        org.vaadin.tatu.BeanTable.BeanTableI18n, org.vaadin.tatu.BeanTable.Column<R extends Object>, org.vaadin.tatu.BeanTable.ColumnAlignment, org.vaadin.tatu.BeanTable.ColumnSelectMenu, org.vaadin.tatu.BeanTable.ComponentProvider<T extends Object>, org.vaadin.tatu.BeanTable.FocusBehavior, org.vaadin.tatu.BeanTable.StringProvider<T extends Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      PoolItemGrid​(int pageLength)
      Constructs a new instance of BusinessObjectChildrenGrid.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildDataProvider​(PoolItemProvider provider, InventoryObjectPool parentPool, BusinessObjectLight rootObject, boolean includedSelf)
      Builds the data provider for the grid using the provided provider.
      boolean containsObject​(BusinessObjectLight object)
      Checks if the grid contains a given business object.
      • Methods inherited from class org.vaadin.tatu.BeanTable

        addColumn, addColumn, addComponentColumn, addItemClickedListener, addSelectionChangedListener, addThemeVariants, deselect, deselectAll, focus, focus, focus, getClassNameProvider, getColumn, getColumns, getDataProvider, getElement, getI18n, getPage, getRowCount, getSelected, onAttach, onDetach, removeThemeVariants, select, setCaption, setClassNameProvider, setColumns, setColumnSelectionMenu, setDataProvider, setFocusBehavior, setHtmlAllowed, setI18n, setPage, setSelectionEnabled
      • Methods inherited from class com.vaadin.flow.component.HtmlComponent

        getTitle, setTitle
      • Methods inherited from class com.vaadin.flow.component.Component

        addListener, fireEvent, from, get, getChildren, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, set, setElement, setId, setVisible
      • 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.data.binder.HasDataProvider

        setItems
      • Methods inherited from interface com.vaadin.flow.data.binder.HasItems

        setItems, setItems
      • 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
      • Methods inherited from interface com.vaadin.flow.component.HasTheme

        addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
    • Constructor Detail

      • PoolItemGrid

        public PoolItemGrid​(int pageLength)
        Constructs a new instance of BusinessObjectChildrenGrid.
        Parameters:
        pageLength - Page length for the grid.
    • Method Detail

      • buildDataProvider

        public void buildDataProvider​(PoolItemProvider provider,
                                      InventoryObjectPool parentPool,
                                      BusinessObjectLight rootObject,
                                      boolean includedSelf)
        Builds the data provider for the grid using the provided provider.
        Parameters:
        provider - Data provider to construct the data provider for the grid.
        parentPool - The parent pool from which data will be retrieved.
        rootObject - Is there a root object?
        includedSelf - Boolean indicating whether the root object should be included in the retrieved data.
      • containsObject

        public boolean containsObject​(BusinessObjectLight object)
        Checks if the grid contains a given business object.
        Parameters:
        object - The business object to check for existence in the grid.
        Returns:
        True if the grid contains the object, false otherwise.