Package io.jmix.pivottableflowui.action
Class ShowPivotTableAction
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.list.ListDataComponentAction<ShowPivotTableAction,Entity>
io.jmix.pivottableflowui.action.ShowPivotTableAction
- All Implemented Interfaces:
ExecutableAction
,SecuredAction
,TargetAction<ListDataComponent<Entity>>
,Action
,HasShortcutCombination
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
@ActionType("pvttbl_showPivotTable")
public class ShowPivotTableAction
extends ListDataComponentAction<ShowPivotTableAction,Entity>
implements org.springframework.context.ApplicationContextAware
Jmix action to show
PivotTable
component.
When the action executes, the pivot table shows data from the component that implements ListDataComponent
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected Dialogs
protected String
static final String
protected String
protected Messages
Fields inherited from class io.jmix.flowui.action.list.ListDataComponentAction
selectionListenerRegistration, target
Fields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissions
Fields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitly
Fields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visible
Fields inherited from interface io.jmix.flowui.kit.action.Action
PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT_COMBINATION, PROP_TEXT, PROP_VARIANT, PROP_VISIBLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the action to show the pivot table.protected boolean
Specifies whether to show all rows or prompt the user to select rows.parseProperties
(String properties) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
setDialogs
(Dialogs dialogs) void
setExcludedProperties
(String properties) Set excluded properties separated by a comma.void
setIncludedProperties
(String properties) Sets included properties separated by a comma.void
setMessages
(Messages messages) protected void
Methods inherited from class io.jmix.flowui.action.list.ListDataComponentAction
actionPerform, attachSelectionListener, checkTarget, checkTargetItems, getTarget, initAction, onSelectionChange, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, withIcon, withShortcutCombination, withTarget, withText, withTitle, withVariant, withVisible, withVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissions
Methods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, isApplicable, setEnabled, setEnabledInternal, setVisible, setVisibleInternal
Methods inherited from class io.jmix.flowui.kit.action.AbstractAction
addPropertyChangeListener, firePropertyChange, getDescription, getEventBus, getIcon, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setShortcutCombination, setText, setVariant
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisible
Methods inherited from interface io.jmix.flowui.kit.component.HasShortcutCombination
getShortcutCombination, setShortcutCombination
-
Field Details
-
ID
- See Also:
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messages
-
dialogs
-
includedProperties
-
excludedProperties
-
-
Constructor Details
-
ShowPivotTableAction
public ShowPivotTableAction() -
ShowPivotTableAction
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
-
setMessages
-
setDialogs
-
execute
public void execute()Executes the action to show the pivot table.- Specified by:
execute
in interfaceExecutableAction
-
setExcludedProperties
Set excluded properties separated by a comma. Excluded properties will not be shown in the PivotTable.- Parameters:
properties
- excluded properties
-
getExcludedProperties
-
getExcludedPropertiesList
- Returns:
- list with parsed excluded properties
-
setIncludedProperties
Sets included properties separated by a comma. Only included properties will be shown in the PivotTable.- Parameters:
properties
- included properties
-
getIncludedProperties
-
getIncludedPropertiesList
- Returns:
- list with parsed included properties
-
needShowAll
protected boolean needShowAll()Specifies whether to show all rows or prompt the user to select rows.- Returns:
- true if all rows should be displayed, false otherwise
-
parseProperties
-
showPivotTable
-