public class CPDFPushbuttonWidget extends CPDFWidget
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetType
CPDFAnnotation.AppearanceType, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
void |
close()
When the object is no longer in use, call this method to release resources.
|
CPDFAction |
getButtonAction()
Gets response action of PushButtonget.
|
java.lang.String |
getButtonTitle()
Gets PushButton label.
|
int |
getFontColor()
Gets font color of PushButton.
|
java.lang.String |
getFontName()
Gets font name of PushButton.
|
float |
getFontSize()
Gets font size of PushButton.
|
boolean |
resetForm()
Resets the state of PushButton.
|
boolean |
setButtonAction(CPDFAction action)
Sets response action of PushButtonget.
|
boolean |
setButtonTitle(java.lang.String title)
Sets PushButton label.
|
boolean |
setFontColor(int color)
Sets font color of PushButton.
|
boolean |
setFontName(java.lang.String fontName)
Sets PushButton font.
|
boolean |
setFontSize(float fontsize)
Sets font size of PushButton.
|
clearBorderColor, clearFillColor, getBorderColor, getBorderStyles, getBorderWidth, getCheckColor, getCheckStyle, getFieldFlag, getFieldName, getFieldType, getFillAlpha, getFillColor, getRect, getWidgetType, isReadOnly, setBorderColor, setBorderStyles, setBorderWidth, setCheckColor, setCheckStyle, setFieldFlag, setFieldName, setFieldType, setFillAlpha, setFillColor, setReadOnly, setRect, updateAp, updateAp
addToPage, clearFilledRGBColor, clearFilledTransparency, getAppearanceByPixel, getApRotation, getBgRGBColor, getBorderRGBColor, getBorderStyle, getContent, getCreationDate, getFilledRGBColor, getFilledTransparency, getFlags, getName, getOverLayText, getRecentlyModifyDate, getRGBColor, getTitle, getTransparency, getType, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isValid, removeAp, removeFromPage, setAllowCorrectAnnotationAp, setBgRGBColor, setBorderRGBColor, setBorderStyle, setContent, setCreationDate, setFilledRGBColor, setFilledTransparency, setFlags, setHidden, setLocked, setName, setOverLayText, setRecentlyModifyDate, setRGBColor, setTitle, setTransparency, updateApWithBitmap, updateApWithImage
public CPDFAction getButtonAction()
CPDFAction.ActionType
.
The action type can be obtained throughCPDFAction.getActionType()
, more: CPDFAction
CPDFAction
public boolean setButtonAction(CPDFAction action)
CPDFAction.ActionType
.
The action type can be obtained throughCPDFAction.getActionType()
, more: CPDFAction
action
- Response action of PushButton.public boolean setButtonTitle(java.lang.String title)
title
- PushButton label.public java.lang.String getButtonTitle()
public boolean setFontName(java.lang.String fontName)
fontName
- Font name of PushButton.public java.lang.String getFontName()
public boolean setFontSize(float fontsize)
fontsize
- Font size.public float getFontSize()
public boolean setFontColor(int color)
color
- Font color.public int getFontColor()
public boolean resetForm()
resetForm
in class CPDFWidget
public void close()
close
in class CPDFAnnotation