Package io.jmix.flowui.component.grid
Class DataGridActionsSupport<C extends com.vaadin.flow.component.grid.Grid<T> & ListDataComponent<T>,T>
java.lang.Object
io.jmix.flowui.kit.component.delegate.AbstractActionsHolderSupport<C>
io.jmix.flowui.kit.component.grid.GridActionsSupport<C,T>
io.jmix.flowui.component.grid.DataGridActionsSupport<C,T>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@Component("flowui_DataGridActionsSupport")
@Scope("prototype")
public class DataGridActionsSupport<C extends com.vaadin.flow.component.grid.Grid<T> & ListDataComponent<T>,T>
extends GridActionsSupport<C,T>
implements org.springframework.context.ApplicationContextAware
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
Fields inherited from class io.jmix.flowui.kit.component.grid.GridActionsSupport
actionBinding, contextMenu, showActionsInContextMenuEnabled
Fields inherited from class io.jmix.flowui.kit.component.delegate.AbstractActionsHolderSupport
actions, actionShortcutBinding, component
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addShortcutListenerIfNeeded
(Action action) protected void
attachAction
(Action action) protected GridMenuItemActionWrapper<T>
protected void
detachAction
(Action action) protected void
protected boolean
needSkipShortcut
(KeyCombination keyCombination) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) Methods inherited from class io.jmix.flowui.kit.component.grid.GridActionsSupport
addActionInternal, addContextMenuItem, getContextMenu, isShowActionsInContextMenuEnabled, removeActionInternal, removeContextMenuItem, setShowActionsInContextMenuEnabled, updateContextMenu
Methods inherited from class io.jmix.flowui.kit.component.delegate.AbstractActionsHolderSupport
addAction, addAction, getAction, getActions, getActionShortcutBinding, removeAction, removeShortcutListener
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
DataGridActionsSupport
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
initContextMenu
protected void initContextMenu()- Overrides:
initContextMenu
in classGridActionsSupport<C extends com.vaadin.flow.component.grid.Grid<T> & ListDataComponent<T>,
T>
-
attachAction
- Overrides:
attachAction
in classAbstractActionsHolderSupport<C extends com.vaadin.flow.component.grid.Grid<T> & ListDataComponent<T>>
-
detachAction
- Overrides:
detachAction
in classAbstractActionsHolderSupport<C extends com.vaadin.flow.component.grid.Grid<T> & ListDataComponent<T>>
-
addShortcutListenerIfNeeded
- Overrides:
addShortcutListenerIfNeeded
in classAbstractActionsHolderSupport<C extends com.vaadin.flow.component.grid.Grid<T> & ListDataComponent<T>>
-
needSkipShortcut
-
createContextMenuItemComponent
- Overrides:
createContextMenuItemComponent
in classGridActionsSupport<C extends com.vaadin.flow.component.grid.Grid<T> & ListDataComponent<T>,
T>
-