01: package gnu.kawa.models;
02:
03: /** A "label" may have some text and/or an icon.
04: * It probably should be a combination of text and image. */
05:
06: public class Label extends Model implements Viewable,
07: java.io.Serializable {
08: String text;
09:
10: public Label() {
11: }
12:
13: public Label(String text) {
14: this .text = text;
15: }
16:
17: public void makeView(Display display, Object where) {
18: display.addLabel(this , where);
19: }
20:
21: public String getText() {
22: return text;
23: }
24:
25: public void setText(String text) {
26: this .text = text;
27: notifyListeners("text");
28: }
29: }
|