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
public static class ModelFormField.TextField extends FieldInfo
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, module, PASSWORD, RADIO, RANGEQBE, RESET, SCREEN, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TextField(int fieldSource, int size, java.lang.Integer maxlength, ModelFormField modelFormField)
protected
TextField(int fieldSource, int size, java.lang.Integer maxlength, ModelFormField modelFormField, int fieldType)
TextField(int fieldSource, ModelFormField modelFormField)
TextField(ModelFormField modelFormField)
protected
TextField(ModelFormField.TextField original, ModelFormField modelFormField)
TextField(org.w3c.dom.Element element, ModelFormField modelFormField)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ModelFieldVisitor visitor)
FieldInfo
copy(ModelFormField modelFormField)
Returns a new instance of this object.boolean
getClientAutocompleteField()
FlexibleStringExpander
getDefaultValue()
java.lang.String
getDefaultValue(java.util.Map<java.lang.String,java.lang.Object> context)
boolean
getDisabled()
java.lang.String
getMask()
java.lang.Integer
getMaxlength()
FlexibleStringExpander
getPlaceholder()
java.lang.String
getPlaceholder(java.util.Map<java.lang.String,java.lang.Object> context)
boolean
getReadonly()
int
getSize()
ModelFormField.SubHyperlink
getSubHyperlink()
void
renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer)
-
Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, toString
-
-
-
-
Constructor Detail
-
TextField
public TextField(org.w3c.dom.Element element, ModelFormField modelFormField)
-
TextField
protected TextField(int fieldSource, int size, java.lang.Integer maxlength, ModelFormField modelFormField, int fieldType)
-
TextField
protected TextField(int fieldSource, int size, java.lang.Integer maxlength, ModelFormField modelFormField)
-
TextField
public TextField(int fieldSource, ModelFormField modelFormField)
-
TextField
public TextField(ModelFormField modelFormField)
-
TextField
protected TextField(ModelFormField.TextField original, ModelFormField modelFormField)
-
-
Method Detail
-
accept
public void accept(ModelFieldVisitor visitor) throws java.lang.Exception
-
copy
public FieldInfo copy(ModelFormField modelFormField)
Description copied from class:FieldInfo
Returns a new instance of this object.
-
getClientAutocompleteField
public boolean getClientAutocompleteField()
-
getDefaultValue
public FlexibleStringExpander getDefaultValue()
-
getDefaultValue
public java.lang.String getDefaultValue(java.util.Map<java.lang.String,java.lang.Object> context)
-
getDisabled
public boolean getDisabled()
-
getMask
public java.lang.String getMask()
-
getMaxlength
public java.lang.Integer getMaxlength()
-
getPlaceholder
public FlexibleStringExpander getPlaceholder()
-
getPlaceholder
public java.lang.String getPlaceholder(java.util.Map<java.lang.String,java.lang.Object> context)
-
getReadonly
public boolean getReadonly()
-
getSize
public int getSize()
-
getSubHyperlink
public ModelFormField.SubHyperlink getSubHyperlink()
-
renderFieldString
public void renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer) throws java.io.IOException
- Specified by:
renderFieldString
in classFieldInfo
- Throws:
java.io.IOException
-
-