Class ItemTrackingAction

All Implemented Interfaces:
Action, Action.HasPrimaryState, Action.HasSecurityConstraint, Action.HasTarget, Action.SecuredAction
Direct Known Subclasses:
ChartEditFragment.ChartSeriesMoveAction, EntityInspectorBrowser.ExportAction

@StudioAction(target="io.jmix.ui.component.ListComponent", description="Tracks the selected item from the bound ListComponent") @ActionType("itemTracking") public class ItemTrackingAction extends SecuredListAction
Standard action that changes enabled property depending on selection of a bound ListComponent.
You can use fluent API to create instances of ItemTrackingAction and assign handlers to them:

     Action action = actions.create(ItemTrackingAction.ID, "moveToTrash")
             .withCaption("Move to trash")
             .withIcon(JmixIcon.TRASH_O.source())
             .withHandler(event -> {
                 // action logic here
             });
     docsTable.addAction(action);
 
  • Field Details

  • Constructor Details

    • ItemTrackingAction

      public ItemTrackingAction()
    • ItemTrackingAction

      public ItemTrackingAction(String id)