Package org.apache.ofbiz.widget.model
Class ModelFormField.DisplayField
java.lang.Object
org.apache.ofbiz.widget.model.FieldInfo
org.apache.ofbiz.widget.model.ModelFormField.DisplayField
- Direct Known Subclasses:
ModelFormField.DisplayEntityField
- Enclosing class:
- ModelFormField
Models the <display> 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
ModifierConstructorDescriptionDisplayField
(int fieldSource, int fieldType, ModelFormField modelFormField) DisplayField
(int fieldSource, ModelFormField modelFormField) DisplayField
(ModelFormField modelFormField) protected
DisplayField
(ModelFormField.DisplayField original, ModelFormField modelFormField) DisplayField
(Element element, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelFieldVisitor visitor) copy
(ModelFormField modelFormField) Returns a new instance of this object.boolean
Gets also hidden.Gets currency.getDate()
Gets date.Gets default value.getDefaultValue
(Map<String, Object> context) Gets default value.Gets description.getDescription
(Map<String, Object> context) Gets description.Gets image location.getImageLocation
(Map<String, Object> context) Gets image location.Gets in place editor.getSize()
Gets size.getType()
Gets type.void
renderFieldString
(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, toString
-
Constructor Details
-
DisplayField
-
DisplayField
-
DisplayField
-
DisplayField
-
DisplayField
-
-
Method Details
-
accept
-
copy
Description copied from class:FieldInfo
Returns a new instance of this object. -
getAlsoHidden
public boolean getAlsoHidden()Gets also hidden.- Returns:
- the also hidden
-
getCurrency
Gets currency.- Returns:
- the currency
-
getDate
Gets date.- Returns:
- the date
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
getDefaultValue
Gets default value.- Parameters:
context
- the context- Returns:
- the default value
-
getDescription
Gets description.- Returns:
- the description
-
getDescription
Gets description.- Parameters:
context
- the context- Returns:
- the description
-
getImageLocation
Gets image location.- Returns:
- the image location
-
getImageLocation
Gets image location.- Parameters:
context
- the context- Returns:
- the image location
-
getInPlaceEditor
Gets in place editor.- Returns:
- the in place editor
-
getSize
Gets size.- Returns:
- the size
-
getType
Gets type.- Returns:
- the type
-
renderFieldString
public void renderFieldString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) throws IOException- Specified by:
renderFieldString
in classFieldInfo
- Throws:
IOException
-