Search in sources :

Example 6 with Actions

use of io.jmix.ui.Actions in project jmix by jmix-framework.

the class EntityPickerLoader method addEntityPickerDefaultActions.

protected void addEntityPickerDefaultActions() {
    Actions actions = getActions();
    resultComponent.addAction(actions.create(EntityLookupAction.ID));
    resultComponent.addAction(actions.create(EntityClearAction.ID));
}
Also used : Actions(io.jmix.ui.Actions)

Example 7 with Actions

use of io.jmix.ui.Actions in project jmix by jmix-framework.

the class EntitySuggestionFieldLoader method addDefaultActions.

protected void addDefaultActions() {
    Actions actions = getActions();
    getResultComponent().addAction(actions.create(EntityLookupAction.ID));
    getResultComponent().addAction(actions.create(EntityOpenAction.ID));
}
Also used : Actions(io.jmix.ui.Actions)

Example 8 with Actions

use of io.jmix.ui.Actions in project jmix by jmix-framework.

the class AbstractComponentLoader method loadValuePickerDeclarativeAction.

protected Action loadValuePickerDeclarativeAction(ActionsHolder actionsHolder, Element element) {
    String type = element.attributeValue("type");
    if (StringUtils.isNotEmpty(type)) {
        Actions actions = getActions();
        String id = loadActionId(element);
        Action action = actions.create(type, id);
        initAction(element, action);
        return action;
    }
    return loadDeclarativeActionDefault(actionsHolder, element);
}
Also used : Action(io.jmix.ui.action.Action) ItemTrackingAction(io.jmix.ui.action.ItemTrackingAction) BaseAction(io.jmix.ui.action.BaseAction) Actions(io.jmix.ui.Actions)

Aggregations

Actions (io.jmix.ui.Actions)8 Action (io.jmix.ui.action.Action)4 BaseAction (io.jmix.ui.action.BaseAction)4 ItemTrackingAction (io.jmix.ui.action.ItemTrackingAction)3 Nullable (javax.annotation.Nullable)1