com.netgrif.application.engine.petrinet.domain.dataset.MultichoiceMapField.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.petrinet.domain.dataset
import com.netgrif.application.engine.petrinet.domain.I18nString
import org.springframework.data.mongodb.core.mapping.Document
@Document
class MultichoiceMapField extends MapOptionsField> {
MultichoiceMapField() {
super()
this.defaultValue = new LinkedHashSet<>()
}
MultichoiceMapField(Map choices) {
super(choices)
this.defaultValue = new LinkedHashSet<>()
}
MultichoiceMapField(Map choices, LinkedHashSet defaultValues) {
this(choices)
this.defaultValue = defaultValues
}
@Override
FieldType getType() {
return FieldType.MULTICHOICE_MAP
}
@Override
Map getOptions() {
return super.getOptions()
}
@Override
void setOptions(Map options) {
super.setOptions(options)
}
@Override
LinkedHashSet getDefaultValue() {
return super.getDefaultValue() as Set
}
@Override
void setDefaultValue(LinkedHashSet defaultValue) {
super.setDefaultValue(defaultValue)
}
@Override
Field clone() {
MultichoiceMapField clone = new MultichoiceMapField()
super.clone(clone)
clone.options = options
clone.optionsExpression = optionsExpression
return clone
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy