Package com.storedobject.ui.inventory
Class ReceiveAndBin
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.grid.Grid<InventoryItem>
- All Implemented Interfaces:
Executable,Reentrant,HasLogic,Transactional,ClickHandler,ExecutableView,HasColumns<InventoryItem>,SupportWindowMode,ValueChangeHandler,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.grid.Grid<InventoryItem>>,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<InventoryItem>>,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.grid.Grid<InventoryItem>>,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<InventoryItem>,,com.vaadin.flow.component.grid.GridSortOrder<InventoryItem>> com.vaadin.flow.data.provider.HasDataGenerators<InventoryItem>,com.vaadin.flow.data.provider.HasDataView<InventoryItem,,Void, com.vaadin.flow.component.grid.dataview.GridDataView<InventoryItem>> com.vaadin.flow.data.provider.HasLazyDataView<InventoryItem,,Void, com.vaadin.flow.component.grid.dataview.GridLazyDataView<InventoryItem>> com.vaadin.flow.data.provider.HasListDataView<InventoryItem,,com.vaadin.flow.component.grid.dataview.GridListDataView<InventoryItem>> Serializable,Iterable<InventoryItem>,Runnable,Collection<InventoryItem>,EventListener,List<InventoryItem>,SequencedCollection<InventoryItem>
- 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> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ButtonLayoutprotected final Buttonprotected final Button -
Constructor Summary
ConstructorsConstructorDescriptionReceiveAndBin(Date date, String reference, List<InventoryItem> itemList) ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update) ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher) ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher, GRNEditor grnEditor) ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher, GRNEditor grnEditor, boolean allowSNChange) ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher, GRNEditor grnEditor, boolean allowSNChange, com.vaadin.flow.component.Component... extraComponents) ReceiveAndBin(List<InventoryItem> itemList) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentYou can have a "header row" (as the first row) that covers the whole grid.voidExecute the associated view by locking another view (the locked view will not be selectable until this view is closed).getLocation(InventoryItem item) intgetRelativeColumnWidth(String columnName) This method is invoked when the real column is created to determine the relative width of the column.Methods inherited from class com.storedobject.vaadin.ListGrid
add, add, addAll, addAll, addViewFilter, clear, clearViewFilters, contains, containsAll, createListDataProvider, get, getData, getDataProvider, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, onAttach, onDetach, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, setData, setViewFilter, size, sort, subList, toArray, toArrayMethods inherited from class com.storedobject.vaadin.DataGrid
addConstructedListener, appendFooter, clearConstructedListeners, getColumnByKey, getColumns, getSOGrid, isColumnReorderingAllowed, setColumnReorderingAllowed, streamConstructedListenersMethods 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, createDefaultArrayUpdater, createEditor, createSortingComparator, deselect, deselectAll, getAriaLabel, getArrayUpdater, getBeanType, getClassNameGenerator, getColumnByInternalId, getColumnLayers, getColumnRendering, getDataCommunicator, getDefaultColumnFactory, getDefaultHeaderRow, getDragFilter, getDropFilter, getDropMode, getEditor, getEmptyStateComponent, getEmptyStateText, getFooterRows, getGenericDataView, getHeaderRows, getLazyDataView, getListDataView, getNestedNullBehavior, getPageSize, getPartNameGenerator, getPropertySet, getSelectedItems, getSelectionMode, getSelectionModel, getSelectionPreservationMode, getSortOrder, getTooltipPosition, getUniqueKeyProperty, getUniqueKeyProvider, initConnector, insertColumnLayer, isAllRowsVisible, isDetailsVisible, isDetailsVisibleOnClick, isMultiSort, isRowsDraggable, onDataProviderChange, onEnabledStateChanged, prependFooterRow, prependHeaderRow, recalculateColumnWidths, removeAllColumns, removeAllFooterRows, removeAllHeaderRows, removeColumn, removeColumnByKey, removeColumnLayer, removeColumns, removeFooterRow, removeHeaderRow, removeThemeVariants, scrollToEnd, scrollToIndex, scrollToItem, scrollToStart, select, setAllRowsVisible, setAriaLabel, setClassNameGenerator, setColumnKey, setColumnOrder, setColumnOrder, setColumnRendering, setColumns, setDataProvider, setDefaultMultiSortPriority, setDetailsVisible, setDetailsVisibleOnClick, setDragDataGenerator, setDragFilter, setDropFilter, setDropMode, setEmptyStateComponent, setEmptyStateText, setItemDetailsRenderer, setItems, setItems, setItems, setItems, setItemSelectableProvider, setItemsPageable, setItemsPageable, setMultiSort, setMultiSort, setMultiSort, setMultiSort, setNestedNullBehavior, setPageSize, setPartNameGenerator, setRowsDraggable, setSelectionDragDetails, setSelectionMode, setSelectionModel, setSelectionPreservationMode, setSortableColumns, setTooltipGenerator, setTooltipPosition, setUniqueKeyProperty, setUniqueKeyProvider, sort, updateSelectionModeOnClientMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.storedobject.vaadin.ClickHandler
clicked, doubleClicked, onComponentEvent, rightClickedMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.storedobject.common.Executable
actMethods inherited from interface com.storedobject.vaadin.ExecutableView
abort, clean, clicked, close, createMenuItem, error, execute, getMenuIconName, getMenuItem, getView, invoke, isCloseable, isFullScreen, isHomeView, log, log, message, returnedFrom, run, setClickable, speak, trackValueChange, tray, valueChanged, warningMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, focus, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.storedobject.vaadin.HasColumns
addItemSelectedListener, addItemsSelectedListener, appendHeader, clearAlerts, compact, configure, constructed, createColumn, createColumn, createColumn, createColumn, createColumn, createComponentColumn, createDecoratedWindow, createFooters, createHeaders, createHierarchyColumn, createHTMLColumn, createHTMLHierarchyColumn, 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, getRenderedColumnNames, getSelected, getTextAlign, getView, getViewComponent, ignoreCaseForColumnSorting, includeColumn, isColumnFrozen, isColumnResizable, isColumnSortable, isColumnVisible, prependFooter, prependHeader, refresh, refresh, refresh, removeItemSelectedListener, render, select, select, setCaption, setColumnFrozen, setColumnResizable, setColumnVisible, setMethodHandlerHost, sort, sort, sortOrder, sortOrder, unwrapMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.data.provider.HasLazyDataView
setItems, setItemsMethods inherited from interface com.vaadin.flow.data.provider.HasListDataView
setItems, setItemsMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, reversed, spliteratorMethods inherited from interface com.storedobject.common.Reentrant
isReentrantMethods inherited from interface com.storedobject.vaadin.util.SupportWindowMode
createWindowMethods inherited from interface com.storedobject.ui.Transactional
commit, execute, getLogic, getTransactionManager, run, setLogic, transact, transact, transactControl, transactControl, transactControl, transactControlMethods inherited from interface com.storedobject.vaadin.ValueChangeHandler
valueChanged
-
Field Details
-
process
-
exit
-
buttonLayout
-
-
Constructor Details
-
ReceiveAndBin
-
ReceiveAndBin
public ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update) -
ReceiveAndBin
public ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher) -
ReceiveAndBin
public ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher, GRNEditor grnEditor) -
ReceiveAndBin
public ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher, GRNEditor grnEditor, boolean allowSNChange) -
ReceiveAndBin
public ReceiveAndBin(Date date, String reference, List<InventoryItem> itemList, TransactionManager.Transact update, Runnable refresher, GRNEditor grnEditor, boolean allowSNChange, com.vaadin.flow.component.Component... extraComponents) -
ReceiveAndBin
-
-
Method Details
-
getRelativeColumnWidth
Description copied from interface:HasColumnsThis 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:
getRelativeColumnWidthin interfaceHasColumns<InventoryItem>- Parameters:
columnName- Name of the column.- Returns:
- The default implementation returns -1, meaning the value should not be applied.
-
createHeader
public com.vaadin.flow.component.Component createHeader()Description copied from interface:HasColumnsYou 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:
createHeaderin interfaceHasColumns<InventoryItem>- Returns:
- Component to be used as the "header row".
-
execute
Description copied from interface:ExecutableViewExecute the associated view by locking another view (the locked view will not be selectable until this view is closed). The locked view acts as its "parent" and it will automatically get selected when this view closes.- Specified by:
executein interfaceExecutableView- Parameters:
lock- View to be locked.
-
getLocation
-