use of io.jmix.ui.action.entitypicker.EntityClearAction in project jmix by jmix-framework.
the class QueryParameterEditor method createEntityPicker.
protected EntityPicker createEntityPicker() {
MetaClass metaClass = entityMetaClassField.getValue();
EntityPicker entityPicker = uiComponents.create(EntityPicker.class);
entityPicker.setMetaClass(metaClass);
EntityLookupAction pickerLookupAction = (EntityLookupAction) actions.create(EntityLookupAction.ID);
entityPicker.addAction(pickerLookupAction);
Action entityClearAction = actions.create(EntityClearAction.ID);
entityPicker.addAction(entityClearAction);
return entityPicker;
}
Aggregations