001: package org.swingml.treetablebrowser.ext;
002:
003: import java.awt.*;
004: import java.awt.event.*;
005: import java.util.*;
006: import java.util.List;
007:
008: import javax.swing.event.*;
009: import javax.swing.tree.*;
010:
011: import org.swingml.*;
012: import org.swingml.component.*;
013: import org.swingml.errors.*;
014: import org.swingml.errors.handlers.*;
015:
016: public class TreeTableBrowserCellUpdateModel extends
017: TreeTableBrowserModel {
018:
019: private int column;
020: private Object node;
021: private TreeTableBrowserModel treeTableBrowserModel;
022: private Object value;
023:
024: public TreeTableBrowserCellUpdateModel(TreeTableBrowserModel model,
025: Object node, Object value, int column) {
026: super ();
027: treeTableBrowserModel = model;
028: setNode(node);
029: setValue(value);
030: setColumn(column);
031: }
032:
033: public void addChild(Object aChild) {
034: treeTableBrowserModel.addChild(aChild);
035: }
036:
037: public void addHandler(int errorType, ISwingMLErrorHandler handler) {
038: treeTableBrowserModel.addHandler(errorType, handler);
039: }
040:
041: public void addListener(Object aListener) {
042: treeTableBrowserModel.addListener(aListener);
043: }
044:
045: public void addTreeModelListener(TreeModelListener l) {
046: treeTableBrowserModel.addTreeModelListener(l);
047: }
048:
049: public void applyFilters() {
050: treeTableBrowserModel.applyFilters();
051: }
052:
053: public void collapse(String s) {
054: treeTableBrowserModel.collapse(s);
055: }
056:
057: public boolean equals(Object obj) {
058: return treeTableBrowserModel.equals(obj);
059: }
060:
061: public void expand(String s) {
062: treeTableBrowserModel.expand(s);
063: }
064:
065: public ColorComponent getBackground() {
066: return treeTableBrowserModel.getBackground();
067: }
068:
069: public TreeTableBrowser getBrowser() {
070: return treeTableBrowserModel.getBrowser();
071: }
072:
073: public Object getChild(Object parent, int index) {
074: return treeTableBrowserModel.getChild(parent, index);
075: }
076:
077: public int getChildCount(Object parent) {
078: return treeTableBrowserModel.getChildCount(parent);
079: }
080:
081: public List getChildren() {
082: return treeTableBrowserModel.getChildren();
083: }
084:
085: public int getColumn() {
086: return column;
087: }
088:
089: public Class getColumnClass(int aColumn) {
090: return treeTableBrowserModel.getColumnClass(aColumn);
091: }
092:
093: public int getColumnCount() {
094: return treeTableBrowserModel.getColumnCount();
095: }
096:
097: public String getColumnName(int aColumn) {
098: return treeTableBrowserModel.getColumnName(aColumn);
099: }
100:
101: public List getColumns() {
102: return treeTableBrowserModel.getColumns();
103: }
104:
105: public Container getContainer() {
106: return treeTableBrowserModel.getContainer();
107: }
108:
109: public Map getErrorHandlers() {
110: return treeTableBrowserModel.getErrorHandlers();
111: }
112:
113: public List getExpanded() {
114: return treeTableBrowserModel.getExpanded();
115: }
116:
117: public String getExpandToNodeName() {
118: return treeTableBrowserModel.getExpandToNodeName();
119: }
120:
121: public String getFontName() {
122: return treeTableBrowserModel.getFontName();
123: }
124:
125: public String getFontSize() {
126: return treeTableBrowserModel.getFontSize();
127: }
128:
129: public String getFontStyle() {
130: return treeTableBrowserModel.getFontStyle();
131: }
132:
133: public ColorComponent getForeground() {
134: return treeTableBrowserModel.getForeground();
135: }
136:
137: public Long getGuid() {
138: return treeTableBrowserModel.getGuid();
139: }
140:
141: public ISwingMLErrorHandler[] getHandlers(int errorType) {
142: return treeTableBrowserModel.getHandlers(errorType);
143: }
144:
145: public int getHeight() {
146: return treeTableBrowserModel.getHeight();
147: }
148:
149: public String getIcon() {
150: return treeTableBrowserModel.getIcon();
151: }
152:
153: public String getId() {
154: return treeTableBrowserModel.getId();
155: }
156:
157: public int getIndexOfChild(Object parent, Object child) {
158: return treeTableBrowserModel.getIndexOfChild(parent, child);
159: }
160:
161: public String getLayout() {
162: return treeTableBrowserModel.getLayout();
163: }
164:
165: public List getListeners() {
166: return treeTableBrowserModel.getListeners();
167: }
168:
169: public String getName() {
170: return treeTableBrowserModel.getName();
171: }
172:
173: public Object getNode() {
174: return node;
175: }
176:
177: public String getOrientation() {
178: return treeTableBrowserModel.getOrientation();
179: }
180:
181: public AbstractSwingMLModel getParent() {
182: return treeTableBrowserModel.getParent();
183: }
184:
185: public int getPostColumn() {
186: return treeTableBrowserModel.getPostColumn();
187: }
188:
189: public int[] getPostColumns() {
190: return treeTableBrowserModel.getPostColumns();
191: }
192:
193: public String getPostStyle() {
194: return treeTableBrowserModel.getPostStyle();
195: }
196:
197: public Object getRoot() {
198: return treeTableBrowserModel.getRoot();
199: }
200:
201: public String getText() {
202: return treeTableBrowserModel.getText();
203: }
204:
205: public String getTooltip() {
206: return treeTableBrowserModel.getTooltip();
207: }
208:
209: public List getTreeTableColumns() {
210: return treeTableBrowserModel.getTreeTableColumns();
211: }
212:
213: public TreeTableBrowserTreeModel getTreeTableTree() {
214: return treeTableBrowserModel.getTreeTableTree();
215: }
216:
217: public Object getValue() {
218: return value;
219: }
220:
221: public Object getValueAt(Object aNode, int aColumn) {
222: return treeTableBrowserModel.getValueAt(aNode, aColumn);
223: }
224:
225: public int getWidth() {
226: return treeTableBrowserModel.getWidth();
227: }
228:
229: public void handle(ISwingMLError[] errors) {
230: treeTableBrowserModel.handle(errors);
231: }
232:
233: public int hashCode() {
234: return treeTableBrowserModel.hashCode();
235: }
236:
237: public boolean isCellEditable(Object aNode, int aColumn) {
238: return treeTableBrowserModel.isCellEditable(aNode, aColumn);
239: }
240:
241: public boolean isHandlingEvent() {
242: return treeTableBrowserModel.isHandlingEvent();
243: }
244:
245: public boolean isLeaf(Object aNode) {
246: return treeTableBrowserModel.isLeaf(aNode);
247: }
248:
249: public boolean isVisible() {
250: return treeTableBrowserModel.isVisible();
251: }
252:
253: public int locateColumnIndex(String colId) {
254: return treeTableBrowserModel.locateColumnIndex(colId);
255: }
256:
257: public String locateColumnName(int col) {
258: return treeTableBrowserModel.locateColumnName(col);
259: }
260:
261: public SwingMLModel locateRow(String id) {
262: return treeTableBrowserModel.locateRow(id);
263: }
264:
265: public void removeChild(Object aChild) {
266: treeTableBrowserModel.removeChild(aChild);
267: }
268:
269: public void removeHandler(int errorType,
270: ISwingMLErrorHandler handler) {
271: treeTableBrowserModel.removeHandler(errorType, handler);
272: }
273:
274: public void removeHandlers(int errorType) {
275: treeTableBrowserModel.removeHandlers(errorType);
276: }
277:
278: public void removeTreeModelListener(TreeModelListener l) {
279: treeTableBrowserModel.removeTreeModelListener(l);
280: }
281:
282: public void setBackground(ColorComponent component) {
283: treeTableBrowserModel.setBackground(component);
284: }
285:
286: public void setBrowser(TreeTableBrowser aBrowser) {
287: treeTableBrowserModel.setBrowser(aBrowser);
288: }
289:
290: private void setColumn(int column) {
291: this .column = column;
292: }
293:
294: public void setContainer(Container aContainer) {
295: treeTableBrowserModel.setContainer(aContainer);
296: }
297:
298: public void setErrorHandlers(Map handlers) {
299: treeTableBrowserModel.setErrorHandlers(handlers);
300: }
301:
302: public void setExpandToNodeName(String s) {
303: treeTableBrowserModel.setExpandToNodeName(s);
304: }
305:
306: public void setFontName(String string) {
307: treeTableBrowserModel.setFontName(string);
308: }
309:
310: public void setFontSize(String string) {
311: treeTableBrowserModel.setFontSize(string);
312: }
313:
314: public void setFontStyle(String string) {
315: treeTableBrowserModel.setFontStyle(string);
316: }
317:
318: public void setForeground(ColorComponent component) {
319: treeTableBrowserModel.setForeground(component);
320: }
321:
322: public void setGuid(Long guid) {
323: treeTableBrowserModel.setGuid(guid);
324: }
325:
326: public void setHandlingEvent(boolean handlingEvent) {
327: treeTableBrowserModel.setHandlingEvent(handlingEvent);
328: }
329:
330: public void setHeight(int aHeight) {
331: treeTableBrowserModel.setHeight(aHeight);
332: }
333:
334: public void setIcon(String anIcon) {
335: treeTableBrowserModel.setIcon(anIcon);
336: }
337:
338: public void setId(String id) {
339: treeTableBrowserModel.setId(id);
340: }
341:
342: public void setLayout(String aLayout) {
343: treeTableBrowserModel.setLayout(aLayout);
344: }
345:
346: public void setName(String aName) {
347: treeTableBrowserModel.setName(aName);
348: }
349:
350: private void setNode(Object node) {
351: this .node = node;
352: }
353:
354: public void setOrientation(String anOrientation) {
355: treeTableBrowserModel.setOrientation(anOrientation);
356: }
357:
358: public void setParent(AbstractSwingMLModel aParent) {
359: treeTableBrowserModel.setParent(aParent);
360: }
361:
362: public void setPostColumn(int column) {
363: treeTableBrowserModel.setPostColumn(column);
364: }
365:
366: public void setPostColumns(int[] columns) {
367: treeTableBrowserModel.setPostColumns(columns);
368: }
369:
370: public void setPostColumns(String columns) {
371: treeTableBrowserModel.setPostColumns(columns);
372: }
373:
374: public void setPostStyle(String style) {
375: treeTableBrowserModel.setPostStyle(style);
376: }
377:
378: public void setRoot(Object aRoot) {
379: treeTableBrowserModel.setRoot(aRoot);
380: }
381:
382: public void setText(String aText) {
383: treeTableBrowserModel.setText(aText);
384: }
385:
386: public void setTooltip(String aTooltip) {
387: treeTableBrowserModel.setTooltip(aTooltip);
388: }
389:
390: public void setTreeTableColumns(List aTreeTableColumns) {
391: treeTableBrowserModel.setTreeTableColumns(aTreeTableColumns);
392: }
393:
394: public void setTreeTableTree(
395: TreeTableBrowserTreeModel aTreeTableTree) {
396: treeTableBrowserModel.setTreeTableTree(aTreeTableTree);
397: }
398:
399: private void setValue(Object value) {
400: this .value = value;
401: }
402:
403: public void setValueAt(Object aValue, Object node, int column) {
404: treeTableBrowserModel.setValueAt(aValue, node, column);
405: }
406:
407: public void setVisible(boolean aVisible) {
408: treeTableBrowserModel.setVisible(aVisible);
409: }
410:
411: public void setWidth(int aWidth) {
412: treeTableBrowserModel.setWidth(aWidth);
413: }
414:
415: public void sort() {
416: treeTableBrowserModel.sort();
417: }
418:
419: public String toString() {
420: return treeTableBrowserModel.toString();
421: }
422:
423: public List treeNodes() {
424: return treeTableBrowserModel.treeNodes();
425: }
426:
427: public void unregister(Container container) {
428: treeTableBrowserModel.unregister(container);
429: }
430:
431: public void update(String rowId, String colId, Object aValue) {
432: treeTableBrowserModel.update(rowId, colId, aValue);
433: }
434:
435: public void validate() {
436: treeTableBrowserModel.validate();
437: }
438:
439: public void valueForPathChanged(TreePath path, Object newValue) {
440: treeTableBrowserModel.valueForPathChanged(path, newValue);
441: }
442:
443: public void windowActivated(WindowEvent e) {
444: treeTableBrowserModel.windowActivated(e);
445: }
446:
447: public void windowClosed(WindowEvent e) {
448: treeTableBrowserModel.windowClosed(e);
449: }
450:
451: public void windowClosing(WindowEvent e) {
452: treeTableBrowserModel.windowClosing(e);
453: }
454:
455: public void windowDeactivated(WindowEvent e) {
456: treeTableBrowserModel.windowDeactivated(e);
457: }
458:
459: public void windowDeiconified(WindowEvent e) {
460: treeTableBrowserModel.windowDeiconified(e);
461: }
462:
463: public void windowIconified(WindowEvent e) {
464: treeTableBrowserModel.windowIconified(e);
465: }
466:
467: public void windowOpened(WindowEvent e) {
468: treeTableBrowserModel.windowOpened(e);
469: }
470: }
|