Class FormField

java.lang.Object
com.dynamicpdf.api.FormField

public class FormField extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    FormField​(String name)
    Initializes a new instance of the FormField class using the name of the form field as a parameter.
    FormField​(String name, String value)
    Initializes a new instance of the FormField class using the name and the value of the form field as parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets a boolean indicating whether to flatten the form field.
    Gets name of the form field.
    boolean
    Gets a boolean indicating whether to remove the form field.
    Gets value of the form field.
    void
    setFlatten​(boolean value)
    Sets a boolean indicating whether to flatten the form field.
    void
    setName​(String value)
    Sets name of the form field.
    void
    setRemove​(boolean value)
    Sets a boolean indicating whether to remove the form field.
    void
    setValue​(String value)
    Sets value of the form field.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FormField

      public FormField(String name)
      Initializes a new instance of the FormField class using the name of the form field as a parameter.
      Parameters:
      name - The name of the form field.
    • FormField

      public FormField(String name, String value)
      Initializes a new instance of the FormField class using the name and the value of the form field as parameters.
      Parameters:
      name - The name of the form field.
      value - The value of the form field.
  • Method Details

    • getName

      public String getName()
      Gets name of the form field.
      Returns:
      Name of the form field.
    • setName

      public void setName(String value)
      Sets name of the form field.
      Parameters:
      value - Name of the form field.
    • getValue

      public String getValue()
      Gets value of the form field.
      Returns:
      Value of the form field.
    • setValue

      public void setValue(String value)
      Sets value of the form field.
      Parameters:
      value - Value of the form field.
    • getFlatten

      public boolean getFlatten()
      Gets a boolean indicating whether to flatten the form field.
      Returns:
      A boolean indicating whether to flatten the form field.
    • setFlatten

      public void setFlatten(boolean value)
      Sets a boolean indicating whether to flatten the form field.
      Parameters:
      value - A boolean indicating whether to flatten the form field.
    • getRemove

      public boolean getRemove()
      Gets a boolean indicating whether to remove the form field.
      Returns:
      A boolean indicating whether to remove the form field.
    • setRemove

      public void setRemove(boolean value)
      Sets a boolean indicating whether to remove the form field.
      Parameters:
      value - A boolean indicating whether to remove the form field.