Package org.apache.ofbiz.widget.model
Class ModelFormField.SingleOption
java.lang.Object
org.apache.ofbiz.widget.model.ModelFormField.OptionSource
org.apache.ofbiz.widget.model.ModelFormField.SingleOption
- Enclosing class:
- ModelFormField
Models the <option> element.
- See Also:
-
widget-form.xsd
-
Constructor Summary
ConstructorDescriptionSingleOption
(String key, String description, ModelFormField modelFormField) SingleOption
(Element optionElement, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addOptionValues
(List<ModelFormField.OptionValue> optionValues, Map<String, Object> context, Delegator delegator) copy
(ModelFormField modelFormField) Gets description.getKey()
Gets key.Methods inherited from class org.apache.ofbiz.widget.model.ModelFormField.OptionSource
getModelFormField
-
Constructor Details
-
SingleOption
-
SingleOption
-
-
Method Details
-
addOptionValues
public void addOptionValues(List<ModelFormField.OptionValue> optionValues, Map<String, Object> context, Delegator delegator) - Specified by:
addOptionValues
in classModelFormField.OptionSource
-
copy
- Specified by:
copy
in classModelFormField.OptionSource
-
getDescription
Gets description.- Returns:
- the description
-
getKey
Gets key.- Returns:
- the key
-