public class CPDFCheckboxAttr extends CPDFWidgetAttr implements IAttributeCallback
The attribute used when creating CheckBox
| Constructor and Description |
|---|
CPDFCheckboxAttr(java.lang.String moduleName) |
| Modifier and Type | Method and Description |
|---|---|
CPDFWidget.BorderStyle |
getBorderStyle()
Gets the border style of CheckBox
|
CPDFCheckboxWidget.CheckboxStyle |
getCheckboxStyle()
Gets the type of CheckBox, more:
CPDFCheckboxWidget.CheckboxStyle |
CPDFWidget.CheckStyle |
getCheckStyle()
Gets the fill style of CheckBox
|
int |
getColor()
Gets the select color of CheckBox, color range 0x00000000-0xFFFFFFFF
|
boolean |
isChecked()
Gets the selected state of CheckBox
|
void |
onload()
Loads the attribute of CheckBox, this method does not need to be called by user.
|
void |
onstore()
Saves the attribute of CheckBox, this method does not need to be called by user.
|
void |
setBorderStyle(CPDFWidget.BorderStyle borderStyle)
Sets the border style of CheckBox
|
void |
setCheckboxStyle(CPDFCheckboxWidget.CheckboxStyle checkboxStyle)
Sets the type of CheckBox, more:
CPDFCheckboxWidget.CheckboxStyle |
void |
setChecked(boolean checked)
Sets the selected state of CheckBox
|
void |
setCheckStyle(CPDFWidget.CheckStyle checkStyle)
Sets the fill style of CheckBox
|
void |
setColor(int color)
Sets the select color of CheckBox, color range 0x00000000-0xFFFFFFFF
|
getBorderColor, getBorderWidth, getFieldName, getFillColor, setAttributeDataFetcher, setBorderColor, setBorderWidth, setFillColor, setiAttributeUpdateCallbackpublic boolean isChecked()
public void setChecked(boolean checked)
checked - Whether to select CheckBoxpublic CPDFCheckboxWidget.CheckboxStyle getCheckboxStyle()
CPDFCheckboxWidget.CheckboxStylepublic void setCheckboxStyle(CPDFCheckboxWidget.CheckboxStyle checkboxStyle)
CPDFCheckboxWidget.CheckboxStylecheckboxStyle - Type of CheckBoxpublic CPDFWidget.CheckStyle getCheckStyle()
public void setCheckStyle(CPDFWidget.CheckStyle checkStyle)
checkStyle - Fill style of CheckBoxpublic CPDFWidget.BorderStyle getBorderStyle()
public void setBorderStyle(CPDFWidget.BorderStyle borderStyle)
borderStyle - Border stylepublic int getColor()
public void setColor(int color)
color - select colorpublic void onload()
onload in interface IAttributeCallbackpublic void onstore()
onstore in interface IAttributeCallback