public class CPDFPushbuttonWidget extends CPDFWidget
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetTypeCPDFAnnotation.AppearanceType, CPDFAnnotation.TypeannotPtr, 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, updateApaddToPage, 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, updateApWithImagepublic CPDFAction getButtonAction()
CPDFAction.ActionType.
The action type can be obtained throughCPDFAction.getActionType(), more: CPDFActionCPDFActionpublic boolean setButtonAction(CPDFAction action)
CPDFAction.ActionType.
The action type can be obtained throughCPDFAction.getActionType(), more: CPDFActionaction - 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 CPDFWidgetpublic void close()
close in class CPDFAnnotation