Package com.storedobject.ui.inventory
Class ItemContextMenu<T extends HasInventoryItem>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.contextmenu.ContextMenuBase<com.vaadin.flow.component.grid.contextmenu.GridContextMenu<T>,com.vaadin.flow.component.grid.contextmenu.GridMenuItem<T>,com.vaadin.flow.component.grid.contextmenu.GridSubMenu<T>>
com.vaadin.flow.component.grid.contextmenu.GridContextMenu<T>
com.storedobject.ui.inventory.ItemContextMenu<T>
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,Serializable
public class ItemContextMenu<T extends HasInventoryItem>
extends com.vaadin.flow.component.grid.contextmenu.GridContextMenu<T>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.grid.contextmenu.GridContextMenu
com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuItemClickEvent<T>, com.vaadin.flow.component.grid.contextmenu.GridContextMenu.GridContextMenuOpenedEvent<T>Nested classes/interfaces inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase
com.vaadin.flow.component.contextmenu.ContextMenuBase.OpenedChangeEvent<TComponent extends com.vaadin.flow.component.contextmenu.ContextMenuBase<TComponent,?, ?>> -
Field Summary
Fields inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase
EVENT_DETAIL -
Constructor Summary
ConstructorsConstructorDescriptionItemContextMenu(com.vaadin.flow.component.grid.Grid<T> itemGrid) ItemContextMenu(com.vaadin.flow.component.grid.Grid<T> itemGrid, boolean canInspect, boolean allowBreaking, boolean allowEditCost) ItemContextMenu(com.vaadin.flow.component.grid.Grid<T> itemGrid, boolean canInspect, boolean allowBreaking, boolean allowEditCost, Runnable refresher) ItemContextMenu(com.vaadin.flow.component.grid.Grid<T> itemGrid, Runnable refresher) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAllowBreaking(boolean allowBreaking) voidsetAllowEditCost(boolean allowEditCost) voidsetAllowInspection(boolean allowInspection) voidsetDynamicContentHandler(com.vaadin.flow.function.SerializablePredicate<T> dynamicContentHandler) voidsetHideGRNDetails(boolean hideGRNDetails) voidsetHideMovementDetails(boolean hideMovementDetails) voidsetHideViewStock(boolean hideViewStock) Methods inherited from class com.vaadin.flow.component.grid.contextmenu.GridContextMenu
addGridContextMenuOpenedListener, addItem, addItem, createMenuManager, getDynamicContentHandler, onBeforeOpenMenu, setTargetMethods inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase
add, add, add, addComponent, addComponent, addComponentAsFirst, addComponentAtIndex, addItem, addItem, addOpenedChangeListener, addSeparator, close, getChildren, getItems, getMenuManager, getTarget, isOpened, isOpenOnClick, remove, removeAll, setOpenOnClickMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, 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.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
removeMethods 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.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
ItemContextMenu
-
ItemContextMenu
-
ItemContextMenu
public ItemContextMenu(com.vaadin.flow.component.grid.Grid<T> itemGrid, boolean canInspect, boolean allowBreaking, boolean allowEditCost) -
ItemContextMenu
-
-
Method Details
-
setDynamicContentHandler
public void setDynamicContentHandler(com.vaadin.flow.function.SerializablePredicate<T> dynamicContentHandler) - Overrides:
setDynamicContentHandlerin classcom.vaadin.flow.component.grid.contextmenu.GridContextMenu<T extends HasInventoryItem>
-
setAllowBreaking
public void setAllowBreaking(boolean allowBreaking) -
setAllowEditCost
public void setAllowEditCost(boolean allowEditCost) -
setAllowInspection
public void setAllowInspection(boolean allowInspection) -
setHideGRNDetails
public void setHideGRNDetails(boolean hideGRNDetails) -
setHideViewStock
public void setHideViewStock(boolean hideViewStock) -
setHideMovementDetails
public void setHideMovementDetails(boolean hideMovementDetails) -
getContext
-