Class 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.
  • Field Details

    • ID

      public static final String ID
      See Also:
    • messages

      protected Messages messages
    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • includedProperties

      protected String includedProperties
    • excludedProperties

      protected String excludedProperties
  • Constructor Details

    • ShowPivotAction

      public ShowPivotAction()
    • ShowPivotAction

      public ShowPivotAction(String id)
  • Method Details

    • setMessages

      @Autowired protected void setMessages(Messages messages)
    • 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

      public String getExcludedProperties()
    • getExcludedPropertiesList

      public List<String> 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

      public String getIncludedProperties()
    • getIncludedPropertiesList

      public List<String> getIncludedPropertiesList()
      Returns:
      list with parsed included properties
    • actionPerform

      public void actionPerform(Component component)
      Description copied from interface: Action
      Invoked by owning component to execute the action.
      Specified by:
      actionPerform in interface Action
      Overrides:
      actionPerform in class BaseAction
      Parameters:
      component - invoking component
    • needShowAll

      protected boolean needShowAll()
    • parseProperties

      protected List<String> parseProperties(String properties)
    • showPivotTable

      protected void showPivotTable(ShowPivotAction.ShowPivotMode mode)