Revision 8238 trunk/libraries/libUI/src/org/gvsig/gui/beans/swing/treeTable/AbstractTreeTableModel.java
AbstractTreeTableModel.java | ||
---|---|---|
49 | 49 |
* |
50 | 50 |
* $Id$ |
51 | 51 |
* $Log$ |
52 |
* Revision 1.1 2006-10-23 08:18:39 jorpiell |
|
52 |
* Revision 1.2 2006-10-23 11:13:55 jorpiell |
|
53 |
* A?adida la posibilidad de recargar el ?rbol tantas veces como queramos |
|
54 |
* |
|
55 |
* Revision 1.1 2006/10/23 08:18:39 jorpiell |
|
53 | 56 |
* A?adida la clase treetable |
54 | 57 |
* |
55 | 58 |
* |
... | ... | |
62 | 65 |
protected EventListenerList listenerList = new EventListenerList(); |
63 | 66 |
|
64 | 67 |
public AbstractTreeTableModel(Object root) { |
65 |
if (root instanceof Object[]){ |
|
68 |
setNodes(root); |
|
69 |
} |
|
70 |
|
|
71 |
public void setNodes(Object root){ |
|
72 |
if (root == null){ |
|
73 |
this.root = new Root(new Object[0]); |
|
74 |
}else if (root instanceof Object[]){ |
|
66 | 75 |
this.root = new Root((Object[])root); |
67 | 76 |
}else{ |
68 | 77 |
this.root = root; |
Also available in: Unified diff