/* (non-Javadoc) * @see org.jdesktop.swingx.treetable.DefaultTreeTableModel#isCellEditable(java.lang.Object, int) */ @Override public boolean isCellEditable(Object obj, int column) { if (obj instanceof DBObjectTreeTableNode) { DBObjectTreeTableNode node = (DBObjectTreeTableNode) obj; if (node.isLeaf() && column == 1) { return true; } } return false; }
/* (non-Javadoc) * @see org.jdesktop.swingx.treetable.DefaultTreeTableModel#setValueAt(java.lang.Object, java.lang.Object, int) */ @Override public void setValueAt(Object value, Object node, int column) { if (node != null && node instanceof DBObjectTreeTableNode) { DBObjectTreeTableNode userNode = (DBObjectTreeTableNode) node; TreeTableNode parent = userNode.getParent(); while (parent.getParent() != root) { parent = parent.getParent(); } userNode = (UserTreeTableNode) parent; String userId = (String) userNode.getKey(); userNodeSet.put(userId, userNode); } super.setValueAt(value, node, column); }