use of io.jmix.ui.action.BaseAction in project jmix by jmix-framework.
the class StandardEditor method addDefaultCloseAction.
protected Action addDefaultCloseAction(Messages messages, Icons icons) {
Action action = new BaseAction(WINDOW_CLOSE).withCaption(messages.getMessage("actions.Cancel")).withIcon(icons.get(JmixIcon.EDITOR_CANCEL));
getWindow().addAction(action);
return action;
}
use of io.jmix.ui.action.BaseAction in project jmix by jmix-framework.
the class StandardEditor method addDefaultEnableEditingAction.
protected Action addDefaultEnableEditingAction(Messages messages, Icons icons) {
Action action = new BaseAction(ENABLE_EDITING).withCaption(messages.getMessage("actions.EnableEditing")).withIcon(icons.get(JmixIcon.ENABLE_EDITING));
action.setVisible(false);
getWindow().addAction(action);
return action;
}
use of io.jmix.ui.action.BaseAction in project jmix by jmix-framework.
the class StandardEditor method addDefaultCommitAction.
protected Action addDefaultCommitAction(Messages messages, Icons icons) {
Action action = new BaseAction(WINDOW_COMMIT).withCaption(messages.getMessage("actions.Save")).withIcon(icons.get(JmixIcon.EDITOR_SAVE));
getWindow().addAction(action);
return action;
}
use of io.jmix.ui.action.BaseAction in project jmix by jmix-framework.
the class StandardLookup method addDefaultSelectAction.
protected Action addDefaultSelectAction(Messages messages, Icons icons) {
String commitShortcut = getApplicationContext().getBean(UiScreenProperties.class).getCommitShortcut();
Action action = new BaseAction(LOOKUP_SELECT_ACTION_ID).withCaption(messages.getMessage("actions.Select")).withIcon(icons.get(JmixIcon.LOOKUP_OK)).withPrimary(true).withShortcut(commitShortcut);
getWindow().addAction(action);
return action;
}
Aggregations