1 package org.catacomb.druid.gui.base;
2
3
4 import org.catacomb.druid.swing.DLabel;
5 import org.catacomb.report.E;
6
7 import java.awt.Color;
8
9
10 public class DruLabel {
11
12 static final long serialVersionUID = 1001;
13
14 String text;
15
16 DLabel dLabel;
17
18
19 public DruLabel(String lab) {
20 this(lab, "left");
21 }
22
23 public DruLabel(String lab, String align) {
24 text = lab;
25 if (align != null && align.equals("right")) {
26 dLabel = new DLabel(text, DLabel.TRAILING);
27
28 } else {
29 dLabel = new DLabel(text);
30 }
31 }
32
33
34 public DLabel getGUIPeer() {
35 return dLabel;
36 }
37
38 public void setText(String s) {
39 dLabel.setText(s);
40 }
41
42 public void setFontBold() {
43 dLabel.setFontBold();
44 }
45
46 public void setBg(Color c) {
47 E.info("label setting bg " + c);
48 dLabel.setBg(c);
49 }
50 public void setFg(Color c) {
51 dLabel.setFg(c);
52 }
53
54
55 }