BrightSide Workbench Full Report + Source Code
org.turro.zkoss.input.Tristatebox Class Reference
Inheritance diagram for org.turro.zkoss.input.Tristatebox:
Collaboration diagram for org.turro.zkoss.input.Tristatebox:

Public Member Functions

 Tristatebox ()
 
boolean isIcons ()
 
void setIcons (boolean icons)
 
void setState (Checkbox.State value)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 29 of file Tristatebox.java.

Constructor & Destructor Documentation

◆ Tristatebox()

org.turro.zkoss.input.Tristatebox.Tristatebox ( )

Definition at line 33 of file Tristatebox.java.

33  {
34  setMold("tristate");
35  }

Member Function Documentation

◆ isIcons()

boolean org.turro.zkoss.input.Tristatebox.isIcons ( )

Definition at line 37 of file Tristatebox.java.

37  {
38  return icons;
39  }

◆ setIcons()

void org.turro.zkoss.input.Tristatebox.setIcons ( boolean  icons)

Definition at line 41 of file Tristatebox.java.

41  {
42  this.icons = icons;
43  addSclass("tri-icons");
44  }

◆ setState()

void org.turro.zkoss.input.Tristatebox.setState ( Checkbox.State  value)

Definition at line 46 of file Tristatebox.java.

46  {
47  switch(value) {
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"); } }
51  }
52  }

The documentation for this class was generated from the following file: