01: /*
02: * SwingML Copyright (C) 2002 SwingML Team
03: *
04: * This library is free software; you can redistribute it and/or modify it under
05: * the terms of the GNU Lesser General Public License as published by the Free
06: * Software Foundation; either version 2 of the License, or (at your option) any
07: * later version.
08: *
09: * This library is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12: * details.
13: *
14: * You should have received a copy of the GNU Lesser General Public License
15: * along with this library; if not, write to the Free Software Foundation, Inc.,
16: * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: * Authors: Robert Morris <robertj@morris.net>
19: *
20: */
21:
22: package org.swingml.component;
23:
24: import javax.swing.*;
25:
26: import org.swingml.*;
27: import org.swingml.model.*;
28:
29: public class DataStoreComponent extends JComponent implements
30: XMLTranslatable {
31:
32: private DataStoreModel model = null;
33:
34: public DataStoreComponent(DataStoreModel aModel) {
35: this .model = aModel;
36: }
37:
38: public String getName() {
39: return this .model.getName();
40: }
41:
42: public String getValue() {
43: return this .model.getValue();
44: }
45:
46: public void setValue(String aValue) {
47: this .model.setValue(aValue);
48: }
49:
50: public String getXMLValue() {
51: return getValue();
52: }
53: }
|