Class PoolItemGrid
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- org.vaadin.tatu.BeanTable<BusinessObjectLight>
-
- org.neotropic.kuwaiba.modules.optional.pools.grids.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 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 PoolItemGrid(int pageLength)
Constructs a new instance ofBusinessObjectChildrenGrid
.
-
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.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(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.
-
-