BrightSide Workbench Full Report + Source Code
LabelTypes.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 LabelTypes {
27 
28  public static Label getSoftLabel(String value) {
29  Label l = new Label(value);
30  l.setSclass("softLabel");
31  return l;
32  }
33 
34  public static Label getTinyLabel(String value) {
35  Label l = new Label(value);
36  l.setSclass("tinyLabel");
37  return l;
38  }
39 
40  public static Label getCaptionLabel(String value) {
41  Label l = new Label(value);
42  l.setSclass("captionLabel");
43  return l;
44  }
45 
46  public static Label getGridCaptionLabel(String value) {
47  Label l = new Label(value);
48  l.setSclass("grid-caption");
49  return l;
50  }
51 
52  public static Label getPreLabel(String value) {
53  Label l = new Label(value);
54  l.setSclass("preLabel");
55  l.setPre(true);
56  return l;
57  }
58 
59  public static Label getEmptyLabel() {
60  return new Label("");
61  }
62 
63  private LabelTypes() {
64  }
65 
66 }
static Label getCaptionLabel(String value)
Definition: LabelTypes.java:40
static Label getPreLabel(String value)
Definition: LabelTypes.java:52
static Label getGridCaptionLabel(String value)
Definition: LabelTypes.java:46
static Label getTinyLabel(String value)
Definition: LabelTypes.java:34
static Label getSoftLabel(String value)
Definition: LabelTypes.java:28