[Top][All Lists]

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

[commit-cp] classpath javax/swing/plaf/basic/BasicTreeUI.ja...

From: Roman Kennke
Subject: [commit-cp] classpath javax/swing/plaf/basic/BasicTreeUI.ja...
Date: Tue, 15 Aug 2006 23:37:41 +0000

CVSROOT:        /cvsroot/classpath
Module name:    classpath
Changes by:     Roman Kennke <rabbit78> 06/08/15 23:37:41

Modified files:
        .              : ChangeLog 

Log message:
        2006-08-15  Roman Kennke  <address@hidden>
                * javax/swing/plaf/basic/
                (MouseHandler.selectedOnPress): New field.
                (MouseHandler.handleEvent): New helper method for handling
                selection and start/stop editing for mouse events.
                (MouseHandler.mouseDragged): Commented as no-op method.
                (MouseHandler.mouseMoved): Commented as no-op method.
                (MouseHandler.mousePressed): Use handleEvent() to handle
                selection and editing handling.
                (MouseHandler.mouseReleased): Use handleEvent() to handle
                selection and editing handling.
                (MouseInputHandler.MouseInputHandler): Register itself
                as mouse listener on source. Redispatch event to
                (MouseInputHandler.dispatch): New helper method.
                (MouseInputHandler.mouseClicked): Dispatch event.
                (MouseInputHandler.mouseDragged): Dispatch event.
                (MouseInputHandler.mouseEntered): Stop dispatching
                if dragging stopped.
                (MouseInputHandler.mouseExited): Stop dispatching
                if dragging stopped.
                (MouseInputHandler.mouseMoved): Stop dispatching.
                (MouseInputHandler.mousePressed): Marked as no-op.
                (MouseInputHandler.mouseReleased): Dispatch and stop
                dispatching afterwards.
                (MouseInputHandler.removeFromSource): Implemented.
                (PropertyChangeHandler.propertyChange): Also handle
                editable property changes by calling setEditable().
                Reset row selection.
                (startEditTimer): Removed.
                (setCellEditor): Call updateEditor().
                (setEditable): Call updateEditor().
                (startEditingAtPath): Make path fully visible before starting
                (startEditing): Maybe cancel previous edit session. Add
                editing component itself, not its parent container.
                Register MouseInputHandler for correctly redispatching
                initial events.
                (stopEditing): Message cellEditor and only completeEditing()
                when approved by cell editor.
                (updateCellEditor): Complete editing before updating
                the cell editor. Get cell editor from JTree if possible,
                otherwise create default editor. Update the listeners
                on the editor.
                * javax/swing/tree/
                (CLICK_COUNT_TO_START): Removed.
                (DefaultTreeCellEditor): Install correct border. Let setTree()
                update the listeners. Don't initialize lastPath and font yet.
                (actionPerformed): Implemented to start editing.
                (createTreeCellEditor): Set click count to start to 1, rather 
                (isCellEditable): Prepare editor here. Determine if we can
                start immediately, or if we trigger a timer to do so.
                (prepareForEditing): Don't removeAll() (not necessary),
                check editingComponent to be non-null.
                (setTree): Update listeners.
                (shouldStartEditingTimer): Check for left mouse button.
                (startEditingTimer): Lazily create timer.


reply via email to

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