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
(DataGrid<T> itemGrid) ItemContextMenu
(DataGrid<T> itemGrid, boolean canInspect, boolean allowBreaking, boolean allowEditCost) ItemContextMenu
(DataGrid<T> itemGrid, boolean canInspect, boolean allowBreaking, boolean allowEditCost, Runnable refresher) ItemContextMenu
(DataGrid<T> itemGrid, Runnable refresher) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAllowBreaking
(boolean allowBreaking) void
setAllowEditCost
(boolean allowEditCost) void
setAllowInspection
(boolean allowInspection) void
setDynamicContentHandler
(com.vaadin.flow.function.SerializablePredicate<T> dynamicContentHandler) void
setHideGRNDetails
(boolean hideGRNDetails) void
setHideViewStock
(boolean hideViewStock) Methods inherited from class com.vaadin.flow.component.grid.contextmenu.GridContextMenu
addGridContextMenuOpenedListener, addItem, addItem, createMenuManager, getDynamicContentHandler, onBeforeOpenMenu, setTarget
Methods inherited from class com.vaadin.flow.component.contextmenu.ContextMenuBase
add, addComponentAtIndex, addItem, addItem, addOpenedChangeListener, close, getChildren, getItems, getMenuManager, getTarget, isOpened, isOpenOnClick, remove, removeAll, setOpenOnClick
Methods 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, 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.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, remove
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabled
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
ItemContextMenu
-
ItemContextMenu
-
ItemContextMenu
-
ItemContextMenu
-
-
Method Details
-
setDynamicContentHandler
public void setDynamicContentHandler(com.vaadin.flow.function.SerializablePredicate<T> dynamicContentHandler) - Overrides:
setDynamicContentHandler
in 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) -
getContext
-