All Implemented Interfaces:
COSObjectable

public final class PDListBox extends PDChoice
A scrollable list box. Contains several text items, one or more of which shall be selected as the field value.
  • Constructor Details

    • PDListBox

      public PDListBox(PDAcroForm acroForm)
      Parameters:
      acroForm - The acroform.
      See Also:
    • PDListBox

      PDListBox(PDAcroForm acroForm, COSDictionary field, PDNonTerminalField parent)
      Constructor.
      Parameters:
      acroForm - The form that this field is part of.
      field - the PDF object to represent as a field.
      parent - the parent node of the node
  • Method Details

    • getTopIndex

      public int getTopIndex()
      This will get the top index "TI" value.
      Returns:
      the top index, default value 0.
    • setTopIndex

      public void setTopIndex(Integer topIndex)
      This will set top index "TI" value.
      Parameters:
      topIndex - the value for the top index, null will remove the value.
    • constructAppearances

      void constructAppearances() throws IOException
      Description copied from class: PDTerminalField
      Constructs appearance streams and appearance dictionaries for all widget annotations. Subclasses should not call this method directly but via PDTerminalField.applyChange().
      Specified by:
      constructAppearances in class PDChoice
      Throws:
      IOException - if the appearance couldn't be generated