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
CPDFWidget.BorderStyle, CPDFWidget.CheckStyle, CPDFWidget.WidgetType
CPDFAnnotation.AppearanceType, CPDFAnnotation.Type
annotPtr, apRotation, pdfPage
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
updateAp()
Updates annotation appearance.
|
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
addToPage, clearFilledRGBColor, clearFilledTransparency, close, 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 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 boolean updateAp()
updateAp
in class CPDFWidget