Class CPDFCheckboxWidget


public class CPDFCheckboxWidget extends CPDFWidget
A single checkbox form control which can be toggled to on or off.
  • Method Details

    • setChecked

      public boolean setChecked(boolean isChecked)
      Sets the state of CheckBox, true means selected, false otherwise.
      Parameters:
      isChecked - State of CheckBox.
      Returns:
      Returns whether to successfully set the state of CheckBox.
    • isChecked

      public boolean isChecked()
      Gets the state of CheckBox, true means selected, false otherwise.
      Returns:
      Selected State of CheckBox.
    • setCheckBoxStyle

      public boolean setCheckBoxStyle(CPDFCheckboxWidget.CheckboxStyle checkboxStyle)
      Sets the border style of CheckBox.
      Parameters:
      checkboxStyle - Border style of CheckBox.
      Returns:
      Returns whether to successfully set border style of CheckBox.
    • getCheckBoxStyle

      public CPDFCheckboxWidget.CheckboxStyle getCheckBoxStyle()
      Gets the border style of CheckBox.
      Returns:
      Returns the border style of CheckBox.
    • resetForm

      public boolean resetForm()
      Resets forms.
      Overrides:
      resetForm in class CPDFWidget
      Returns:
      Returns whether to successfully reset forms.
    • setColor

      public boolean setColor(int color)
      Sets check color of Checkbox.
      Parameters:
      color - check color value of Checkbox.
      Returns:
      Returns whether to successfully set check color of Checkbox.
    • getColor

      public int getColor()
      Gets check color of Checkbox.
      Returns:
      Returns check color of Checkbox.