01: /*
02: JSmooth: a VM wrapper toolkit for Windows
03: Copyright (C) 2003-2007 Rodrigo Reyes <reyes@charabia.net>
04:
05: This program is free software; you can redistribute it and/or modify
06: it under the terms of the GNU General Public License as published by
07: the Free Software Foundation; either version 2 of the License, or
08: (at your option) any later version.
09:
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 General Public License for more details.
14:
15: You should have received a copy of the GNU General Public License
16: along with this program; if not, write to the Free Software
17: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18:
19: */
20:
21: package net.charabia.jsmoothgen.application.gui.skeleditors;
22:
23: import net.charabia.jsmoothgen.skeleton.*;
24: import net.charabia.jsmoothgen.application.*;
25: import net.charabia.jsmoothgen.application.gui.*;
26: import net.charabia.jsmoothgen.application.gui.util.*;
27:
28: import net.charabia.jsmoothgen.skeleton.*;
29:
30: abstract public class SkelPropEditor {
31: protected SkeletonProperty m_property;
32:
33: public void bind(SkeletonProperty prop) {
34: m_property = prop;
35: }
36:
37: public String getIdName() {
38: return m_property.getIdName();
39: }
40:
41: public boolean labelAtLeft() {
42: return true;
43: }
44:
45: public abstract java.awt.Component getGUI();
46:
47: public abstract void valueChanged(String val);
48:
49: public abstract void set(String o);
50:
51: public abstract String get();
52: // {
53: // System.out.println("setvalue of " + o + " on " + m_property);
54: // m_property.setValue(o.toString());
55: // }
56:
57: // {
58: // System.out.println("getvalue from " + m_property + "=" + m_property.getValue());
59: // return m_property.getValue();
60: // }
61:
62: }
|