Search in sources :

Example 1 with ListAction

use of io.jmix.ui.action.ListAction in project jmix by jmix-framework.

the class EntityInspectorBrowser method createWipeOutAction.

private Action createWipeOutAction(Table table) {
    ListAction action = new ItemTrackingAction(WIPE_OUT_ACTION_ID).withCaption(messages.getMessage(EntityInspectorBrowser.class, "wipeOut")).withHandler(event -> showWipeOutDialog());
    action.setTarget(table);
    return action;
}
Also used : ItemTrackingAction(io.jmix.ui.action.ItemTrackingAction) ListAction(io.jmix.ui.action.ListAction)

Example 2 with ListAction

use of io.jmix.ui.action.ListAction in project jmix by jmix-framework.

the class EntityInspectorBrowser method createRestoreAction.

private Action createRestoreAction(Table table) {
    ListAction action = new ItemTrackingAction(RESTORE_ACTION_ID).withCaption(messages.getMessage(EntityInspectorBrowser.class, "restore")).withHandler(event -> showRestoreDialog());
    action.setTarget(table);
    return action;
}
Also used : ItemTrackingAction(io.jmix.ui.action.ItemTrackingAction) ListAction(io.jmix.ui.action.ListAction)

Example 3 with ListAction

use of io.jmix.ui.action.ListAction in project jmix by jmix-framework.

the class RegionEditor method initEntityTree.

protected void initEntityTree() {
    entityTree.setSelectionMode(Tree.SelectionMode.MULTI);
    BaseAction doubleClickAction = new BaseAction("doubleClick").withHandler(event -> addProperty());
    doubleClickAction.addEnabledRule(this::isUpdatePermitted);
    entityTree.setItemClickAction(doubleClickAction);
    ListAction addPropertyAction = actions.create(ItemTrackingAction.class, "addItemAction").withHandler(event -> addProperty());
    addPropertyAction.addEnabledRule(this::isUpdatePermitted);
    entityTree.addAction(addPropertyAction);
    addItem.setAction(addPropertyAction);
}
Also used : ItemTrackingAction(io.jmix.ui.action.ItemTrackingAction) BaseAction(io.jmix.ui.action.BaseAction) ListAction(io.jmix.ui.action.ListAction)

Aggregations

ItemTrackingAction (io.jmix.ui.action.ItemTrackingAction)3 ListAction (io.jmix.ui.action.ListAction)3 BaseAction (io.jmix.ui.action.BaseAction)1