public interface Widget extends Annotation
Modifier and Type | Field and Description |
---|---|
static int |
HIGH_INVERT |
static int |
HIGH_NONE |
static int |
HIGH_OUTLINE |
static int |
HIGH_PUSH |
static int |
HIGH_TOGGLE |
BORDERSTYLE_BEVELED, BORDERSTYLE_CLOUD, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_LOCKEDCONTENTS, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY
Modifier and Type | Method and Description |
---|---|
boolean |
canEdit() |
void |
fieldValueChanged() |
String |
getAppearanceState() |
Color |
getBackground() |
Color |
getBorderColor() |
String |
getCaption() |
JComponent |
getEditingComponent() |
FormField |
getField() |
int |
getHighlightMode() |
int |
getHorzTextAlign() |
int |
getRotation()
Returns the rotation of this widget in degrees.
|
boolean |
isEditable() |
void |
setAppearanceState(String aState) |
void |
setBackground(Color background) |
void |
setBorderColor(Color borderColor) |
void |
setCaption(String caption) |
void |
setField(FormField field) |
void |
setHidden(boolean hidden)
Sets this Annotation's HIDDEN flag.
|
void |
setHighlightMode(int highlightMode) |
void |
setPrintable(boolean printable)
Sets the value of the PRINTABLE flag.
|
void |
setWidgetHighlight(boolean highlight)
Flags this widget so that when displayed, it will display a highlight
over the widget.
|
getActions, getAnnotationComponent, getBorderStyle, getBorderWidth, getCheckmarkStatus, getColor, getComponent, getContents, getCreator, getFlags, getIRTAnnotation, getModifiedDate, getName, getOpacity, getPageIndex, getRectangle, getReviewHistory, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isIRTGroup, isLocked, isLockedContents, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreator, setFlags, setInvisible, setLayer, setLocked, setLockedContents, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setReadOnly, setRectangle, setSubject, setTriggerActions, shiftRectangle
static final int HIGH_NONE
static final int HIGH_INVERT
static final int HIGH_OUTLINE
static final int HIGH_PUSH
static final int HIGH_TOGGLE
boolean canEdit()
String getAppearanceState()
Color getBackground()
String getCaption()
Color getBorderColor()
int getHighlightMode()
FormField getField()
void setHighlightMode(int highlightMode)
void setAppearanceState(String aState)
void setBackground(Color background)
void setBorderColor(Color borderColor)
void setCaption(String caption)
void fieldValueChanged() throws PDFException
PDFException
boolean isEditable()
void setField(FormField field)
void setHidden(boolean hidden)
Annotation
setHidden
in interface Annotation
hidden
- The new value of the HIDDEN flag.void setPrintable(boolean printable)
Annotation
setPrintable
in interface Annotation
printable
- The new value for the PRINTABLE flag.JComponent getEditingComponent()
int getHorzTextAlign()
void setWidgetHighlight(boolean highlight)
highlight
- Boolean flag indicating whether the field should be
highlighted.int getRotation()