01: package net.xoetrope.builder.editor.plugin;
02:
03: import javax.swing.table.TableCellEditor;
04:
05: /**
06: * <p>Copyright (c) Xoetrope Ltd., 1998-2004</p>
07: * @version 1.0
08: */
09:
10: public class PropertiesData {
11: public static final int NAME_INDEX = 0;
12: public static final int VALUE_INDEX = 1;
13: public static final int NUM_ITEMS = 2;
14:
15: private String[] properties;
16:
17: private TableCellEditor cellEditor;
18:
19: public PropertiesData() {
20: properties = new String[NUM_ITEMS];
21: }
22:
23: public void setCellEditor(TableCellEditor editor) {
24: cellEditor = editor;
25: }
26:
27: public void setPropertyName(String name) {
28: properties[NAME_INDEX] = name;
29: }
30:
31: public void setPropertyValue(String value) {
32: properties[VALUE_INDEX] = value;
33: }
34:
35: public String getPropertyName() {
36: return properties[NAME_INDEX];
37: }
38:
39: public String[] getProperties() {
40: return properties;
41: }
42:
43: public TableCellEditor getCellEditor() {
44: return cellEditor;
45: }
46: }
|