/** * Sets the checked state of the check box. * * @param checked if the check box is checked, false if not. */ @PropertySetter(value = "checked", defaultValue = "false", description = "The checked state of the check box.") public void setChecked(boolean checked) { _setChecked(checked, true); }
/** * Handler for change events sent from the client. * * @param event A change event. */ @EventHandler(value = "change", syncToClient = false, mode = "init") protected void _onChange(ChangeEvent event) { _setChecked(defaultify(event.getValue(Boolean.class), true), false); }