Revision 3566 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/utils/xmlTreeTable/XMLTreeTable.java
XMLTreeTable.java | ||
---|---|---|
1 |
|
|
1 | 2 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
2 | 3 |
* |
3 | 4 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
... | ... | |
39 | 40 |
* dac@iver.es |
40 | 41 |
*/ |
41 | 42 |
package es.gva.cit.catalogClient.utils.xmlTreeTable; |
42 |
|
|
43 |
import javax.swing.JComponent; |
|
44 |
import javax.swing.JTree; |
|
43 | 45 |
import next.swing.JTreeTable; |
44 | 46 |
import next.swing.TreeTableModel; |
45 | 47 |
|
46 |
import javax.swing.JComponent; |
|
47 |
import javax.swing.JTree; |
|
48 |
|
|
49 |
|
|
50 | 48 |
/** |
49 |
* |
|
50 |
* |
|
51 |
* |
|
51 | 52 |
* @author Jorge Piera Llodra (piera_jor@gva.es) |
52 | 53 |
*/ |
53 | 54 |
public class XMLTreeTable extends JTreeTable { |
54 |
public XMLTreeTable(TreeTableModel treeTableModel) { |
|
55 |
|
|
56 |
/** |
|
57 |
* |
|
58 |
* |
|
59 |
* |
|
60 |
* @param treeTableModel |
|
61 |
*/ |
|
62 |
public XMLTreeTable(TreeTableModel treeTableModel) { |
|
55 | 63 |
super(treeTableModel); |
56 | 64 |
tree.setCellRenderer(new XMLTreeCellRenderer()); |
57 | 65 |
setDefaultEditor(JComponent.class, new XMLTreeTableCellEditor()); |
58 |
} |
|
66 |
}
|
|
59 | 67 |
|
60 |
public JTree getTree() { |
|
68 |
/** |
|
69 |
* |
|
70 |
* |
|
71 |
* |
|
72 |
* @return |
|
73 |
*/ |
|
74 |
public JTree getTree() { |
|
61 | 75 |
return tree; |
62 |
} |
|
76 |
}
|
|
63 | 77 |
|
64 |
public boolean isCellEditable(int x, int y) { |
|
78 |
/** |
|
79 |
* |
|
80 |
* |
|
81 |
* |
|
82 |
* @return |
|
83 |
* @param x |
|
84 |
* @param y |
|
85 |
*/ |
|
86 |
public boolean isCellEditable(int x, int y) { |
|
65 | 87 |
return true; |
66 |
} |
|
67 |
} |
|
88 |
} |
|
89 |
} |
Also available in: Unified diff