Class ModelFormField.DropDownField

Enclosing class:
ModelFormField

public static class ModelFormField.DropDownField extends ModelFormField.FieldInfoWithOptions
Models the <drop-down> 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
    • getAllowMulti

      public boolean getAllowMulti()
      Gets allow multi.
      Returns:
      the allow multi
    • getAutoComplete

      public ModelFormField.AutoComplete getAutoComplete()
      Gets auto complete.
      Returns:
      the auto complete
    • getCurrent

      public String getCurrent()
      Gets current.
      Returns:
      the current
    • getCurrentDescription

      public FlexibleStringExpander getCurrentDescription()
      Gets current description.
      Returns:
      the current description
    • getCurrentDescription

      public String getCurrentDescription(Map<String,Object> context)
      Gets current description.
      Parameters:
      context - the context
      Returns:
      the current description
    • getOtherFieldSize

      public int getOtherFieldSize()
      Gets other field size.
      Returns:
      the other field size
    • getParameterNameOther

      public String getParameterNameOther(Map<String,Object> context)
      Get the name to use for the parameter for this field in the form interpreter. For HTML forms this is the request parameter name.
      Parameters:
      context - the context
      Returns:
      returns the name to use for the parameter for this field in the form interpreter.
    • getSize

      public String getSize()
      Gets size.
      Returns:
      the size
    • getSubHyperlink

      public ModelFormField.SubHyperlink getSubHyperlink()
      Gets sub hyperlink.
      Returns:
      the sub hyperlink
    • getTextSize

      public Optional<Integer> getTextSize()
      Gets text size.
      Returns:
      the text size
    • getAllowEmpty

      public boolean getAllowEmpty()
      Gets allow empty.
      Returns:
      the allow empty
    • getAllowMultiple

      public boolean getAllowMultiple()
      Gets allow multiple.
      Returns:
      the allow multiple
    • renderFieldString

      public void renderFieldString(Appendable writer, Map<String,Object> context, FormStringRenderer formStringRenderer) throws IOException
      Specified by:
      renderFieldString in class FieldInfo
      Throws:
      IOException