Package io.jmix.pivottableflowui.action
Class ShowPivotTableAction<E>
java.lang.Object
io.jmix.flowui.kit.action.AbstractAction
io.jmix.flowui.kit.action.BaseAction
io.jmix.flowui.action.ObservableBaseAction<SecuredBaseAction>
io.jmix.flowui.action.SecuredBaseAction
io.jmix.flowui.action.list.ListDataComponentAction<ShowPivotTableAction<E>,E>
io.jmix.pivottableflowui.action.ShowPivotTableAction<E>
- All Implemented Interfaces:
ExecutableAction,SecuredAction,TargetAction<ListDataComponent<E>>,Action,HasShortcutCombination,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@ActionType("pvttbl_showPivotTable")
public class ShowPivotTableAction<E>
extends ListDataComponentAction<ShowPivotTableAction<E>,E>
implements org.springframework.context.ApplicationContextAware
Shows the pivot table with 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 Messagesprotected OpenModeFields 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.action.ObservableBaseAction
uiObservationSupportFields 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.Retrieves the open mode that specifies how a view should be displayed when the action is executed.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) voidsetOpenMode(OpenMode openMode) Sets the open mode to specify how a view should be displayed when executed.protected voidMethods inherited from class io.jmix.flowui.action.list.ListDataComponentAction
actionPerform, attachSelectionListener, checkTarget, checkTargetItems, getTarget, initAction, onSelectionChange, setTarget, withEnabled, withEnabledByUiPermissions, withHandler, withIcon, 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.action.ObservableBaseAction
getUiObservationSupport, withDescriptionMethods 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, getIconComponent, getId, getShortcutCombination, getText, getVariant, hasListener, isEnabled, isVisible, setDescription, setIcon, setIconComponent, 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, getIconComponent, getId, getText, getVariant, isEnabled, isVisible, refreshState, setDescription, setEnabled, setIcon, setIconComponent, 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
-
openMode
-
-
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
-
getOpenMode
Retrieves the open mode that specifies how a view should be displayed when the action is executed.- Returns:
- the open mode for the view, or
nullif no open mode is set
-
setOpenMode
Sets the open mode to specify how a view should be displayed when executed. The default isOpenMode.NAVIGATION.- Parameters:
openMode- the desired open mode for the view, ornullto unset the open mode
-
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
-