Class PoolGrid
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- org.vaadin.tatu.BeanTable<InventoryObjectPool>
-
- org.neotropic.kuwaiba.modules.optional.pools.grids.PoolGrid
-
- 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<InventoryObjectPool>
,com.vaadin.flow.data.binder.HasItems<InventoryObjectPool>
,Serializable
public class PoolGrid extends org.vaadin.tatu.BeanTable<InventoryObjectPool>
Represents a grid of inventory object pools for displaying data in a UI. Extends theBeanTable
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 PoolGrid(int pageLength)
Constructs a new instance ofBusinessObjectChildrenGrid
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
buildDataProvider(PoolProvider provider, InventoryObjectPool rootPool, boolean includedSelf)
Builds the data provider for the grid using the provided provider.boolean
containsPool(InventoryObjectPool pool)
Checks if the grid contains a given pool.-
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.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
buildDataProvider
public void buildDataProvider(PoolProvider provider, InventoryObjectPool rootPool, 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.rootPool
- The root pool from which data will be retrieved.includedSelf
- Boolean indicating whether the root pool should be included in the retrieved data.
-
containsPool
public boolean containsPool(InventoryObjectPool pool)
Checks if the grid contains a given pool.- Parameters:
pool
- The pool to check for existence in the grid.- Returns:
- True if the grid contains the pool, false otherwise.
-
-