Class AbstractGomSelect
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomFormElement
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomSelect
- All Implemented Interfaces:
Cloneable<GomFormElement>,OptionFactoryProvider,GomCheckable,GomElement,GomEntryProvider,GomFormElement,GomHideable,GomLangInfoProvider,GomSearchRelevancy,LineBreakable,RelationEnabling,Serializable,Cloneable
- Direct Known Subclasses:
AbstractGomCombobox,AbstractGomGridSelect
@NonExtendable
public abstract class AbstractGomSelect
extends AbstractGomFormElement
implements GomEntryProvider, RelationEnabling
Abstract base class for selectable GOM elements like checkboxes or radio-buttons.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether foreign key relationships are supported as value source.clone()Creates a clone of this form element.Get a GOM list element that provides labeled entries.Get an option factory.Returns the order in which display options are displayedvoidsetSortOrder(SortOrder sortOrder) Sets the order in which display options are displayed@NotNull SortOrderConvenience method forgetSortOrder()returning a non-null valuevoidvalidate(GomCheckable.Context context) Validates the form element's state with respect to the given context.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomFormElement
allowsEmpty, breaks, convertEntities, description, fillsHorizontally, getAllowEmpty, getConvertEntities, getDefaultValue, getHFill, getHidden, getLabel, getLangInfos, getName, getNoBreak, getPreset, getSearchRelevancy, getUseLanguages, isHidden, label, name, preset, setAllowEmpty, setConvertEntities, setDefaultValue, setHFill, setHidden, setLabel, setLabelAndDescription, setName, setNoBreak, setPreset, setSearchRelevancy, setUseLanguages, usesLanguages, verifyMethods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getDefaultTag, getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfigurationMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Constructor Details
-
AbstractGomSelect
public AbstractGomSelect()
-
-
Method Details
-
getSortOrder
Returns the order in which display options are displayed- Since:
- 3.0
-
setSortOrder
Sets the order in which display options are displayed- Since:
- 3.0
-
getEntries
Description copied from interface:GomEntryProviderGet a GOM list element that provides labeled entries.- Specified by:
getEntriesin interfaceGomEntryProvider- Returns:
- The entries container.
-
validate
Description copied from class:AbstractGomFormElementValidates the form element's state with respect to the given context. This generic stub does not check anything.- Specified by:
validatein interfaceGomCheckable- Overrides:
validatein classAbstractGomFormElement- Parameters:
context- The context to validate for, must not benull.- Throws:
GomValidationError- if any requirement is violated.
-
getOptionFactory
Description copied from interface:OptionFactoryProviderGet an option factory.- Specified by:
getOptionFactoryin interfaceOptionFactoryProvider- Returns:
- The factory.
-
allowsRelations
public boolean allowsRelations()Description copied from interface:RelationEnablingIndicates whether foreign key relationships are supported as value source.- Specified by:
allowsRelationsin interfaceRelationEnabling- Returns:
true, if supported.
-
clone
Description copied from class:AbstractGomFormElementCreates a clone of this form element.- Specified by:
clonein interfaceCloneable<GomFormElement>- Specified by:
clonein interfaceGomEntryProvider- Overrides:
clonein classAbstractGomFormElement- Returns:
- A clone.
-
sortOrder
Convenience method forgetSortOrder()returning a non-null value- Returns:
- the sort order or
SortOrder.KEEP_ORDERif not available - Since:
- 4.0
-