Package com.storedobject.ui.inventory
Class AbstractAssembly<T extends InventoryItem,C extends InventoryItem>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.grid.Grid<InventoryFitmentPosition>
com.vaadin.flow.component.treegrid.TreeGrid<InventoryFitmentPosition>
com.storedobject.vaadin.DataTreeGrid<InventoryFitmentPosition>
com.storedobject.ui.DataTreeGrid<InventoryFitmentPosition>
com.storedobject.ui.inventory.AbstractAssembly<T,C>
- All Implemented Interfaces:
Executable
,Reentrant
,HasLogic
,Transactional
,ChildVisitor<InventoryFitmentPosition,
,InventoryFitmentPosition> ClickHandler
,ExecutableView
,HasColumns<InventoryFitmentPosition>
,SupportWindowMode
,ValueChangeHandler
,com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.grid.Grid<InventoryFitmentPosition>>
,com.vaadin.flow.component.ComponentEventListener<com.vaadin.flow.component.ClickEvent<? extends com.vaadin.flow.component.Component>>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.grid.Grid<InventoryFitmentPosition>>
,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.grid.Grid<InventoryFitmentPosition>>
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasTheme
,com.vaadin.flow.component.HasValue.ValueChangeListener
,com.vaadin.flow.data.event.SortEvent.SortNotifier<com.vaadin.flow.component.grid.Grid<InventoryFitmentPosition>,
,com.vaadin.flow.component.grid.GridSortOrder<InventoryFitmentPosition>> com.vaadin.flow.data.provider.HasDataGenerators<InventoryFitmentPosition>
,com.vaadin.flow.data.provider.HasDataView<InventoryFitmentPosition,
,Void, com.vaadin.flow.component.grid.dataview.GridDataView<InventoryFitmentPosition>> com.vaadin.flow.data.provider.HasLazyDataView<InventoryFitmentPosition,
,Void, com.vaadin.flow.component.grid.dataview.GridLazyDataView<InventoryFitmentPosition>> com.vaadin.flow.data.provider.HasListDataView<InventoryFitmentPosition,
,com.vaadin.flow.component.grid.dataview.GridListDataView<InventoryFitmentPosition>> com.vaadin.flow.data.provider.hierarchy.HasHierarchicalDataProvider<InventoryFitmentPosition>
,Serializable
,Runnable
,EventListener
- Direct Known Subclasses:
Assembly
public abstract class AbstractAssembly<T extends InventoryItem,C extends InventoryItem>
extends DataTreeGrid<InventoryFitmentPosition>
implements ChildVisitor<InventoryFitmentPosition,InventoryFitmentPosition>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.grid.Grid
com.vaadin.flow.component.grid.Grid.AbstractGridExtension<T>, com.vaadin.flow.component.grid.Grid.Column<T>, com.vaadin.flow.component.grid.Grid.DataCommunicatorBuilder<T,
U extends com.vaadin.flow.data.provider.ArrayUpdater>, com.vaadin.flow.component.grid.Grid.MultiSortPriority, com.vaadin.flow.component.grid.Grid.NestedNullBehavior, com.vaadin.flow.component.grid.Grid.SelectionMode, com.vaadin.flow.component.grid.Grid.SpringData, com.vaadin.flow.component.grid.Grid.UpdateQueue Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.storedobject.vaadin.ClickHandler
ClickHandler.ModifiedClickEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.storedobject.vaadin.HasColumns
HasColumns.SOGrid<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clicked
(com.vaadin.flow.component.Component c) Default implementation, does nothing.com.vaadin.flow.component.Component
You can have a "header row" (as the first row) that covers the whole grid.void
execute()
Execute this by displaying it in a View.final String
getAccessory
(InventoryFitmentPosition fitmentPosition) final HTMLGenerator
getName
(InventoryFitmentPosition fitmentPosition) final String
getOptional
(InventoryFitmentPosition fitmentPosition) final String
getPartNumber
(InventoryFitmentPosition fitmentPosition) final String
getPosition
(InventoryFitmentPosition fitmentPosition) final Quantity
getQuantity
(InventoryFitmentPosition fitmentPosition) int
getRelativeColumnWidth
(String columnName) This method is invoked when the real column is created to determine the relative width of the column.final String
getSerialNumber
(InventoryFitmentPosition fitmentPosition) void
void
visitChildren
(InventoryFitmentPosition parent, Consumer<InventoryFitmentPosition> consumer, boolean includeGrandChildren) Methods inherited from class com.storedobject.ui.DataTreeGrid
scrollTo
Methods inherited from class com.storedobject.vaadin.DataTreeGrid
addConstructedListener, addHierarchyColumn, appendFooter, clearConstructedListeners, createHierarchyColumn, createHTMLHierarchyColumn, getColumnByKey, getColumns, getSOGrid, isColumnReorderingAllowed, isColumnSortable, setColumnReorderingAllowed, streamConstructedListeners
Methods inherited from class com.vaadin.flow.component.treegrid.TreeGrid
addCollapseListener, addComponentHierarchyColumn, addExpandListener, collapse, collapse, collapse, collapseRecursively, collapseRecursively, createDefaultArrayUpdater, expand, expand, expand, expandRecursively, expandRecursively, getDataCommunicator, getDataProvider, getGenericDataView, getItemsWithChildrenRecursively, getLazyDataView, getListDataView, isExpanded, scrollToEnd, scrollToIndex, scrollToIndex, scrollToItem, setColumns, setDataProvider, setDataProvider, setHierarchyColumn, setHierarchyColumn, setItems, setItems, setItems, setItems, setItems, setUniqueKeyDataGenerator
Methods inherited from class com.vaadin.flow.component.grid.Grid
addCellFocusListener, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumn, addColumnReorderListener, addColumnResizeListener, addColumns, addComponentColumn, addContextMenu, addDataGenerator, addDragEndListener, addDragStartListener, addDropListener, addFirstHeaderRow, addItemClickListener, addItemDoubleClickListener, addSelectionListener, addSortListener, addThemeVariants, addValueProvider, appendFooterRow, appendHeaderRow, asMultiSelect, asSingleSelect, compareMaybeComparables, configureBeanType, createColumn, createColumnId, createEditor, createSortingComparator, deselect, deselectAll, getAriaLabel, getArrayUpdater, getBeanType, getClassNameGenerator, getColumnLayers, getColumnRendering, getDefaultColumnFactory, getDefaultHeaderRow, getDragFilter, getDropFilter, getDropMode, getEditor, getEmptyStateComponent, getEmptyStateText, getFooterRows, getHeaderRows, getNestedNullBehavior, getPageSize, getPartNameGenerator, getPropertySet, getSelectedItems, getSelectionMode, getSelectionModel, getSelectionPreservationMode, getSortOrder, getTooltipPosition, getUniqueKeyProperty, getUniqueKeyProvider, initConnector, insertColumnLayer, isAllRowsVisible, isDetailsVisible, isDetailsVisibleOnClick, isMultiSort, isRowsDraggable, onAttach, onDataProviderChange, onDetach, onEnabledStateChanged, prependFooterRow, prependHeaderRow, recalculateColumnWidths, removeAllColumns, removeAllFooterRows, removeAllHeaderRows, removeColumn, removeColumnByKey, removeColumnLayer, removeColumns, removeFooterRow, removeHeaderRow, removeThemeVariants, scrollToStart, select, setAllRowsVisible, setAriaLabel, setClassNameGenerator, setColumnKey, setColumnOrder, setColumnOrder, setColumnRendering, setColumns, setDefaultMultiSortPriority, setDetailsVisible, setDetailsVisibleOnClick, setDragDataGenerator, setDragFilter, setDropFilter, setDropMode, setEmptyStateComponent, setEmptyStateText, setItemDetailsRenderer, setItems, setItems, setItemSelectableProvider, setItemsPageable, setItemsPageable, setMultiSort, setMultiSort, setMultiSort, setMultiSort, setNestedNullBehavior, setPageSize, setPartNameGenerator, setRowsDraggable, setSelectionDragDetails, setSelectionMode, setSelectionModel, setSelectionPreservationMode, setSortableColumns, setTooltipGenerator, setTooltipPosition, setUniqueKeyProperty, setUniqueKeyProvider, sort, updateSelectionModeOnClient
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, removeFromParent, scrollIntoView, scrollIntoView, 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.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClicked
Methods inherited from interface com.storedobject.common.Executable
act
Methods inherited from interface com.storedobject.vaadin.ExecutableView
abort, clean, close, createMenuItem, error, execute, getMenuIconName, getMenuItem, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, trackValueChange, tray, valueChanged, warning
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndex
Methods inherited from interface com.storedobject.vaadin.HasColumns
addItemSelectedListener, addItemsSelectedListener, appendHeader, clearAlerts, compact, configure, constructed, createColumn, createColumn, createColumn, createColumn, createColumn, createComponentColumn, createDecoratedWindow, createFooters, createHeaders, createHTMLColumn, createView, customizeColumn, customizeRenderer, deselect, deselect, executing, getApplication, getCaption, getColumn, getColumnCaption, getColumnCount, getColumnDetail, getColumnFunction, getColumnHeaderComponent, getColumnMethodName, getColumnNames, getColumnOrder, getColumnSorter, getColumnTemplate, getConfigureButton, getDataClass, getDefinedColumnCount, getFixedColumnWidth, getMenuItem, getObjectRendered, getObjectUnwrapped, getSelected, getTextAlign, getView, getViewComponent, ignoreCaseForColumnSorting, includeColumn, isColumnFrozen, isColumnResizable, isColumnVisible, prependFooter, prependHeader, refresh, refresh, refresh, removeItemSelectedListener, render, select, select, setCaption, setColumnFrozen, setColumnResizable, setColumnVisible, setMethodHandlerHost, sort, sort, sortOrder, sortOrder, unwrap
Methods inherited from interface com.vaadin.flow.data.provider.hierarchy.HasHierarchicalDataProvider
getTreeData, setItems, setItems, setTreeData
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
Methods inherited from interface com.storedobject.common.Reentrant
isReentrant
Methods inherited from interface com.storedobject.vaadin.util.SupportWindowMode
createWindow
Methods inherited from interface com.storedobject.ui.Transactional
commit, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl
Methods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Method Details
-
getName
-
getRelativeColumnWidth
Description copied from interface:HasColumns
This method is invoked when the real column is created to determine the relative width of the column. It can be any positive integer and applied relative to the values returned for other columns. A value of zero means that the column width is fixed.Note: This is set to the column via the
Grid.Column.setFlexGrow(int)
method. So, if you directly use theGrid.Column.setFlexGrow(int)
method, this can be overridden.- Specified by:
getRelativeColumnWidth
in interfaceHasColumns<T extends InventoryItem>
- Parameters:
columnName
- Name of the column.- Returns:
- Default implementation returns -1, meaning the value should not be applied.
-
getPosition
-
getPartNumber
-
getSerialNumber
-
getQuantity
-
getOptional
-
getAccessory
-
createHeader
public com.vaadin.flow.component.Component createHeader()Description copied from interface:HasColumns
You can have a "header row" (as the first row) that covers the whole grid. Typically, such a row is to show your own buttons or components to customize the grid. The default implementation returns null and thus, no such row is created. (Please note thatHasColumns.createHeaders()
} is invoked before this method for adding other header rows just above the main header row. This may be used for column grouping etc.)- Specified by:
createHeader
in interfaceHasColumns<T extends InventoryItem>
- Returns:
- Component to be used as the "header row".
-
execute
public void execute()Description copied from interface:ExecutableView
Execute this by displaying it in a View.- Specified by:
execute
in interfaceExecutable
- Specified by:
execute
in interfaceExecutableView
- Specified by:
execute
in interfaceTransactional
-
setItem
-
clicked
public void clicked(com.vaadin.flow.component.Component c) Description copied from interface:ExecutableView
Default implementation, does nothing.- Specified by:
clicked
in interfaceClickHandler
- Specified by:
clicked
in interfaceExecutableView
- Parameters:
c
- Component
-
listRoots
- Specified by:
listRoots
in interfaceChildVisitor<T extends InventoryItem,
C extends InventoryItem>
-
visitChildren
public void visitChildren(InventoryFitmentPosition parent, Consumer<InventoryFitmentPosition> consumer, boolean includeGrandChildren) - Specified by:
visitChildren
in interfaceChildVisitor<T extends InventoryItem,
C extends InventoryItem>
-