Package org.apache.ofbiz.widget.model
Class ModelFormField.FieldInfoWithOptions
java.lang.Object
org.apache.ofbiz.widget.model.FieldInfo
org.apache.ofbiz.widget.model.ModelFormField.FieldInfoWithOptions
- Direct Known Subclasses:
ModelFormField.CheckField
,ModelFormField.DropDownField
,ModelFormField.RadioField
- Enclosing class:
- ModelFormField
-
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
ModifierConstructorDescriptionprotected
FieldInfoWithOptions
(int fieldSource, int fieldType, List<ModelFormField.OptionSource> optionSources) FieldInfoWithOptions
(int fieldSource, int fieldType, ModelFormField modelFormField) protected
FieldInfoWithOptions
(ModelFormField.FieldInfoWithOptions original, ModelFormField modelFormField) FieldInfoWithOptions
(Element element, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptiongetAllOptionValues
(Map<String, Object> context, Delegator delegator) Gets all option values.static String
getDescriptionForOptionKey
(String key, List<ModelFormField.OptionValue> allOptionValues) Gets no current selected key.getNoCurrentSelectedKey
(Map<String, Object> context) Gets no current selected key.Gets option sources.Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
accept, copy, findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, renderFieldString, toString
-
Constructor Details
-
FieldInfoWithOptions
-
FieldInfoWithOptions
protected FieldInfoWithOptions(ModelFormField.FieldInfoWithOptions original, ModelFormField modelFormField) -
FieldInfoWithOptions
protected FieldInfoWithOptions(int fieldSource, int fieldType, List<ModelFormField.OptionSource> optionSources) -
FieldInfoWithOptions
-
-
Method Details
-
getDescriptionForOptionKey
public static String getDescriptionForOptionKey(String key, List<ModelFormField.OptionValue> allOptionValues) -
getAllOptionValues
public List<ModelFormField.OptionValue> getAllOptionValues(Map<String, Object> context, Delegator delegator) Gets all option values.- Parameters:
context
- the contextdelegator
- the delegator- Returns:
- the all option values
-
getNoCurrentSelectedKey
Gets no current selected key.- Returns:
- the no current selected key
-
getNoCurrentSelectedKey
Gets no current selected key.- Parameters:
context
- the context- Returns:
- the no current selected key
-
getOptionSources
Gets option sources.- Returns:
- the option sources
-