Interface ObjectChooserEditorValue
- All Superinterfaces:
EditorValue<Entity>
,TableTemplateProvider
@Deprecated
public interface ObjectChooserEditorValue
extends EditorValue<Entity>, TableTemplateProvider
Deprecated.
Since 5.0.107 - usages of CMS_INPUT_OBJECTCHOOSER should be replaced with FS_DATASET.
- Since:
- 4.0
- Example:
- How to get and store value
import de.espirit.firstspirit.access.editor.*; import de.espirit.firstspirit.access.Language; import de.espirit.firstspirit.access.editor.value.InvalidValueException; import de.espirit.or.schema.Entity; /** * Example how to get the value of a ObjectChooserEditorValue and how to store a value into a ObjectChooserEditorValue. * * @since 4.2.34 */ public class ObjectChooserEditorValueExample { /** * Stores the value into the ObjectChooserEditorValue for the given language. * * @since 4.2.34 */ public void setValueForLanguage(final ObjectChooserEditorValue editor, final Entity value, final Language language) throws InvalidValueException { // 1. check if language is provided if editor is language dependent ("useLanguages='yes'" in gom syntax) if (editor.isLanguageDependent() && language == null) { throw new NullPointerException("Language is missing!"); } // 2. store value into the editor value editor.set(language, value); } /** * Returns the value of the ObjectChooserEditorValue for the given language. * * @since 4.2.34 */ public Entity getValueForLanguage(final ObjectChooserEditorValue editor, final Language language) { // 1. get the stored instance in the editor value final Entity value = editor.get(language); // 2. and return the value for further processing return value; } }
-
Field Summary
Fields inherited from interface de.espirit.firstspirit.access.editor.EditorValue
COPY_PRESET, DEFAULT, DELETE, FALLBACK_LANGUAGE, LANG_KEY, SOLE_LANGUAGE, UNSUPPORTED
Fields inherited from interface de.espirit.firstspirit.access.editor.TableTemplateProvider
SELECTION_KEY, SELECTION_VALUE_KEY
-
Method Summary
Modifier and TypeMethodDescriptiongetForm()
Deprecated.Covariant return of concrete form container.Methods inherited from interface de.espirit.firstspirit.access.editor.EditorValue
addEditorValueListener, assimilate, beSet, clear, clear, findReferences, get, getContentType, getDataValue, getEditorLanguages, getGuiXml, getMatches, getSearchableString, getTagName, getValueType, initialize, isDefault, isEmpty, isLanguageDependent, isSet, isSet, isValid, removeEditorValueListener, set, setTagName, setValueNode, toXml, toXml, validate
Methods inherited from interface de.espirit.firstspirit.access.editor.TableTemplateProvider
getTableTemplate
-
Method Details
-
getForm
GomObjectChooser getForm()Deprecated.Covariant return of concrete form container.- Specified by:
getForm
in interfaceEditorValue<Entity>
- Returns:
- The form definition.
- Since:
- 4.0
-