Package org.apache.ofbiz.widget.model
Class ModelFormField.DropDownField
java.lang.Object
org.apache.ofbiz.widget.model.FieldInfo
org.apache.ofbiz.widget.model.ModelFormField.FieldInfoWithOptions
org.apache.ofbiz.widget.model.ModelFormField.DropDownField
- Enclosing class:
- ModelFormField
Models the <drop-down> element.
- See Also:
-
widget-form.xsd
-
Field Summary
Fields inherited from class org.apache.ofbiz.widget.model.FieldInfo
CHECK, CONTAINER, DATE_TIME, DATEQBE, DISPLAY, DISPLAY_ENTITY, DROP_DOWN, FILE, FORM, GRID, HIDDEN, HYPERLINK, IGNORED, IMAGE, LOOKUP, MENU, PASSWORD, RADIO, RANGEQBE, RESET, SCREEN, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
-
Constructor Summary
ConstructorDescriptionDropDownField
(int fieldSource, List<ModelFormField.OptionSource> optionSources) DropDownField
(int fieldSource, ModelFormField modelFormField) DropDownField
(ModelFormField modelFormField) DropDownField
(Element element, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelFieldVisitor visitor) copy
(ModelFormField modelFormField) Returns a new instance of this object.boolean
Gets allow empty.boolean
Gets allow multi.boolean
Gets allow multiple.Gets auto complete.Gets current.Gets current description.getCurrentDescription
(Map<String, Object> context) Gets current description.int
Gets other field size.getParameterNameOther
(Map<String, Object> context) Get the name to use for the parameter for this field in the form interpreter.getSize()
Gets size.Gets sub hyperlink.Gets text size.void
renderFieldString
(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) Methods inherited from class org.apache.ofbiz.widget.model.ModelFormField.FieldInfoWithOptions
getAllOptionValues, getDescriptionForOptionKey, getGroupOptions, getNoCurrentSelectedKey, getNoCurrentSelectedKey, getOptionSources
Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, toString
-
Constructor Details
-
DropDownField
-
DropDownField
-
DropDownField
-
DropDownField
-
-
Method Details
-
accept
-
copy
Description copied from class:FieldInfo
Returns a new instance of this object. -
getAllowMulti
public boolean getAllowMulti()Gets allow multi.- Returns:
- the allow multi
-
getAutoComplete
Gets auto complete.- Returns:
- the auto complete
-
getCurrent
Gets current.- Returns:
- the current
-
getCurrentDescription
Gets current description.- Returns:
- the current description
-
getCurrentDescription
Gets current description.- Parameters:
context
- the context- Returns:
- the current description
-
getOtherFieldSize
public int getOtherFieldSize()Gets other field size.- Returns:
- the other field size
-
getParameterNameOther
Get the name to use for the parameter for this field in the form interpreter. For HTML forms this is the request parameter name.- Parameters:
context
- the context- Returns:
- returns the name to use for the parameter for this field in the form interpreter.
-
getSize
Gets size.- Returns:
- the size
-
getSubHyperlink
Gets sub hyperlink.- Returns:
- the sub hyperlink
-
getTextSize
Gets text size.- Returns:
- the text size
-
getAllowEmpty
public boolean getAllowEmpty()Gets allow empty.- Returns:
- the allow empty
-
getAllowMultiple
public boolean getAllowMultiple()Gets allow multiple.- Returns:
- the allow multiple
-
renderFieldString
public void renderFieldString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) throws IOException- Specified by:
renderFieldString
in classFieldInfo
- Throws:
IOException
-