Class JmixGroupGridActionsSupport<C extends Grid<T>,T>
java.lang.Object
io.jmix.flowui.kit.component.delegate.AbstractActionsHolderSupport<C>
io.jmix.groupgridflowui.kit.component.JmixGroupGridActionsSupport<C,T>
- Type Parameters:
C- grid typeT- item type
- Direct Known Subclasses:
GroupDataGridActionsSupport
public class JmixGroupGridActionsSupport<C extends Grid<T>,T>
extends AbstractActionsHolderSupport<C>
Experimental. It can be changed or removed in later releases.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<Action,JmixGroupGridMenuItemActionWrapper<T>> protected JmixGroupGridContextMenu<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 JmixGroupGridMenuItemActionWrapper<T>protected JmixGroupGridContextMenu<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
-
JmixGroupGridActionsSupport
-
-
Method Details
-
addActionInternal
- Overrides:
addActionInternalin classAbstractActionsHolderSupport<C extends Grid<T>>
-
addContextMenuItem
-
createContextMenuItemComponent
-
getContextMenu
-
initContextMenu
protected void initContextMenu() -
updateContextMenu
protected void updateContextMenu() -
removeActionInternal
- Overrides:
removeActionInternalin classAbstractActionsHolderSupport<C extends Grid<T>>
-
removeContextMenuItem
-
isShowActionsInContextMenuEnabled
public boolean isShowActionsInContextMenuEnabled()- Returns:
- true if actions are shown 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 shown to context menu, false otherwise
-