[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] classpath javax/swing/tree/DefaultTreeCellEdito...

From: Roman Kennke
Subject: [commit-cp] classpath javax/swing/tree/DefaultTreeCellEdito...
Date: Wed, 16 Aug 2006 19:28:50 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Roman Kennke <rabbit78> 06/08/16 19:28:50

Modified files:
        .              : ChangeLog 

Log message:
        2006-08-16  Roman Kennke  <address@hidden>
                PR 28750
                * javax/swing/plaf/basic/
                (CellEditorHandler.editingCancelled): Call completeEditing
                (CellEditorHandler.editingStopped): Call completeEditing
                (NodeDimensionHandler.getNodeDimensions): Rewritten
                to use the preferred sizes of the renderer and editor.
                (TreeExpansionHandler.treeCollapsed): Complete editing
                (TreeSelectionHandler.valueChanged): Complete editing
                (cancelEditing): Call completeEditing with false, false and
                false. Don't call finish (removed method).
                (completeEditing(boolean,boolean,boolean): Only do something 
                stopEditingInCompleteEditing is true. Nullify editingComponent
                and editingPath. Remove editingComponent from tree. Update
                the layout when necessary and repaint.
                (completeEditing): Stop editing when necessary.
                (editorRequestFocus): New helper method. Request focus
                on the actual editor.
                (finish) Removed. This is now done in completeEditing().
                (prepareForUIInstall): Set stopEditingInCompleteEditing to true.
                (setLargeModel): Complete editing here.
                (setRootVisible): Complete editing here.
                (setRowHeight): Complete editing here.
                (setSelectionModel): Complete editing here.
                (startEditing): Correctly initialize and start editing.
                (updateExpandedDescendants): Complete editing here.
                * javax/swing/tree/
                (DefaultTextField): Fetch size from super and use renderer's 
                if appropriate.
                (EditorContainer.EditorContainer): Set layout to null, just
                to make sure.
                (EditorContainer.doLayout): Layout so that the editor
                is offset to the right of the icon.
                (EditorContainer.getPreferredSize): Implemented to
                provide a reasonable preferred size.
                (EditorContainer.paint): Position icon in the middle.
                Also paint border if appropriate.
                (EditorContainer.setBounds): Removed.
                (RealEditorListener): Removed.
                (DefaultTreeCellEditor): Set correct border.
                (cancelCellEditing): Message real editor. Call finish().
                (createCellEditor): Don't add listener.
                (determineOffset): Correctly determine offset, and update
                the icon.
                (finish): New helper method.
                (getTreeCellEditorComponent): Set correct font. Call
                prepareForEditing() and determineOffset() to correctly 
                the state.
                (stopCellEditing): Messsage realEditor to stop editing. Call
                finish to clean up.
                (stopEditingTimer): Removed.
                (valueChanged): Correctly reset lastPath.
                * javax/swing/tree/
                (getPreferredSize): Return super plus some extra space for
                better readability.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]