01: // @@
02: // @@
03: /*
04: * Wi.Ser Framework
05: *
06: * Version: 1.8.1, 20-September-2007
07: * Copyright (C) 2005 Dirk von der Weiden <dvdw@imail.de>
08: *
09: * This library is free software; you can redistribute it and/or
10: * modify it under the terms of the GNU Lesser General Public
11: * License as published by the Free Software Foundation; either
12: * version 2 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful,
15: * but WITHOUT ANY WARRANTY; without even the implied warranty of
16: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17: * Lesser General Public License for more details.
18: *
19: * You should have received a copy of the GNU Lesser General Public
20: * License along with this library located in LGPL.txt in the
21: * license directory; if not, write to the
22: * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23: * Boston, MA 02111-1307, USA.
24: *
25: * If this agreement does not cover your requirements, please contact us
26: * via email to get detailed information about the commercial license
27: * or our service offerings!
28: *
29: */
30: // @@
31: package de.ug2t.model;
32:
33: import de.ug2t.model.values.*;
34:
35: public class MoObserver implements IMoObserver {
36: private String pem_bgCol = "white";
37: private String pem_toolTip = null;
38:
39: /**
40: *
41: */
42: public MoObserver() {
43: return;
44: }
45:
46: public MoObserver(String xToolTip) {
47: this .pem_toolTip = xToolTip;
48:
49: return;
50: }
51:
52: public MoObserver(String xBgColor, String xToolTip) {
53: this .pem_bgCol = xBgColor;
54: this .pem_toolTip = xToolTip;
55:
56: return;
57: }
58:
59: /**
60: * <p>
61: * Does...
62: * </p>
63: * <p>
64: *
65: * @return a Type with
66: * </p>
67: * <p>
68: * @param
69: * </p>
70: */
71: public boolean pcmf_modelChanged(IMoValue xValue) {
72: if (xValue.pcmf_getUiMap() != null) {
73: xValue.pcmf_getUiMap().pcmf_setBgColor(this .pem_bgCol);
74: if (this .pem_toolTip != null)
75: xValue.pcmf_getUiMap().pcmf_setToolTip(pem_toolTip);
76: }
77: ;
78:
79: return (true);
80: }
81: }
|