Package org.apache.ofbiz.widget.model
Class ModelFormField.TextField
java.lang.Object
org.apache.ofbiz.widget.model.FieldInfo
org.apache.ofbiz.widget.model.ModelFormField.TextField
- Direct Known Subclasses:
ModelFormField.FileField
,ModelFormField.LookupField
,ModelFormField.PasswordField
,ModelFormField.RangeFindField
,ModelFormField.TextFindField
- Enclosing class:
- ModelFormField
Models the <text> 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
ModifierConstructorDescriptionprotected
TextField
(int fieldSource, int size, Integer maxlength, String type, ModelFormField modelFormField) protected
TextField
(int fieldSource, int size, Integer maxlength, ModelFormField modelFormField, int fieldType) TextField
(int fieldSource, ModelFormField modelFormField) TextField
(ModelFormField modelFormField) protected
TextField
(ModelFormField.TextField original, ModelFormField modelFormField) TextField
(Element element, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelFieldVisitor visitor) copy
(ModelFormField modelFormField) Returns a new instance of this object.boolean
Gets client autocomplete field.Gets default value.getDefaultValue
(Map<String, Object> context) Gets default value.getMask()
Gets mask.Gets maxlength.Gets pattern.Gets placeholder.getPlaceholder
(Map<String, Object> context) Gets placeholder.boolean
Gets readonly.int
getSize()
Gets size.Gets sub hyperlink.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
-
TextField
-
TextField
protected TextField(int fieldSource, int size, Integer maxlength, ModelFormField modelFormField, int fieldType) -
TextField
protected TextField(int fieldSource, int size, Integer maxlength, String type, ModelFormField modelFormField) -
TextField
-
TextField
-
TextField
-
-
Method Details
-
accept
-
copy
Description copied from class:FieldInfo
Returns a new instance of this object. -
getClientAutocompleteField
public boolean getClientAutocompleteField()Gets client autocomplete field.- Returns:
- the client autocomplete field
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
getDefaultValue
Gets default value.- Parameters:
context
- the context- Returns:
- the default value
-
getMask
Gets mask.- Returns:
- the mask
-
getMaxlength
Gets maxlength.- Returns:
- the maxlength
-
getPlaceholder
Gets placeholder.- Returns:
- the placeholder
-
getPlaceholder
Gets placeholder.- Parameters:
context
- the context- Returns:
- the placeholder
-
getReadonly
public boolean getReadonly()Gets readonly.- Returns:
- the readonly
-
getSize
public int getSize()Gets size.- Returns:
- the size
-
getSubHyperlink
Gets sub hyperlink.- Returns:
- the sub hyperlink
-
renderFieldString
public void renderFieldString(Appendable writer, Map<String, Object> context, FormStringRenderer formStringRenderer) throws IOException- Specified by:
renderFieldString
in classFieldInfo
- Throws:
IOException
-
getType
Gets type.- Returns:
- the type
-
getPattern
Gets pattern.- Returns:
- the pattern
-