org.ofbiz.widget.form
Class ModelFormField.TextField

java.lang.Object
  extended by org.ofbiz.widget.form.ModelFormField.FieldInfo
      extended by org.ofbiz.widget.form.ModelFormField.TextField
Direct Known Subclasses:
ModelFormField.FileField, ModelFormField.LookupField, ModelFormField.PasswordField, ModelFormField.RangeFindField, ModelFormField.TextFindField
Enclosing class:
ModelFormField

public static class ModelFormField.TextField
extends ModelFormField.FieldInfo


Field Summary
protected  boolean clientAutocompleteField
           
protected  FlexibleStringExpander defaultValue
           
protected  boolean disabled
           
protected  java.lang.Integer maxlength
           
protected  int size
           
protected  ModelFormField.SubHyperlink subHyperlink
           
 
Fields inherited from class org.ofbiz.widget.form.ModelFormField.FieldInfo
CHECK, DATE_TIME, DATEQBE, DISPLAY, DISPLAY_ENTITY, DROP_DOWN, fieldSource, fieldType, fieldTypeByName, FILE, HIDDEN, HYPERLINK, IGNORED, IMAGE, LOOKUP, modelFormField, PASSWORD, RADIO, RANGEQBE, RESET, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
 
Constructor Summary
protected ModelFormField.TextField()
           
  ModelFormField.TextField(org.w3c.dom.Element element, ModelFormField modelFormField)
           
  ModelFormField.TextField(int fieldSource, ModelFormField modelFormField)
           
  ModelFormField.TextField(ModelFormField modelFormField)
           
 
Method Summary
 boolean getClientAutocompleteField()
           
 java.lang.String getDefaultValue(java.util.Map<java.lang.String,java.lang.Object> context)
           
 boolean getDisabled()
           
 java.lang.Integer getMaxlength()
           
 int getSize()
           
 ModelFormField.SubHyperlink getSubHyperlink()
           
 void renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer)
           
 void setClientAutocompleteField(boolean b)
           
 void setDefaultValue(java.lang.String str)
           
 void setDisabled(boolean b)
           
 void setMaxlength(java.lang.Integer integer)
           
 void setSize(int i)
           
 void setSubHyperlink(ModelFormField.SubHyperlink newSubHyperlink)
           
 
Methods inherited from class org.ofbiz.widget.form.ModelFormField.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size

maxlength

protected java.lang.Integer maxlength

defaultValue

protected FlexibleStringExpander defaultValue

subHyperlink

protected ModelFormField.SubHyperlink subHyperlink

disabled

protected boolean disabled

clientAutocompleteField

protected boolean clientAutocompleteField
Constructor Detail

ModelFormField.TextField

protected ModelFormField.TextField()

ModelFormField.TextField

public ModelFormField.TextField(ModelFormField modelFormField)

ModelFormField.TextField

public ModelFormField.TextField(int fieldSource,
                                ModelFormField modelFormField)

ModelFormField.TextField

public ModelFormField.TextField(org.w3c.dom.Element element,
                                ModelFormField modelFormField)
Method Detail

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 class ModelFormField.FieldInfo
Throws:
java.io.IOException

getMaxlength

public java.lang.Integer getMaxlength()

getSize

public int getSize()

getDisabled

public boolean getDisabled()

setDisabled

public void setDisabled(boolean b)

getClientAutocompleteField

public boolean getClientAutocompleteField()

setClientAutocompleteField

public void setClientAutocompleteField(boolean b)

getDefaultValue

public java.lang.String getDefaultValue(java.util.Map<java.lang.String,java.lang.Object> context)

setMaxlength

public void setMaxlength(java.lang.Integer integer)
Parameters:
integer -

setSize

public void setSize(int i)
Parameters:
i -

setDefaultValue

public void setDefaultValue(java.lang.String str)
Parameters:
str -

getSubHyperlink

public ModelFormField.SubHyperlink getSubHyperlink()

setSubHyperlink

public void setSubHyperlink(ModelFormField.SubHyperlink newSubHyperlink)