@Component(value="cuba_GuiActionSupport")
public class GuiActionSupport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Actions |
actions |
protected DynamicAttributesGuiTools |
dynamicAttributesGuiTools |
protected EntityStates |
entityStates |
protected MetadataTools |
metadataTools |
static java.lang.String |
NAME |
protected ViewRepository |
viewRepository |
Constructor and Description |
---|
GuiActionSupport() |
Modifier and Type | Method and Description |
---|---|
boolean |
createActionsByMetaAnnotations(PickerField pickerField)
Adds actions specified in
Lookup annotation on entity attribute to the given PickerField. |
Entity |
reloadEntityIfNeeded(Entity entity,
Datasource targetDatasource)
Returns an entity reloaded with the view of the target datasource if it is wider than the set of attributes
that is loaded in the given entity instance.
|
public static final java.lang.String NAME
@Inject protected ViewRepository viewRepository
@Inject protected EntityStates entityStates
@Inject protected DynamicAttributesGuiTools dynamicAttributesGuiTools
@Inject protected MetadataTools metadataTools
@Inject protected Actions actions
public Entity reloadEntityIfNeeded(Entity entity, Datasource targetDatasource)
public boolean createActionsByMetaAnnotations(PickerField pickerField)
Lookup
annotation on entity attribute to the given PickerField.pickerField
- field