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

Public Member Functions

 LabelValueGrid ()
 
String getLabelStyle ()
 
void setLabelStyle (String labelStyle)
 
String getValueStyle ()
 
void setValueStyle (String valueStyle)
 
LabelValueRow addLabelValue (HtmlBasedComponent label, HtmlBasedComponent value)
 
LabelValueRow addCaptionValue (HtmlBasedComponent caption, HtmlBasedComponent value)
 
LabelValueRow addButton (HtmlBasedComponent button)
 
void addSpace (String spacing)
 

Detailed Description

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

Definition at line 30 of file LabelValueGrid.java.

Constructor & Destructor Documentation

◆ LabelValueGrid()

org.turro.zkoss.label.LabelValueGrid.LabelValueGrid ( )

Definition at line 35 of file LabelValueGrid.java.

35  {
36  setSclass("none");
37  setZclass("none");
38  setOddRowSclass("none");
39  }

Member Function Documentation

◆ addButton()

LabelValueRow org.turro.zkoss.label.LabelValueGrid.addButton ( HtmlBasedComponent  button)

Definition at line 93 of file LabelValueGrid.java.

93  {
94  if(rows == null) {
95  rows = new Rows();
96  appendChild(rows);
97  }
98  LabelValueRow row = new LabelValueRow();
99  Cell cell = new Cell();
100  cell.setColspan(2);
101  cell.appendChild(button);
102  row.appendChild(cell);
103  rows.appendChild(row);
104  return row;
105  }

◆ addCaptionValue()

LabelValueRow org.turro.zkoss.label.LabelValueGrid.addCaptionValue ( HtmlBasedComponent  caption,
HtmlBasedComponent  value 
)

Definition at line 71 of file LabelValueGrid.java.

71  {
72  if(rows == null) {
73  rows = new Rows();
74  appendChild(rows);
75  }
76  if(labelStyle != null) caption.setStyle(labelStyle);
77  if(valueStyle != null) value.setStyle(valueStyle);
78  LabelValueRow row = new LabelValueRow();
79  Cell cell = new Cell();
80  cell.setColspan(2);
81  cell.appendChild(caption);
82  row.appendChild(cell);
83  rows.appendChild(row);
84  row = new LabelValueRow();
85  cell = new Cell();
86  cell.setColspan(2);
87  cell.appendChild(value);
88  row.appendChild(cell);
89  rows.appendChild(row);
90  return row;
91  }

◆ addLabelValue()

LabelValueRow org.turro.zkoss.label.LabelValueGrid.addLabelValue ( HtmlBasedComponent  label,
HtmlBasedComponent  value 
)

Definition at line 57 of file LabelValueGrid.java.

57  {
58  if(rows == null) {
59  rows = new Rows();
60  appendChild(rows);
61  }
62  if(labelStyle != null) label.setStyle(labelStyle);
63  if(valueStyle != null) value.setStyle(valueStyle);
64  LabelValueRow row = new LabelValueRow();
65  row.appendChild(label);
66  row.appendChild(value);
67  rows.appendChild(row);
68  return row;
69  }

◆ addSpace()

void org.turro.zkoss.label.LabelValueGrid.addSpace ( String  spacing)

Definition at line 107 of file LabelValueGrid.java.

107  {
108  if(rows == null) {
109  rows = new Rows();
110  appendChild(rows);
111  }
112  LabelValueRow row = new LabelValueRow();
113  Separator separator = new Separator("vertical");
114  separator.setSpacing(spacing);
115  Cell cell = new Cell();
116  cell.setColspan(2);
117  cell.appendChild(separator);
118  row.appendChild(cell);
119  rows.appendChild(row);
120  }

◆ getLabelStyle()

String org.turro.zkoss.label.LabelValueGrid.getLabelStyle ( )

Definition at line 41 of file LabelValueGrid.java.

41  {
42  return labelStyle;
43  }

◆ getValueStyle()

String org.turro.zkoss.label.LabelValueGrid.getValueStyle ( )

Definition at line 49 of file LabelValueGrid.java.

49  {
50  return valueStyle;
51  }

◆ setLabelStyle()

void org.turro.zkoss.label.LabelValueGrid.setLabelStyle ( String  labelStyle)

Definition at line 45 of file LabelValueGrid.java.

45  {
46  this.labelStyle = labelStyle;
47  }

◆ setValueStyle()

void org.turro.zkoss.label.LabelValueGrid.setValueStyle ( String  valueStyle)

Definition at line 53 of file LabelValueGrid.java.

53  {
54  this.valueStyle = valueStyle;
55  }

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