[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: JTree Editing
From: |
Lillian Angel |
Subject: |
[cp-patches] Patch: JTree Editing |
Date: |
Mon, 29 Aug 2005 17:21:57 -0400 |
I am still working on JTree editing. I have not yet implemented the keys
to start/stop editing, so it is still not test-able. So far, it works to
start editing and stop editing with mouse-clicks. I have not finished
completing editing (updating the nodes text), or implemented all the key
handling to do this. It is about half done.
Also, I added in a change for JPasswordField that was requested by Mark
and Roman.
The patch is rather cumbersome, keep in mind not everything is
completed... so things will probably change slightly.
2005-08-29 Lillian Angel <address@hidden>
* javax/swing/JPasswordField.java
(getText): Changed to pass error to AssertionError.
* javax/swing/plaf/basic/BasicTreeUI.java
(setCellEditor): Updated boolean when appropriate.
(stopEditing): Took out redundant code.
(updateCellEditor): Updated boolean when appropriate.
(installListeners): Took out CellEditorListener. It is added
when the cellEditor is set.
(installUI): Similar.
(ensureRowsAreVisible): Fixed API documentation
(startEditing): Fixed to add editing container to the tree.
(checkForClickInExpandControl): Fixed API documentation.
(editingStopped): Added code to remove listeners and container.
(editingCanceled): Similar.
(mousePressed): Updated to stop editing when a different cell
is clicked.
(treeNodesChanged): Called repaint.
(treeNodesRemoved): Likewise.
(treeStructureChanged): Likewise.
(paintNode): Updated to paint a node that is being edited.
(paintRecursive): Fixed API documentation.
* javax/swing/tree/DefaultTreeCellEditor.java
(paint): Fixed to paint icon and text box in correct location
with correct spacing.
(doLayout): Fixed API documentation.
(DefaultTreeCellEditor): Took out call to configure editing
component.
(configureEditingComponent): Initialized editing icon.
(getTreeCellEditorComponent): Took out code to stop editing.
Not needed.
(addCellEditorListener): Passed on to realEditor.
(removeCellEditorListener): Likewise.
patch.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: JTree Editing,
Lillian Angel <=