Class PDTerminalField

All Implemented Interfaces:
COSObjectable
Direct Known Subclasses:
PDButton, PDSignatureField, PDVariableText

public abstract class PDTerminalField extends PDField
A field in an interactive form. Fields may be one of four types: button, text, choice, or signature.
Author:
sug
  • Constructor Details

    • PDTerminalField

      protected PDTerminalField(PDAcroForm acroForm)
      Constructor.
      Parameters:
      acroForm - The form that this field is part of.
  • Method Details

    • setActions

      public void setActions(PDFormFieldAdditionalActions actions)
      Set the actions of the field.
      Parameters:
      actions - The field actions.
    • getFieldFlags

      public int getFieldFlags()
      Description copied from class: PDField
      This will get the flags for this field.
      Specified by:
      getFieldFlags in class PDField
      Returns:
      flags The set of flags.
    • getFieldType

      public String getFieldType()
      Description copied from class: PDField
      Get the FT entry of the field. This is a read only field and is set depending on the actual type. The field type is an inheritable attribute.
      Specified by:
      getFieldType in class PDField
      Returns:
      The Field type.
    • getWidgets

      public List<PDAnnotationWidget> getWidgets()
      Returns the widget annotations associated with this field.
      Specified by:
      getWidgets in class PDField
      Returns:
      The list of widget annotations.
    • removeWidget

      public boolean removeWidget(PDAnnotationWidget widget)
    • addWidgetIfMissing

      public void addWidgetIfMissing(PDAnnotationWidget widget)
      Adds the given widget as child of this fields, only if not already present
      Parameters:
      widget -
    • setWidgets

      public void setWidgets(List<PDAnnotationWidget> children)
      Sets the field's widget annotations.
      Parameters:
      children - The list of widget annotations.
    • applyChange

      public final void applyChange() throws IOException
      Applies a value change to the field. Generates appearances if required and raises events.
      Throws:
      IOException - if the appearance couldn't be generated
    • isTerminal

      public boolean isTerminal()
      Specified by:
      isTerminal in class PDField