19 package org.turro.zkoss.input;
21 import org.zkoss.zk.ui.annotation.ComponentAnnotation;
22 import org.zkoss.zul.Checkbox;
28 @ComponentAnnotation({
"state:@ZKBIND(ACCESS=both,SAVE_EVENT=onCheck)"})
31 private boolean icons;
43 addSclass(
"tri-icons");
48 case CHECKED -> { setChecked(
true);
if(icons) { setIconSclass(
"green checkmark icon"); } }
49 case UNCHECKED -> { setChecked(
false);
if(icons) { setIconSclass(
"red times icon"); } }
50 case INDETERMINATE -> { setIndeterminate(
true);
if(icons) { setIconSclass(
"grey minus icon"); } }