Class MetaData.OptionsValue
java.lang.Object
se.conciliate.extensions.documents.MetaData<Collection<String>>
se.conciliate.extensions.documents.MetaData.OptionsValue
Represents a value chosen from a set list of values. The meta data type is a
MetaDataType.OptionsMetaDataType
and the data will be presented as a drop down box or a table depending on the input descriptor's
InputDescriptor.OptionsDescriptor.isSingleSelection()
.-
Nested Class Summary
Nested classes/interfaces inherited from class se.conciliate.extensions.documents.MetaData
MetaData.BooleanValue, MetaData.DateTimeValue, MetaData.HiddenValue, MetaData.HtmlValue, MetaData.ImageValue, MetaData.MTSymbolValue, MetaData.NumberValue, MetaData.OptionsValue, MetaData.TextValue, MetaData.UrlValue
-
Constructor Summary
ConstructorsConstructorDescriptionOptionsValue
(MetaDataType.OptionsMetaDataType type, Collection<String> selected) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
setData
(Collection<String> selected) Returns a string representation of the data.
-
Constructor Details
-
OptionsValue
-
-
Method Details
-
defaultDescriptor
public static InputDescriptor.OptionsDescriptor defaultDescriptor(MetaDataType.OptionsMetaDataType type) -
setData
- Specified by:
setData
in classMetaData<Collection<String>>
- Parameters:
selected
- A new value.- Returns:
- A copy of this meta-data with the given value as the meta-data's data.
-
stringPresentation
Description copied from class:MetaData
Returns a string representation of the data. This will be shown for example in document lists.- Overrides:
stringPresentation
in classMetaData<Collection<String>>
- Returns:
- a string representation of the data.
-
getType
- Specified by:
getType
in classMetaData<Collection<String>>
- Returns:
- the type of the data.
-