com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class ButtonField

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.ICollection, com.aspose.ms.System.Collections.IEnumerable, com.aspose.ms.System.ICloneable, Cloneable, Iterable


    public final class ButtonField
    extends Field

    Class represents push button field.

    • Constructor Detail

      • ButtonField

        public ButtonField()

        Button field constructor for Generator.

      • ButtonField

        public ButtonField(Page page,
                           Rectangle rect)

        ButtonField constructor.

        Parameters:
        page - Page where button will be placed.
        rect - Rectangle where button is placed on the page.
      • ButtonField

        public ButtonField(IDocument doc,
                           Rectangle rect)

        ButtonField constructore.

        Parameters:
        doc - Docuemtn where new field will be created.
        rect - Rectangle hwere button is placed on the page.
    • Method Detail

      • getNormalCaption

        public String getNormalCaption()

        Gets normal caption.

        Returns:
        String value
      • setNormalCaption

        public void setNormalCaption(String value)

        Sets normal caption.

        Parameters:
        value - String value
      • getRolloverCaption

        public String getRolloverCaption()

        Gets rollover caption of button which shall be displayed when the user rolls the cursor into its active area without pressing the mouse button.

        Returns:
        String value
      • setRolloverCaption

        public void setRolloverCaption(String value)

        Sets rollover caption of button which shall be displayed when the user rolls the cursor into its active area without pressing the mouse button.

        Parameters:
        value - String value
      • getAlternateCaption

        public String getAlternateCaption()

        Gets alternate caption of the button which shall be displayed when the mouse button is pressed within its active area.

        Returns:
        String value
      • setAlternateCaption

        public void setAlternateCaption(String value)

        Sets alternate caption of the button which shall be displayed when the mouse button is pressed within its active area.

        Parameters:
        value - String value
      • getNormalIcon

        public XForm getNormalIcon()

        Gets normal icon of the button which shall be displayed when it is not interacting with the user.

        Returns:
        XForm object
      • setNormalIcon

        public void setNormalIcon(XForm value)

        Sets normal icon of the button which shall be displayed when it is not interacting with the user.

        Parameters:
        value - XForm object
      • getRolloverIcon

        public XForm getRolloverIcon()

        Gets rollover icon of the button which shall be displayed when the user rolls the cursor into its active area without pressing the mouse button.

        Returns:
        XForm object
      • setRolloverIcon

        public void setRolloverIcon(XForm value)

        Sets rollover icon of the button which shall be displayed when the user rolls the cursor into its active area without pressing the mouse button.

        Parameters:
        value - XForm object
      • getAlternateIcon

        public XForm getAlternateIcon()

        Gets alternate icon which shall be displayed when the mouse button is pressed within its active area.

        Returns:
        XForm object
      • setAlternateIcon

        public void setAlternateIcon(XForm value)

        Sets alternate icon which shall be displayed when the mouse button is pressed within its active area.

        Parameters:
        value - XForm object
      • getIconFit

        public IconFit getIconFit()

        Gets icon fit object specifying how the widget annotation's icon shall be displayed within its annotation rectangle.

        Returns:
        IconFit object
      • getICPosition

        public int getICPosition()

        Gets icon caption position.

        Returns:
        icon caption position.
        See Also:
        IconCaptionPosition
      • setICPosition

        public void setICPosition(int value)

        Sets icon caption position.

        Parameters:
        value - icon caption position.
        See Also:
        IconCaptionPosition
      • addImage

        public void addImage(BufferedImage image)

        Adds image into the field resources an draws it.

        Parameters:
        image - Image ot add into text field.
      • addImage

        public void addImage(BufferedImage image,
                             boolean fillArea)

        Adds image into the field resources an draws it.

        Parameters:
        image - Image ot add into text field.
        fillArea - boolean values