Class GomReference
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.GomReference
- All Implemented Interfaces:
GomCheckable
,GomElement
,GomFormElement
,GomHideable
,GomLangInfoProvider
,GomProjectProvider
,GomSearchRelevancy
,GomTransferHandling
,GomTransferReceiver
,LineBreakable
,Serializable
@NonExtendable
public class GomReference
extends AbstractGomFormElement
implements GomProjectProvider, GomTransferReceiver, GomTransferHandling
Generic editor for references based on Uid and UidType
- Since:
- 4.2.9
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.since 5.0 - no replacementboolean
Convenience API forgetUpload()
returning a boolean valuefilter()
Project filters for allowed reference types available for selection (selection dialog)Deprecated.since 5.0 - no replacementprotected String
Return the default tag for a gom element.@NotNull GomFilterList
Project filters for allowed reference types available for selection (selection dialog)Indicates if a thumbnail is shown@NotNull GomStorableProjectList
Projects to be used as sourcesProject filters for allowed reference types available for selection (selection dialog)Returns aTransferConstraint
object for this element, which describes the store element based transfer restrictions.List<TransferType<?>>
getTransferTypes
(SpecialistsBroker broker) Returns a list of supportedTransferType
's, ornull
if transfer is not supported.Indicates if uploading of data is allowedGet the list of defined constraints.@NotNull SectionMode
sections()
Convenience API forgetAllowLanguageDependentUpload()
returning a non-null valuevoid
setAllowLanguageDependentUpload
(YesNo allowLanguageDependentUpload) Deprecated.since 5.0 - no replacementvoid
setImagePreview
(YesNo imagePreview) Indicates if a thumbnail is shownvoid
setSections
(SectionMode sections) Set project filters for allowed reference types available for selection (selection dialog)void
Sets if uploading of data is allowedboolean
Convenience API forgetImagePreview()
returning a boolean 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, clone, 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
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
-
Field Details
-
TAG
The tag of this component- Since:
- 4.2.9
- See Also:
-
-
Constructor Details
-
GomReference
public GomReference()
-
-
Method Details
-
getDefaultTag
Description copied from class:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in classAbstractGomElement
- Returns:
- The elements default tag.
-
getImagePreview
Indicates if a thumbnail is shown- Since:
- 4.2.9
-
setImagePreview
Indicates if a thumbnail is shown- Since:
- 4.2.9
-
getUpload
Indicates if uploading of data is allowed- Since:
- 4.2.9
-
setUpload
Sets if uploading of data is allowed- Since:
- 4.2.9
-
getAllowLanguageDependentUpload
Deprecated.since 5.0 - no replacementIndicates if uploading language-dependent media is allowed- Since:
- 4.2.9
-
setAllowLanguageDependentUpload
@Deprecated(since="5.0") public void setAllowLanguageDependentUpload(YesNo allowLanguageDependentUpload) Deprecated.since 5.0 - no replacementSets if uploading language-dependent media is allowed- Since:
- 4.2.9
-
getProjects
Description copied from interface:GomProjectProvider
Projects to be used as sources- Specified by:
getProjects
in interfaceGomProjectProvider
-
getFilter
Project filters for allowed reference types available for selection (selection dialog)- Since:
- 4.2.9
-
getSections
Project filters for allowed reference types available for selection (selection dialog)- Since:
- 4.2.106
-
setSections
Set project filters for allowed reference types available for selection (selection dialog)- Since:
- 4.2.106
-
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.
-
getTransferConstraints
Description copied from interface:GomTransferReceiver
Returns aTransferConstraint
object for this element, which describes the store element based transfer restrictions.- Specified by:
getTransferConstraints
in interfaceGomTransferReceiver
- Parameters:
broker
- Broker for requesting services or providers.- Returns:
- transfer constraint
-
getTransferTypes
Description copied from interface:GomTransferHandling
Returns a list of supportedTransferType
's, ornull
if transfer is not supported.- Specified by:
getTransferTypes
in interfaceGomTransferHandling
- Parameters:
broker
- Broker for requesting services or providers.- Returns:
- supported transfer types, or
null
.
-
showsThumbnail
public boolean showsThumbnail()Convenience API forgetImagePreview()
returning a boolean value- Since:
- 4.2.9
-
allowsUpload
public boolean allowsUpload()Convenience API forgetUpload()
returning a boolean value- Since:
- 4.2.9
-
allowsLanguageDependentUpload
Deprecated.since 5.0 - no replacementConvenience API forgetAllowLanguageDependentUpload()
returning a boolean value- Since:
- 4.2.9
-
sections
Convenience API forgetAllowLanguageDependentUpload()
returning a non-null value- Returns:
- the value of
getSections()
orSectionMode.YES
if unset - Since:
- 4.2.106
-
filter
Project filters for allowed reference types available for selection (selection dialog)- Since:
- 4.2.106
-
projectConstraints
Description copied from interface:GomProjectProvider
Get the list of defined constraints.- Specified by:
projectConstraints
in interfaceGomProjectProvider
- Returns:
- The list of project constraints.
-