01: package fr.aliacom.common.ui.table;
02:
03: import fr.aliacom.common.ui.ITable;
04: import fr.aliacom.form.common.IFormComponent;
05:
06: /**
07: * @author tom
08: *
09: * (C) 2001, 2003 Thomas Cataldo
10: */
11: public final class ColumnView implements IFormComponent {
12:
13: private ICellEditor editor;
14: private ICellRenderer renderer;
15: private ITable table;
16: private String property;
17:
18: public ColumnView(ITable table, String property) {
19: this .table = table;
20: this .property = property;
21: }
22:
23: /**
24: * Returns the editor.
25: * @return ICellEditor
26: */
27: public ICellEditor getEditor() {
28: return editor;
29: }
30:
31: /**
32: * Returns the renderer.
33: * @return ICellRenderer
34: */
35: public ICellRenderer getRenderer() {
36: return renderer;
37: }
38:
39: /**
40: * Sets the editor.
41: * @param editor The editor to set
42: */
43: public void setEditor(ICellEditor editor) {
44: this .editor = editor;
45: }
46:
47: /**
48: * Sets the renderer.
49: * @param renderer The renderer to set
50: */
51: public void setRenderer(ICellRenderer renderer) {
52: this .renderer = renderer;
53: }
54:
55: /**
56: * @see fr.aliacom.form.common.IFormComponent#getNativeWidget()
57: */
58: public Object getNativeWidget() {
59: return table.getNativeWidget();
60: }
61:
62: /**
63: * @see fr.aliacom.form.common.IFormComponent#reset()
64: */
65: public void reset() {
66: }
67:
68: /**
69: * @see fr.aliacom.form.common.IFormComponent#setValueBean(java.lang.Object)
70: */
71: public void setValueBean(Object bean) {
72: }
73:
74: /**
75: * Method getProperty.
76: */
77: public String getProperty() {
78: return property;
79: }
80:
81: /**
82: * Method getTable.
83: */
84: public ITable getTable() {
85: return table;
86: }
87:
88: }
|