public class

PushButtonWidget

extends Widget
java.lang.Object
   ↳ com.pdftron.pdf.Annot
     ↳ com.pdftron.pdf.annots.Widget
       ↳ com.pdftron.pdf.annots.PushButtonWidget

Class Overview

An object representing a push button used in a PDF Form.

Summary

[Expand]
Inherited Constants
From class com.pdftron.pdf.annots.Widget
From class com.pdftron.pdf.Annot
Public Constructors
PushButtonWidget(Obj d)
Creates a Push Button Widget annotation and initialize it using given Cos/SDF object.
PushButtonWidget()
Create an empty Push Button Widget annotation.
PushButtonWidget(Annot annot)
Creates a Push Button Widget annotation and initialize it using given annotation object.
Public Methods
static PushButtonWidget create(Doc doc, Rect pos, String field_name)
Creates a new Push Button Widget annotation, in the specified document.
static PushButtonWidget create(Doc doc, Rect pos, Field field)
Creates a new Widget annotation, in the specified document.
static PushButtonWidget create(Doc doc, Rect pos)
Creates a new Push Button Widget annotation, in the specified document.
[Expand]
Inherited Methods
From class com.pdftron.pdf.annots.Widget
From class com.pdftron.pdf.Annot
From class java.lang.Object

Public Constructors

public PushButtonWidget (Obj d)

Creates a Push Button Widget annotation and initialize it using given Cos/SDF object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
d The object to use to initialize the PushButtonWidget

public PushButtonWidget ()

Create an empty Push Button Widget annotation.

public PushButtonWidget (Annot annot)

Creates a Push Button Widget annotation and initialize it using given annotation object.

Note: The constructor does not copy any data, but is instead the logical equivalent of a type cast.

Parameters
annot the annotation from which to create a Push Button Widget

Public Methods

public static PushButtonWidget create (Doc doc, Rect pos, String field_name)

Creates a new Push Button Widget annotation, in the specified document.

Parameters
doc The document to which the annotation is added.
pos A rectangle specifying the annotation's bounds, specified in user space coordinates.
field_name The name of the field for which to create a PushButton widget.
Returns
  • A newly created default Push Button Widget annotation.

public static PushButtonWidget create (Doc doc, Rect pos, Field field)

Creates a new Widget annotation, in the specified document.

Parameters
doc The document to which the annotation is added.
pos A rectangle specifying the annotation's bounds, specified in user space coordinates.
field the field for which to create a Push Button Widget.
Returns
  • A newly created default Push Button Widget annotation.

public static PushButtonWidget create (Doc doc, Rect pos)

Creates a new Push Button Widget annotation, in the specified document.

Parameters
doc The document to which the annotation is added.
pos A rectangle specifying the annotation's bounds, specified in user space coordinates.
Returns
  • A newly created default Push Button Widget annotation.