public class CPDFRadiobuttonWidget extends CPDFWidget
Multiple RadioButton controls can be a list, when clicking a RadioButton, it is set as selected, others in the list set as unselected.
Method to set multiple RadioButton in the same list: Set the fieldName of multiple RadioButton to the same value, such as:
radiobutton1.setFieldName("xxx"); radiobutton2.setFieldName("xxx"); radiobutton3.setFieldName("xxx");Refer to :
CPDFWidget.setFieldName(String)
CPDFWidget
Modifier and Type | Class and Description |
---|---|
static class |
CPDFRadiobuttonWidget.TPDFRadiobuttonWidgetAttr |
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetType
CPDFAnnotation.AppearanceType, CPDFAnnotation.BorderEffectIntensity, CPDFAnnotation.CPDFBorderEffectType, CPDFAnnotation.MarkState, CPDFAnnotation.MediaSourceType, CPDFAnnotation.ReviewState, CPDFAnnotation.Type
index
Modifier and Type | Method and Description |
---|---|
void |
applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr) |
CPDFAnnotationUndoAttr |
getAnnotationAttr() |
int |
getColor()
Gets check color of Radiobutton.
|
boolean |
isChecked()
Whether Radiobutton is selected, true means selected, false otherwise.
|
boolean |
resetForm()
Resets Radiobutton.
|
boolean |
setChecked(boolean isChecked)
Sets whether Radiobutton is selected, true means selected, false otherwise.
|
boolean |
setColor(int color)
Sets check color of Radiobutton.
|
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, updateAp
addToPage, close, 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, updateApWithImage
public boolean isChecked()
public boolean setChecked(boolean isChecked)
isChecked
- Whether it is selected.public boolean setColor(int color)
color
- check color value of Radiobutton.public int getColor()
public boolean resetForm()
resetForm
in class CPDFWidget
public CPDFAnnotationUndoAttr getAnnotationAttr()
getAnnotationAttr
in class CPDFAnnotation
public void applyAnnotationAttr(CPDFAnnotationUndoAttr annotationAttr)
applyAnnotationAttr
in class CPDFAnnotation