public final class ButtonField extends Field
Class represents push button field.
_FileSelect, _Password
_disableUpdateAppearance
Constructor and Description |
---|
ButtonField()
Button field constructor for Generator.
|
ButtonField(IDocument doc,
Rectangle rect)
ButtonField constructore.
|
ButtonField(Page page,
Rectangle rect)
ButtonField constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addImage(BufferedImage image)
Adds image into the field resources an draws it.
|
void |
addImage(BufferedImage image,
boolean fillArea)
Adds image into the field resources an draws it.
|
String |
getAlternateCaption()
Gets alternate caption of the button which shall be displayed when the mouse button is
pressed within its active area.
|
XForm |
getAlternateIcon()
Gets alternate icon which shall be displayed when the mouse button is pressed within its
active area.
|
IconFit |
getIconFit()
Gets icon fit object specifying how the widget annotation's icon shall be displayed within
its annotation rectangle.
|
int |
getICPosition()
Gets icon caption position.
|
String |
getNormalCaption()
Gets normal caption.
|
XForm |
getNormalIcon()
Gets normal icon of the button which shall be displayed when it is not interacting with the
user.
|
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.
|
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.
|
void |
setAlternateCaption(String value)
Sets alternate caption of the button which shall be displayed when the mouse button is
pressed within its active area.
|
void |
setAlternateIcon(XForm value)
Sets alternate icon which shall be displayed when the mouse button is pressed within its
active area.
|
void |
setICPosition(int value)
Sets icon caption position.
|
void |
setNormalCaption(String value)
Sets normal caption.
|
void |
setNormalIcon(XForm value)
Sets normal icon of the button which shall be displayed when it is not interacting with the
user.
|
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.
|
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.
|
add, clear, contains, copyTo, copyTo, flatten, get_Item, get_Item, getAlternateName, getAnnotationIndex, getMappingName, getMaxFontSize, getPageIndex, getPartialName, getRect, getSyncRoot, getTabOrder, getValue, isFitIntoRectangle, isGroup, isReadOnly, isSharedField, isSynchronized, iterator, recalculate, remove, setAlternateName, setAnnotationIndex, setFitIntoRectangle, setMappingName, setMaxFontSize, setPartialName, setPosition, setRect, setSharedField, setTabOrder, setValue, size, updateAppearances
accept, getAnnotationActions, getAnnotationType, getDefaultAppearance, getExportable, getHighlighting, getOnActivated, getParent, getReadOnly, getRequired, setDefaultAppearance, setExportable, setHighlighting, setOnActivated, setReadOnly, setRequired
createAnnotation, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPdfActions, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ButtonField()
Button field constructor for Generator.
public ButtonField(Page page, Rectangle rect)
ButtonField constructor.
page
- Page where button will be placed.rect
- Rectangle where button is placed on the page.public String getNormalCaption()
Gets normal caption.
public void setNormalCaption(String value)
Sets normal caption.
value
- String valuepublic 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.
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.
value
- String valuepublic String getAlternateCaption()
Gets alternate caption of the button which shall be displayed when the mouse button is pressed within its active area.
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.
value
- String valuepublic XForm getNormalIcon()
Gets normal icon of the button which shall be displayed when it is not interacting with the user.
public void setNormalIcon(XForm value)
Sets normal icon of the button which shall be displayed when it is not interacting with the user.
value
- XForm objectpublic 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.
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.
value
- XForm objectpublic XForm getAlternateIcon()
Gets alternate icon which shall be displayed when the mouse button is pressed within its active area.
public void setAlternateIcon(XForm value)
Sets alternate icon which shall be displayed when the mouse button is pressed within its active area.
value
- XForm objectpublic IconFit getIconFit()
Gets icon fit object specifying how the widget annotation's icon shall be displayed within its annotation rectangle.
public int getICPosition()
Gets icon caption position.
IconCaptionPosition
public void setICPosition(int value)
Sets icon caption position.
value
- icon caption position.IconCaptionPosition
public void addImage(BufferedImage image)
Adds image into the field resources an draws it.
image
- Image ot add into text field.public void addImage(BufferedImage image, boolean fillArea)
Adds image into the field resources an draws it.
image
- Image ot add into text field.fillArea
- boolean values