[]
        
(Showing Draft Content)

ICheckBox

Interface ICheckBox

All Superinterfaces:
ICellLinkControl, ICellLinkControlT<Boolean>, IContentControl, IControl, IControlT<ICheckBox>

public interface ICheckBox extends IControlT<ICheckBox>, IContentControl, ICellLinkControlT<Boolean>
Represents a check box form control in a worksheet.

A check box control can display text and store a three-state selection value: checked ( true), unchecked ( false), or mixed ( null). It also supports linking its value to a worksheet cell through ICellLinkControlT.


 ICheckBox checkBox = worksheet.getControls().addCheckBox(20, 20, 90, 18);
 checkBox.setText("Accept");
 checkBox.setLinkedCell(worksheet.getRange("A1"));
 
  • Method Details

    • getIsChecked

      Boolean getIsChecked()
      Gets whether the ICheckBox is checked.

      Returns the current three-state value of the check box.

      
       ICheckBox checkBox = worksheet.getControls().addCheckBox(20, 20, 90, 18);
       checkBox.setIsChecked(true);
       Boolean checked = checkBox.getIsChecked();
       
      Returns:
      false - Unchecked, true - Checked, null - Mixed
    • setIsChecked

      void setIsChecked(Boolean value)
      Sets whether the ICheckBox is checked.

      Sets the current three-state value of the check box.

      
       ICheckBox checkBox = worksheet.getControls().addCheckBox(20, 20, 90, 18);
       checkBox.setIsChecked(true);
       
      Parameters:
      value - false - Unchecked, true - Checked, null - Mixed