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;
}
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;
}
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);
}
Aggregations