Package org.apache.ofbiz.widget.model
Class ModelFormField.TextareaField
java.lang.Object
org.apache.ofbiz.widget.model.FieldInfo
org.apache.ofbiz.widget.model.ModelFormField.TextareaField
- Enclosing class:
- ModelFormField
Models the <textarea> 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
ConstructorDescriptionTextareaField
(int fieldSource, ModelFormField modelFormField) TextareaField
(ModelFormField modelFormField) TextareaField
(Element element, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelFieldVisitor visitor) copy
(ModelFormField modelFormField) Returns a new instance of this object.int
getCols()
Gets cols.Gets default value.getDefaultValue
(Map<String, Object> context) Gets default value.Gets maxlength.Returns the placeholdergetPlaceholder
(Map<String, Object> context) Returns the placeholderint
getRows()
Gets rows.Gets visual editor buttons.getVisualEditorButtons
(Map<String, Object> context) Gets visual editor buttons.boolean
Gets visual editor enable.boolean
Is read only boolean.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
-
TextareaField
-
TextareaField
-
TextareaField
-
-
Method Details
-
accept
-
copy
Description copied from class:FieldInfo
Returns a new instance of this object. -
getCols
public int getCols()Gets cols.- Returns:
- the cols
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
getDefaultValue
Gets default value.- Parameters:
context
- the context- Returns:
- the default value
-
getRows
public int getRows()Gets rows.- Returns:
- the rows
-
getMaxlength
Gets maxlength.- Returns:
- the maxlength
-
getVisualEditorButtons
Gets visual editor buttons.- Returns:
- the visual editor buttons
-
getVisualEditorButtons
Gets visual editor buttons.- Parameters:
context
- the context- Returns:
- the visual editor buttons
-
getVisualEditorEnable
public boolean getVisualEditorEnable()Gets visual editor enable.- Returns:
- the visual editor enable
-
isReadOnly
public boolean isReadOnly()Is read only boolean.- Returns:
- the boolean
-
getPlaceholder
Returns the placeholder- Returns:
- the placeholder
-
getPlaceholder
Returns the placeholder- Returns:
- the placeholder
-
renderFieldString
public void renderFieldString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) throws IOException- Specified by:
renderFieldString
in classFieldInfo
- Throws:
IOException
-