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 TypeMethodDescriptionboolean
Indicates 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 displayedvoid
setSortOrder
(SortOrder sortOrder) Sets the order in which display options are displayed@NotNull SortOrder
Convenience method forgetSortOrder()
returning a non-null valuevoid
validate
(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, verify
Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getDefaultTag, getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:GomEntryProvider
Get a GOM list element that provides labeled entries.- Specified by:
getEntries
in interfaceGomEntryProvider
- Returns:
- The entries container.
-
validate
Description copied from class:AbstractGomFormElement
Validates the form element's state with respect to the given context. This generic stub does not check anything.- Specified by:
validate
in interfaceGomCheckable
- Overrides:
validate
in classAbstractGomFormElement
- Parameters:
context
- The context to validate for, must not benull
.- Throws:
GomValidationError
- if any requirement is violated.
-
getOptionFactory
Description copied from interface:OptionFactoryProvider
Get an option factory.- Specified by:
getOptionFactory
in interfaceOptionFactoryProvider
- Returns:
- The factory.
-
allowsRelations
public boolean allowsRelations()Description copied from interface:RelationEnabling
Indicates whether foreign key relationships are supported as value source.- Specified by:
allowsRelations
in interfaceRelationEnabling
- Returns:
true
, if supported.
-
clone
Description copied from class:AbstractGomFormElement
Creates a clone of this form element.- Specified by:
clone
in interfaceCloneable<GomFormElement>
- Specified by:
clone
in interfaceGomEntryProvider
- Overrides:
clone
in classAbstractGomFormElement
- Returns:
- A clone.
-
sortOrder
Convenience method forgetSortOrder()
returning a non-null value- Returns:
- the sort order or
SortOrder.KEEP_ORDER
if not available - Since:
- 4.0
-