BrightSide Workbench Full Report + Source Code
LabelAdapter.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2011 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 package org.turro.zkoss.label;
19 
20 import org.zkoss.zul.Label;
21 
26 public class LabelAdapter {
27 
28  private Label label;
29 
30  public LabelAdapter(Label label) {
31  this.label = label;
32  }
33 
34  public Label setWidth(String width) {
35  label.setWidth(width);
36  return label;
37  }
38 
39  public Label setVflex(String flex) {
40  label.setVflex(flex);
41  return label;
42  }
43 
44  public Label setStyle(String style) {
45  label.setStyle(style);
46  return label;
47  }
48 
49  public Label setSclass(String sclass) {
50  label.setSclass(sclass);
51  return label;
52  }
53 
54  public Label setHflex(String flex) {
55  label.setHflex(flex);
56  return label;
57  }
58 
59  public Label setHeight(String height) {
60  label.setHeight(height);
61  return label;
62  }
63 
64  public Label setFocus(boolean focus) {
65  label.setFocus(focus);
66  return label;
67  }
68 
69  public Label setValue(String value) {
70  label.setValue(value);
71  return label;
72  }
73 
74  public Label setPre(boolean pre) {
75  label.setPre(pre);
76  return label;
77  }
78 
79  public Label setMultiline(boolean multiline) {
80  label.setMultiline(multiline);
81  return label;
82  }
83 
84  public Label setMaxlength(int maxlength) {
85  label.setMaxlength(maxlength);
86  return label;
87  }
88 
89  public Label setTooltiptext(String text) {
90  label.setTooltiptext(text);
91  return label;
92  }
93 
94 }
Label setMaxlength(int maxlength)
Label setMultiline(boolean multiline)