CVSROOT: /cvsroot/classpath Module name: classpath Branch: Changes by: Lillian Angel <[EMAIL PROTECTED]> 05/09/01 15:16:15
Modified files: . : ChangeLog javax/swing/plaf/basic: BasicTreeUI.java javax/swing/tree: DefaultTreeCellEditor.java DefaultTreeModel.java Log message: 2005-09-01 Lillian Angel <[EMAIL PROTECTED]> * javax/swing/plaf/basic/BasicTreeUI.java: Added new field to keep track of contents in newly edited cell. (isEditing): Made more intuitive. (stopEditing): Changed because it was causing an infinite loop. (installUI): Should be set to true when set. (completeEditing): Passed newVal to valueForPathChanged instead. (EditorTimerUpdate): Made timer faster because was not working well. (actionPerformed): No need for 'BasicTreeUI.this.' (update): Likewise. (editingStopped): Likewise. Also, set newVal to appropriate value. (editingCanceled): Likewise. (keyPressed): Likewise. (mousePressed): Likewise. (treeExpanded): Likewise. (treeCollapsed): Likewise. (treeNodesChanged): Likewise. (TreeNodesInserted): Likewise. (treeNodesRemoved): Likewise. (treeStructureChanged): Likewise. (valueChanged): Editing is canceled when a new cell is clicked. (getCellBounds): Initialized row for path. * javax/swing/tree/DefaultTreeCellEditor.java (startEditingTimer): No need to start timer if it is already set. * javax/swing/tree/DefaultTreeModel.java (valueForPathChanged): Fixed so value of node is changed only if it is a MutableTreeNode. Otherwise, it cannot be changed. Also, implemented with check if root node is the node being changed. (nodeChanged): Should get the path of the node, not the parent. CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.4607&tr2=1.4608&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/plaf/basic/BasicTreeUI.java.diff?tr1=1.71&tr2=1.72&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/tree/DefaultTreeCellEditor.java.diff?tr1=1.13&tr2=1.14&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/javax/swing/tree/DefaultTreeModel.java.diff?tr1=1.15&tr2=1.16&r1=text&r2=text