Class GridActionsSupport<C extends com.vaadin.flow.component.grid.Grid<T>,T>
java.lang.Object
io.jmix.flowui.kit.component.delegate.AbstractActionsHolderSupport<C>
io.jmix.flowui.kit.component.grid.GridActionsSupport<C,T>
- Direct Known Subclasses:
DataGridActionsSupport
public class GridActionsSupport<C extends com.vaadin.flow.component.grid.Grid<T>,T>
extends AbstractActionsHolderSupport<C>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Action,GridMenuItemActionWrapper<T>> protected JmixGridContextMenu<T>protected booleanFields inherited from class io.jmix.flowui.kit.component.delegate.AbstractActionsHolderSupport
actions, actionShortcutBinding, component -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddActionInternal(Action action, int index) protected voidaddContextMenuItem(Action action) protected GridMenuItemActionWrapper<T>protected JmixGridContextMenu<T>protected voidbooleanprotected booleanremoveActionInternal(Action action) protected voidremoveContextMenuItem(Action action) voidsetShowActionsInContextMenuEnabled(boolean showActionsInContextMenuEnabled) Sets whether to show actions in grid context menu.protected voidMethods inherited from class io.jmix.flowui.kit.component.delegate.AbstractActionsHolderSupport
addAction, addAction, addShortcutListenerIfNeeded, attachAction, detachAction, getAction, getActions, getActionShortcutBinding, getShortcutLifecycleOwner, removeAction, removeShortcutListener
-
Field Details
-
actionBinding
-
contextMenu
-
showActionsInContextMenuEnabled
protected boolean showActionsInContextMenuEnabled
-
-
Constructor Details
-
GridActionsSupport
-
-
Method Details
-
addActionInternal
- Overrides:
addActionInternalin classAbstractActionsHolderSupport<C extends com.vaadin.flow.component.grid.Grid<T>>
-
addContextMenuItem
-
createContextMenuItemComponent
-
getContextMenu
-
initContextMenu
protected void initContextMenu() -
updateContextMenu
protected void updateContextMenu() -
removeActionInternal
- Overrides:
removeActionInternalin classAbstractActionsHolderSupport<C extends com.vaadin.flow.component.grid.Grid<T>>
-
removeContextMenuItem
-
isShowActionsInContextMenuEnabled
public boolean isShowActionsInContextMenuEnabled()- Returns:
- true if actions are showed in grid context menu, false otherwise
-
setShowActionsInContextMenuEnabled
public void setShowActionsInContextMenuEnabled(boolean showActionsInContextMenuEnabled) Sets whether to show actions in grid context menu.- Parameters:
showActionsInContextMenuEnabled- true if actions should be showed to context menu, false otherwise
-