Class Widget
- java.lang.Object
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeBase
-
- com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
-
- com.pdf_tools.fourheights.pdftoolbox.pdf.forms.Widget
-
public class Widget extends NativeObject
A form field widget
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rectangle
getBoundingBox()
The location on the page (Getter)boolean
getHidden()
The widget's visibility (Getter)boolean
getLocked()
Whether the widget can be modified (Getter)boolean
getNoPrint()
The widget's visibility when printing (Getter)void
setHidden(boolean value)
The widget's visibility (Setter)void
setLocked(boolean value)
Whether the widget can be modified (Setter)-
Methods inherited from class com.pdf_tools.fourheights.pdftoolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getBoundingBox
public Rectangle getBoundingBox() throws CorruptException
The location on the page (Getter)
- Throws:
java.lang.IllegalStateException
- if the object has already been closedCorruptException
- if the PDF is corrupt
-
getHidden
public boolean getHidden()
The widget's visibility (Getter)
Iftrue
then the widget is present, but is invisible and not available for user interaction. Depending on thegetNoPrint()
property it will, however, still be visible when printing.- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
setHidden
public void setHidden(boolean value)
The widget's visibility (Setter)
Iftrue
then the widget is present, but is invisible and not available for user interaction. Depending on thegetNoPrint()
property it will, however, still be visible when printing.- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
getLocked
public boolean getLocked()
Whether the widget can be modified (Getter)
This does not restrict modification of the widget's content.- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
setLocked
public void setLocked(boolean value)
Whether the widget can be modified (Setter)
This does not restrict modification of the widget's content.- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
getNoPrint
public boolean getNoPrint()
The widget's visibility when printing (Getter)
Iftrue
then the widget is not present in a print output of the document.- Throws:
java.lang.IllegalStateException
- if the object has already been closed
-
-