use of com.qcadoo.view.internal.components.HiddenComponentPattern in project qcadoo by qcadoo.
the class FormComponentPattern method getVersionField.
private FieldComponentPattern getVersionField(ComponentPattern parent) {
ComponentDefinition componentDefinition = new ComponentDefinition();
componentDefinition.setName(VersionableConstants.VERSION_FIELD_NAME);
componentDefinition.setFieldPath("#{" + getReference() + "}." + VersionableConstants.VERSION_FIELD_NAME);
componentDefinition.setSourceFieldPath(null);
componentDefinition.setTranslationService(getTranslationService());
componentDefinition.setApplicationContext(getApplicationContext());
componentDefinition.setViewDefinition(getViewDefinition());
componentDefinition.setParent(parent);
componentDefinition.setContextualHelpService(getContextualHelpService());
componentDefinition.setExtensionPluginIdentifier(getExtensionPluginIdentifier());
FieldComponentPattern versionField = new HiddenComponentPattern(componentDefinition);
versionField.setPersistent(true);
return versionField;
}
Aggregations