Class ChoiceField<T>
- java.lang.Object
-
- com.netgrif.application.engine.petrinet.domain.Imported
-
- com.netgrif.application.engine.petrinet.domain.dataset.Field<T>
-
- com.netgrif.application.engine.petrinet.domain.dataset.ChoiceField<T>
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
,java.io.Serializable
- Direct Known Subclasses:
EnumerationField
,MultichoiceField
public abstract class ChoiceField<T> extends Field<T> implements groovy.lang.GroovyObject
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<I18nString>
choices
protected Expression
choicesExpression
-
Fields inherited from class com.netgrif.application.engine.petrinet.domain.dataset.Field
_id, defaultValue, initExpression, parentCaseId, parentTaskId, validations
-
-
Constructor Summary
Constructors Constructor Description ChoiceField()
ChoiceField(Expression expression)
ChoiceField(java.util.List<I18nString> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<I18nString>
getChoices()
Expression
getExpression()
boolean
isDynamic()
void
setChoices(java.util.Set<I18nString> choices)
void
setChoicesFromStrings(java.util.Collection<java.lang.String> choices)
void
setExpression(Expression expression)
void
setMetaClass(groovy.lang.MetaClass mc)
-
Methods inherited from class com.netgrif.application.engine.petrinet.domain.dataset.Field
addAction, addActions, addValidation, clearValue, clone, clone, get_id, getBehavior, getComponent, getDefaultValue, getDescription, getEncryption, getEvents, getFormat, getInitExpression, getLayout, getLength, getMetaClass, getName, getOrder, getParentCaseId, getParentTaskId, getPlaceholder, getStringId, getTranslatedDescription, getTranslatedName, getTranslatedPlaceholder, getType, getValidations, getValue, hasDefault, isDynamicDefaultValue, isImmediate, minus, multiply, plus, set_id, setBehavior, setComponent, setDefaultValue, setDescription, setEncryption, setEvents, setFormat, setImmediate, setImportId, setInitExpression, setLayout, setLength, setName, setOrder, setParentCaseId, setParentTaskId, setPlaceholder, setValidations, setValue, toString
-
Methods inherited from class com.netgrif.application.engine.petrinet.domain.Imported
getImportId, setImportId
-
-
-
-
Field Detail
-
choices
protected java.util.Set<I18nString> choices
-
choicesExpression
protected Expression choicesExpression
-
-
Constructor Detail
-
ChoiceField
public ChoiceField()
-
ChoiceField
public ChoiceField(java.util.List<I18nString> values)
-
ChoiceField
public ChoiceField(Expression expression)
-
-
Method Detail
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
- Overrides:
setMetaClass
in classField<T>
-
getChoices
public java.util.Set<I18nString> getChoices()
-
setChoices
public void setChoices(java.util.Set<I18nString> choices)
-
getExpression
public Expression getExpression()
-
setExpression
public void setExpression(Expression expression)
-
setChoicesFromStrings
public void setChoicesFromStrings(java.util.Collection<java.lang.String> choices)
-
isDynamic
public boolean isDynamic()
-
-