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
public static class ModelFormField.DropDownField extends ModelFormField.FieldInfoWithOptions
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, module, PASSWORD, RADIO, RANGEQBE, RESET, SCREEN, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
-
-
Constructor Summary
Constructors Constructor Description DropDownField(int fieldSource, java.util.List<ModelFormField.OptionSource> optionSources)
DropDownField(int fieldSource, ModelFormField modelFormField)
DropDownField(ModelFormField modelFormField)
DropDownField(org.w3c.dom.Element element, ModelFormField modelFormField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelFieldVisitor visitor)
FieldInfo
copy(ModelFormField modelFormField)
Returns a new instance of this object.boolean
getAllowEmpty()
boolean
getAllowMulti()
boolean
getAllowMultiple()
ModelFormField.AutoComplete
getAutoComplete()
java.lang.String
getCurrent()
FlexibleStringExpander
getCurrentDescription()
java.lang.String
getCurrentDescription(java.util.Map<java.lang.String,java.lang.Object> context)
int
getOtherFieldSize()
java.lang.String
getParameterNameOther(java.util.Map<java.lang.String,java.lang.Object> context)
Get the name to use for the parameter for this field in the form interpreter.java.lang.String
getSize()
ModelFormField.SubHyperlink
getSubHyperlink()
java.lang.String
getTextSize()
void
renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer)
-
Methods inherited from class org.apache.ofbiz.widget.model.ModelFormField.FieldInfoWithOptions
getAllOptionValues, getDescriptionForOptionKey, getNoCurrentSelectedKey, getNoCurrentSelectedKey, getOptionSources
-
Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, toString
-
-
-
-
Constructor Detail
-
DropDownField
public DropDownField(org.w3c.dom.Element element, ModelFormField modelFormField)
-
DropDownField
public DropDownField(int fieldSource, java.util.List<ModelFormField.OptionSource> optionSources)
-
DropDownField
public DropDownField(int fieldSource, ModelFormField modelFormField)
-
DropDownField
public DropDownField(ModelFormField modelFormField)
-
-
Method Detail
-
accept
public void accept(ModelFieldVisitor visitor) throws java.lang.Exception
-
copy
public FieldInfo copy(ModelFormField modelFormField)
Description copied from class:FieldInfo
Returns a new instance of this object.
-
getAllowMulti
public boolean getAllowMulti()
-
getAutoComplete
public ModelFormField.AutoComplete getAutoComplete()
-
getCurrent
public java.lang.String getCurrent()
-
getCurrentDescription
public FlexibleStringExpander getCurrentDescription()
-
getCurrentDescription
public java.lang.String getCurrentDescription(java.util.Map<java.lang.String,java.lang.Object> context)
-
getOtherFieldSize
public int getOtherFieldSize()
-
getParameterNameOther
public java.lang.String getParameterNameOther(java.util.Map<java.lang.String,java.lang.Object> context)
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
public java.lang.String getSize()
-
getSubHyperlink
public ModelFormField.SubHyperlink getSubHyperlink()
-
getTextSize
public java.lang.String getTextSize()
-
getAllowEmpty
public boolean getAllowEmpty()
-
getAllowMultiple
public boolean getAllowMultiple()
-
renderFieldString
public void renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer) throws java.io.IOException
- Specified by:
renderFieldString
in classFieldInfo
- Throws:
java.io.IOException
-
-