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
  • Constructor Details

  • Method Details

    • accept

      public void accept(ModelFieldVisitor visitor) throws Exception
      Specified by:
      accept in class FieldInfo
      Throws:
      Exception
    • copy

      public FieldInfo copy(ModelFormField modelFormField)
      Description copied from class: FieldInfo
      Returns a new instance of this object.
      Specified by:
      copy in class FieldInfo
    • getClientAutocompleteField

      public boolean getClientAutocompleteField()
      Gets client autocomplete field.
      Returns:
      the client autocomplete field
    • getDefaultValue

      public FlexibleStringExpander getDefaultValue()
      Gets default value.
      Returns:
      the default value
    • getDefaultValue

      public String getDefaultValue(Map<String,Object> context)
      Gets default value.
      Parameters:
      context - the context
      Returns:
      the default value
    • getMask

      public String getMask()
      Gets mask.
      Returns:
      the mask
    • getMaxlength

      public Integer getMaxlength()
      Gets maxlength.
      Returns:
      the maxlength
    • getPlaceholder

      public FlexibleStringExpander getPlaceholder()
      Gets placeholder.
      Returns:
      the placeholder
    • getPlaceholder

      public String getPlaceholder(Map<String,Object> context)
      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

      public ModelFormField.SubHyperlink 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 class FieldInfo
      Throws:
      IOException