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

Public Member Functions

 SelectedLink ()
 
void setSelectedClass (String sclass)
 
void setUnselectedClass (String sclass)
 
boolean isSelected ()
 
void setSelected (boolean selected)
 

Detailed Description

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

Definition at line 30 of file SelectedLink.java.

Constructor & Destructor Documentation

◆ SelectedLink()

org.turro.zkoss.input.SelectedLink.SelectedLink ( )

Definition at line 35 of file SelectedLink.java.

35  {
36  addEventListener(Events.ON_CLICK, (event) -> {
37  setSelected(!selected);
38  });
39  }

Member Function Documentation

◆ isSelected()

boolean org.turro.zkoss.input.SelectedLink.isSelected ( )

Definition at line 49 of file SelectedLink.java.

49  {
50  return selected;
51  }

◆ setSelected()

void org.turro.zkoss.input.SelectedLink.setSelected ( boolean  selected)

Definition at line 53 of file SelectedLink.java.

53  {
54  this.selected = selected;
55  if(selected) {
56  setSclass(selectedClass);
57  } else {
58  setSclass(unselectedClass);
59  }
60  }

◆ setSelectedClass()

void org.turro.zkoss.input.SelectedLink.setSelectedClass ( String  sclass)

Definition at line 41 of file SelectedLink.java.

41  {
42  selectedClass = sclass;
43  }

◆ setUnselectedClass()

void org.turro.zkoss.input.SelectedLink.setUnselectedClass ( String  sclass)

Definition at line 45 of file SelectedLink.java.

45  {
46  unselectedClass = sclass;
47  }

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