Class PDListBox

  • 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 Detail

      • 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 Detail

      • getTopIndex

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

        public void setTopIndex​(java.lang.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 java.io.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:
        java.io.IOException - if the appearance couldn't be generated