public class CPDFRadiobuttonAttr extends CPDFWidgetAttr implements IAttributeCallback
The attribute was used when creating Radiobutton.
Constructor and Description |
---|
CPDFRadiobuttonAttr(java.lang.String moduleName) |
Modifier and Type | Method and Description |
---|---|
CPDFWidget.BorderStyle |
getBorderStyle()
Gets the border style of Radiobutton.
|
CPDFWidget.CheckStyle |
getCheckStyle()
Gets the fill style of Radiobutton.
|
int |
getColor()
Gets the fill color of Radiobutton, color range 0x00000000-0xFFFFFFFF
|
boolean |
isChecked()
Gets the selected state of Radiobutton.
|
void |
onload()
Loads the attribute of Radiobutto, this method does not need to be called by user.
|
void |
onstore()
Saves the attribute of Radiobutto, this method does not need to be called by user.
|
void |
setBorderStyle(CPDFWidget.BorderStyle borderStyle)
Sets the border style of Radiobutton.
|
void |
setChecked(boolean checked)
Sets the default selected state of Radiobutton.
|
void |
setCheckStyle(CPDFWidget.CheckStyle checkStyle)
Sets the fill style of Radiobutton.
|
void |
setColor(int color)
Sets the fill color of Radiobutton, color range 0x00000000-0xFFFFFFFF
|
getBorderColor, getBorderWidth, getFieldName, getFillColor, setAttributeDataFetcher, setBorderColor, setBorderWidth, setFillColor, setiAttributeUpdateCallback
public boolean isChecked()
public void setChecked(boolean checked)
checked
- Whether it is selected.public CPDFWidget.CheckStyle getCheckStyle()
public void setCheckStyle(CPDFWidget.CheckStyle checkStyle)
checkStyle
- Fill stylepublic CPDFWidget.BorderStyle getBorderStyle()
public void setBorderStyle(CPDFWidget.BorderStyle borderStyle)
borderStyle
- Border style.public int getColor()
public void setColor(int color)
color
- Fill colorpublic void onload()
onload
in interface IAttributeCallback
public void onstore()
onstore
in interface IAttributeCallback