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:
setDatain 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:MetaDataReturns a string representation of the data. This will be shown for example in document lists.- Overrides:
stringPresentationin classMetaData<Collection<String>>- Returns:
- a string representation of the data.
-
getType
- Specified by:
getTypein classMetaData<Collection<String>>- Returns:
- the type of the data.
-