com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class ListBoxField

    • Constructor Detail

      • ListBoxField

        public ListBoxField()

        Constructor for ListBoxField to be used in Generator.

      • ListBoxField

        public ListBoxField(Page page,
                            Rectangle rect)

        Creates new ListBox field.

        Parameters:
        page - Page where list box will be placed.
        rect - Rectangle where list box will be placed on the page.
      • ListBoxField

        public ListBoxField(IDocument doc,
                            Rectangle rect)

        Constructor for ListBox field.

        Parameters:
        doc - Document to which this field will belong.
        rect - Rectangle where list box will be placed.
    • Method Detail

      • getTopIndex

        public int getTopIndex()

        Gets index of the top visible element of the list.

        Returns:
        int value
      • setTopIndex

        public void setTopIndex(int value)

        Sets index of the top visible element of the list.

        Parameters:
        value - int value
      • setSelected

        public void setSelected(int value)

        Gets index of the selected item. Items are numbered from 1.

        Overrides:
        setSelected in class ChoiceField
        Parameters:
        value - int value
      • setSelectedItems

        public void setSelectedItems(int[] value)

        Sets array of the selected items in the multiselect list. For single-select list returns array with single item.

        Overrides:
        setSelectedItems in class ChoiceField
        Parameters:
        value - array of int values