org.ofbiz.widget.form
Class ModelFormField.FieldInfoWithOptions

java.lang.Object
  extended by org.ofbiz.widget.form.ModelFormField.FieldInfo
      extended by org.ofbiz.widget.form.ModelFormField.FieldInfoWithOptions
Direct Known Subclasses:
ModelFormField.CheckField, ModelFormField.DropDownField, ModelFormField.RadioField
Enclosing class:
ModelFormField

public abstract static class ModelFormField.FieldInfoWithOptions
extends ModelFormField.FieldInfo


Field Summary
protected  FlexibleStringExpander noCurrentSelectedKey
           
protected  java.util.List<ModelFormField.OptionSource> optionSources
           
 
Fields inherited from class org.ofbiz.widget.form.ModelFormField.FieldInfo
CHECK, DATE_TIME, DATEQBE, DISPLAY, DISPLAY_ENTITY, DROP_DOWN, fieldSource, fieldType, fieldTypeByName, FILE, HIDDEN, HYPERLINK, IGNORED, IMAGE, LOOKUP, modelFormField, PASSWORD, RADIO, RANGEQBE, RESET, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
 
Constructor Summary
protected ModelFormField.FieldInfoWithOptions()
           
  ModelFormField.FieldInfoWithOptions(org.w3c.dom.Element element, ModelFormField modelFormField)
           
  ModelFormField.FieldInfoWithOptions(int fieldSource, int fieldType, ModelFormField modelFormField)
           
 
Method Summary
 void addOptionSource(ModelFormField.OptionSource optionSource)
           
 java.util.List<ModelFormField.OptionValue> getAllOptionValues(java.util.Map<java.lang.String,java.lang.Object> context, GenericDelegator delegator)
           
static java.lang.String getDescriptionForOptionKey(java.lang.String key, java.util.List<ModelFormField.OptionValue> allOptionValues)
           
 java.lang.String getNoCurrentSelectedKey(java.util.Map<java.lang.String,java.lang.Object> context)
           
 void setNoCurrentSelectedKey(java.lang.String string)
           
 
Methods inherited from class org.ofbiz.widget.form.ModelFormField.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, renderFieldString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noCurrentSelectedKey

protected FlexibleStringExpander noCurrentSelectedKey

optionSources

protected java.util.List<ModelFormField.OptionSource> optionSources
Constructor Detail

ModelFormField.FieldInfoWithOptions

protected ModelFormField.FieldInfoWithOptions()

ModelFormField.FieldInfoWithOptions

public ModelFormField.FieldInfoWithOptions(int fieldSource,
                                           int fieldType,
                                           ModelFormField modelFormField)

ModelFormField.FieldInfoWithOptions

public ModelFormField.FieldInfoWithOptions(org.w3c.dom.Element element,
                                           ModelFormField modelFormField)
Method Detail

getAllOptionValues

public java.util.List<ModelFormField.OptionValue> getAllOptionValues(java.util.Map<java.lang.String,java.lang.Object> context,
                                                                     GenericDelegator delegator)

getDescriptionForOptionKey

public static java.lang.String getDescriptionForOptionKey(java.lang.String key,
                                                          java.util.List<ModelFormField.OptionValue> allOptionValues)

getNoCurrentSelectedKey

public java.lang.String getNoCurrentSelectedKey(java.util.Map<java.lang.String,java.lang.Object> context)

setNoCurrentSelectedKey

public void setNoCurrentSelectedKey(java.lang.String string)

addOptionSource

public void addOptionSource(ModelFormField.OptionSource optionSource)