public class Field extends FieldNode
Modifier and Type | Method and Description |
---|---|
Widget |
addNewWidget(Rectangle boundingBox)
Create a new widget and add to the form field
|
static Field |
createDynamicObject(long handle) |
boolean |
getDoNotExport()
Tells whether this field is exported (Getter)
|
boolean |
getReadOnly()
Flags this field as read-only (Getter)
|
boolean |
getRequired()
Flags this field as mandatory (Getter)
|
WidgetList |
getWidgets()
This form field's widget annotations (Getter)
|
void |
setDoNotExport(boolean value)
Tells whether this field is exported (Setter)
|
void |
setReadOnly(boolean value)
Flags this field as read-only (Setter)
|
void |
setRequired(boolean value)
Flags this field as mandatory (Setter)
|
copy, getDisplayName, getExportName, setDisplayName, setExportName
equals, hashCode
public static Field createDynamicObject(long handle)
public Widget addNewWidget(Rectangle boundingBox)
RadioButton.addNewWidget(com.pdf_tools.fourheights.pdftoolbox.geometry.real.Rectangle)
.boundingBox
- The widget's target rectangle on the pagejava.lang.IllegalStateException
- if the document has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.UnsupportedOperationException
- if the form field is of type RadioButtonGroup
java.lang.IllegalArgumentException
- if boundingBox
is null
public WidgetList getWidgets()
java.lang.IllegalStateException
- if the object has already been closedpublic boolean getReadOnly()
java.lang.IllegalStateException
- if the object has already been closedpublic void setReadOnly(boolean value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlypublic boolean getRequired()
java.lang.IllegalStateException
- if the object has already been closedpublic void setRequired(boolean value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlypublic boolean getDoNotExport()
java.lang.IllegalStateException
- if the object has already been closedpublic void setDoNotExport(boolean value)
java.lang.IllegalStateException
- if the object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-only