Interface GomEditorProvider
- All Superinterfaces:
Collection<GomElement>,GomElement,GomList<GomElement>,Iterable<GomElement>,List<GomElement>,Serializable
Tag for GOM elements acting as group, i.e., a container for
a list of GOM elements.
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionappendEditorNames(@Nullable List<String> names) Append the names of all local and children's editors to the given list of names and return the list.@Nullable GomFormElementfindEditor(String name) Look up a GOM editor element within this provider.@NotNull Iterable<GomFormElement>forms()Returns an iterable on all form elements within this provider.@Nullable GomElementget(int index) Getter for GomElements.@Nullable StringgetUid()Get the unique identifier of this provider.voidsetDefaults(Data data) Deprecated.voidsetFormDefaults(@Nullable FormData formData) Set the default values for all editors based on the given form data.voidSet the unique identifier for this provider.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfigurationMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomList
getGomElementMappingsMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
Method Details
-
getUid
Get the unique identifier of this provider.- Returns:
- The provider's UID.
- Since:
- 4.0
-
setUid
Set the unique identifier for this provider.- Parameters:
uid- The identifier to be used for this provider.- Since:
- 4.0
-
get
Getter for GomElements.- Specified by:
getin interfaceList<GomElement>- Since:
- 4.0
-
findEditor
Look up a GOM editor element within this provider.- Parameters:
name- The name of the editor.- Returns:
- The matching editor or
null. - Since:
- 4.0
-
appendEditorNames
Append the names of all local and children's editors to the given list of names and return the list. Ifnamesisnull, returns a new list.- Parameters:
names- A list of names or null.- Returns:
- The list of editor names, maybe empty.
- Since:
- 4.0
-
forms
Returns an iterable on all form elements within this provider.- Returns:
- A list of form elements, maybe empty.
- Since:
- 4.0
-
setDefaults
Deprecated.since 5.2.20, usesetFormDefaults(FormData).Set the default values for all editors based on the given data.- Parameters:
data- The data providing default values.- Since:
- 4.0.45
-
setFormDefaults
Set the default values for all editors based on the given form data.- Parameters:
formData- The form data providing default values.- Since:
- 5.2.20
-
setFormDefaults(FormData).