Code example for CheckBox

Methods: setChecked, setOnCheckedChangeListener

0
    public void setOnActionListener(OnActionListener listener) {
        this.listener = listener;
    } 
 
    public void clearCheckAll() { 
        checkAll.setOnCheckedChangeListener(null);
        checkAll.setChecked(false);
        checkAll.setOnCheckedChangeListener(checkAllListener);
    } 
 
    public void clearSearch() { 
        inputSearch.setOnActionListener(null);
        inputSearch.setText("");
        inputSearch.setOnActionListener(inputSearchListener);
    } 
     
    public String getText() {
        return inputSearch.getText();
    } 
 
    @Override