Package io.jmix.pivottable.action.list
Class ShowPivotAction
java.lang.Object
io.jmix.ui.action.AbstractAction
io.jmix.ui.action.BaseAction
io.jmix.ui.action.ListAction
io.jmix.pivottable.action.list.ShowPivotAction
- All Implemented Interfaces:
Action,Action.HasPrimaryState,Action.HasTarget,Action.SecuredAction
@StudioAction(target="io.jmix.ui.component.ListComponent",
description="Gets items from Table/DataGrid and shows them in a new screen with PivotTable component")
@ActionType("showPivot")
public class ShowPivotAction
extends ListAction
Gets items from
ListComponent and shows them in new screen with pivot table component.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumProvides two modes for exporting rows from component.Nested classes/interfaces inherited from class io.jmix.ui.action.BaseAction
BaseAction.EnabledRuleNested classes/interfaces inherited from interface io.jmix.ui.action.Action
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected Stringstatic final Stringprotected Stringprotected MessagesFields inherited from class io.jmix.ui.action.ListAction
targetFields inherited from class io.jmix.ui.action.AbstractAction
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visibleFields inherited from interface io.jmix.ui.action.Action
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerform(Component component) Invoked by owning component to execute the action.protected booleanparseProperties(String properties) protected voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetExcludedProperties(String properties) Set excluded properties separated by a comma.voidsetIncludedProperties(String properties) Sets included properties separated by a comma.protected voidsetMessages(Messages messages) protected voidMethods inherited from class io.jmix.ui.action.ListAction
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcutMethods inherited from class io.jmix.ui.action.BaseAction
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternalMethods inherited from class io.jmix.ui.action.AbstractAction
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombinationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.action.Action
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
-
Field Details
-
ID
- See Also:
-
messages
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
includedProperties
-
excludedProperties
-
-
Constructor Details
-
ShowPivotAction
public ShowPivotAction() -
ShowPivotAction
-
-
Method Details
-
setMessages
-
setApplicationContext
@Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
setExcludedProperties
@StudioPropertiesItem(name="excludedProperties", description="Set excluded properties separated by a comma. Excluded properties will not be shown in the PivotTable") public void setExcludedProperties(String properties) 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
@StudioPropertiesItem(name="includedProperties", description="Sets included properties separated by a comma. Only included properties will be shown in the PivotTable") public void setIncludedProperties(String properties) 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
-
actionPerform
Description copied from interface:ActionInvoked by owning component to execute the action.- Specified by:
actionPerformin interfaceAction- Overrides:
actionPerformin classBaseAction- Parameters:
component- invoking component
-
needShowAll
protected boolean needShowAll() -
parseProperties
-
showPivotTable
-