classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Approval Needed: Patch: JTree related class' implementation


From: Lillian Angel
Subject: [cp-patches] Approval Needed: Patch: JTree related class' implementations
Date: Wed, 29 Jun 2005 16:33:20 -0400

Please disregard the last email, this is the updated patch that needs to
be approved.

Here is a new patch for these classes. I implemented it so the user can
select paths/rows in the JTree. But still, but visual testing you cannot
see this very well. - Patch Attached.

* javax/swing/JTree.java:
        (valueChanged): repaint everytime something is selected in the 
        tree.
        (setSelectionModel): set TreeSelectionListeners
        (isRowSelected): isRowSelected uses isPathSelected
        * javax/swing/plaf/basic/BasicTreeUI.java
        (setSelectionModel): works with JTree to set the selection model
        (getPathForRow): took out unneeded lines
        (mouseClicked): switched if statements, should check if already 
        selected first.
        (paintLeaf): checked selection of Leaf and paint selected 
        differently than not selected cells
        (paintNonLeaf): checked selection of nonLeaf and paint selected 
        differently than not selected cells
        (paintRecursive): updated to work with other paint functions
        * javax/swing/tree/DefaultTreeSelectionModel.java:
        (addSelectionPath): fire change, so selection is registered to 
        listener
        (addSelectionPaths): fire change, so selection is registered to 
        listener
        (removeSelectionPath): fire change, so selection is registered 
        to listener
        (removeSelectionPaths): fire change, so selection is registered 
        to listener
        (isPathSelected): took out unneeded lines
        (getTreeSelectionListeners): made more logical to call 
        getListeners
        (fireValueChanged): fixed loop to be more logical


-- 
Lillian Angel
Red Hat Canada, Ltd.
(416) 482-2661 x239
address@hidden

Attachment: current.diff
Description: Text Data


reply via email to

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