@StudioAction(target="io.jmix.ui.component.ListComponent", description="Gets items from Table/DataGrid and shows them in a new screen with PivotTable component") @ActionType(value="showPivot") public class ShowPivotAction extends ListAction
ListComponent
and shows them in new screen with pivot table component.Modifier and Type | Class and Description |
---|---|
protected static class |
ShowPivotAction.ShowPivotMode
Provides two modes for exporting rows from component.
|
BaseAction.EnabledRule
Action.ActionPerformedEvent, Action.AdjustWhenScreenReadOnly, Action.ExecutableAction, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.MainTabSheetAction, Action.ScreenOpeningAction, Action.SecuredAction, Action.Status
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected java.lang.String |
excludedProperties |
static java.lang.String |
ID |
protected java.lang.String |
includedProperties |
protected io.jmix.core.Messages |
messages |
target
caption, description, enabled, eventHub, icon, id, owners, primary, shortcut, visible
PROP_CAPTION, PROP_DESCRIPTION, PROP_ENABLED, PROP_ICON, PROP_SHORTCUT, PROP_VISIBLE
Constructor and Description |
---|
ShowPivotAction() |
ShowPivotAction(java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerform(Component component)
Invoked by owning component to execute the action.
|
java.lang.String |
getExcludedProperties() |
java.util.List<java.lang.String> |
getExcludedPropertiesList() |
java.lang.String |
getIncludedProperties() |
java.util.List<java.lang.String> |
getIncludedPropertiesList() |
protected boolean |
needShowAll() |
protected java.util.List<java.lang.String> |
parseProperties(java.lang.String properties) |
protected void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setExcludedProperties(java.lang.String properties)
Set excluded properties separated by a comma.
|
void |
setIncludedProperties(java.lang.String properties)
Sets included properties separated by a comma.
|
protected void |
setMessages(io.jmix.core.Messages messages) |
protected void |
showPivotTable(ShowPivotAction.ShowPivotMode mode) |
getTarget, setTarget, withCaption, withDescription, withHandler, withIcon, withPrimary, withShortcut
addActionPerformedListener, addEnabledRule, isApplicable, isEnabledByRule, isEnabledByUiPermissions, isPermitted, isVisibleByUiPermissions, refreshState, removeEnabledRule, setEnabled, setEnabledByUiPermissions, setEnabledInternal, setVisible, setVisibleByUiPermissions, setVisibleInternal
addOwner, addPropertyChangeListener, firePropertyChange, getCaption, getDescription, getEventHub, getIcon, getId, getOwner, getOwners, getShortcutCombination, hasSubscriptions, isEnabled, isPrimary, isVisible, removeOwner, removePropertyChangeListener, setCaption, setDescription, setIcon, setPrimary, setShortcut, setShortcutCombination
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOwner, addPropertyChangeListener, getCaption, getDescription, getIcon, getId, getOwner, getOwners, getShortcutCombination, isEnabled, isVisible, refreshState, removeOwner, removePropertyChangeListener, setCaption, setDescription, setEnabled, setIcon, setShortcut, setShortcutCombination, setVisible
public static final java.lang.String ID
protected io.jmix.core.Messages messages
protected org.springframework.context.ApplicationContext applicationContext
protected java.lang.String includedProperties
protected java.lang.String excludedProperties
public ShowPivotAction()
public ShowPivotAction(java.lang.String id)
@Autowired protected void setMessages(io.jmix.core.Messages messages)
@Autowired protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
@StudioPropertiesItem(name="excludedProperties", description="Set excluded properties separated by a comma. Excluded properties will not be shown in the PivotTable") public void setExcludedProperties(java.lang.String properties)
properties
- excluded propertiespublic java.lang.String getExcludedProperties()
public java.util.List<java.lang.String> getExcludedPropertiesList()
@StudioPropertiesItem(name="includedProperties", description="Sets included properties separated by a comma. Only included properties will be shown in the PivotTable") public void setIncludedProperties(java.lang.String properties)
properties
- included propertiespublic java.lang.String getIncludedProperties()
public java.util.List<java.lang.String> getIncludedPropertiesList()
public void actionPerform(Component component)
Action
actionPerform
in interface Action
actionPerform
in class BaseAction
component
- invoking componentprotected boolean needShowAll()
protected java.util.List<java.lang.String> parseProperties(java.lang.String properties)
protected void showPivotTable(ShowPivotAction.ShowPivotMode mode)