public class CPDFPushbuttonWidget extends CPDFWidget
| Modifier and Type | Class and Description |
|---|---|
static class |
CPDFPushbuttonWidget.TPDFPushButtonAttr |
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetTypeCPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Typeindex| Modifier and Type | Method and Description |
|---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
void |
close()
When the object is no longer in use, call this method to release resources.
|
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
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, getCheckStyle, getFieldFlag, getFieldName, getFieldType, getFillAlpha, getFillColor, getRect, getWidgetType, isReadOnly, setBorderColor, setBorderStyles, setBorderWidth, setCheckStyle, setFieldFlag, setFieldName, setFieldType, setFillAlpha, setFillColor, setReadOnly, setRect, updateAp, updateApaddToPage, createReplyAnnotation, disableListenAttrChanged, enableListenAttrChanged, equal, equal, getAllReplyAnnotations, getAnnotIndexFromNative, getAnnotPtr, getAppearance, getAppearanceByPixel, getApRotation, getBordEffectIntensity, getBordEffectType, getContent, getCreationDate, getFlags, getMarkedAnnotState, getName, getRecentlyModifyDate, getReviewAnnotState, getRotateRectPoint, getRotation, getSourceRect, getTitle, getType, getVertices, hasAp, isAllowCorrectAnnotationAp, isHidden, isLocked, isValid, moveAnnotIndex, removeAp, removeFromPage, removeFromPageIncludeReplyAnnot, setAllowCorrectAnnotationAp, setAnnotTop, setBordEffectIntensity, setBordEffectType, setContent, setCreationDate, setFlags, setHidden, setLocked, setMarkedAnnotState, setName, setOnAnnotationChangedListener, setRecentlyModifyDate, setReviewAnnotState, setRotation, setSourceRect, setTitle, setVertices, 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.CPDFTextAttribute.FontNameHelperpublic 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 CPDFAnnotationpublic CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr in class CPDFAnnotationpublic void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr in class CPDFAnnotation