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 ClassesNested classes/interfaces inherited from class io.jmix.flowui.action.SecuredBaseAction
SecuredBaseAction.EnabledRule -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected Dialogsprotected Stringstatic final Stringprotected Stringprotected MessagesFields inherited from class io.jmix.flowui.action.list.ListDataComponentAction
selectionListenerRegistration, targetFields inherited from class io.jmix.flowui.action.SecuredBaseAction
enabledByUiPermissions, enabledRules, visibleByUiPermissionsFields inherited from class io.jmix.flowui.kit.action.BaseAction
enabledExplicitly, visibleExplicitlyFields inherited from class io.jmix.flowui.kit.action.AbstractAction
description, enabled, eventBus, icon, id, shortcutCombination, text, variant, visibleFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the action to show the pivot table.protected booleanSpecifies whether to show all rows or prompt the user to select rows.parseProperties(String properties) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetDialogs(Dialogs dialogs) voidsetExcludedProperties(String properties) Set excluded properties separated by a comma.voidsetIncludedProperties(String properties) Sets included properties separated by a comma.voidsetMessages(Messages messages) protected voidMethods 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, withVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.action.SecuredBaseAction
addEnabledRule, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabledByUiPermissions, setVisibleByUiPermissionsMethods inherited from class io.jmix.flowui.kit.action.BaseAction
addActionPerformedListener, isApplicable, setEnabled, setEnabledInternal, setVisible, setVisibleInternalMethods 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, setVariantMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.kit.action.Action
addPropertyChangeListener, getDescription, getIcon, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setText, setVariant, setVisibleMethods 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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
setMessages
-
setDialogs
-
execute
public void execute()Executes the action to show the pivot table.- Specified by:
executein 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
-