Class PDComboBox

  • All Implemented Interfaces:
    COSObjectable

    public final class PDComboBox
    extends PDChoice
    A combo box consisting of a drop-down list. May be accompanied by an editable text box in which non-predefined values may be entered.
    • Constructor Detail

      • PDComboBox

        PDComboBox​(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

      • isEdit

        public boolean isEdit()
        Determines if Edit is set.
        Returns:
        true if the combo box shall include an editable text box as well as a drop-down list.
      • setEdit

        public void setEdit​(boolean edit)
        Set the Edit bit.
        Parameters:
        edit - The value for Edit.
      • 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