[cp-patches] FYI: more BasicTreeUI actions

Roman Kennke kennke at aicas.com
Thu Jun 8 14:05:18 UTC 2006

I implemented the remaining (public) Actions in BasicTreeUI. This
improves the keyboard navigation facilities significantly. However, I
notice that there seems to be a problem with the tree selection model,
this is why the '...extendSelection' actions don't work properly. I
could work around that by taking the current selection and add to that,
but it really should extend the anchor path. Anyway, you can now
navigate through JTrees using all cursor keys, the page up/down and the
home/end keys. CTRL+Space should toggle the selection, but there is one
more bug in the rendering and/or the model which prevents this from
working properly.

2006-06-08  Roman Kennke  <kennke at aicas.com>

        * javax/swing/plaf/basic/BasicTreeUI.java
        (createDefaultActions): Added new actions.
        (TreePageAction.TreePageAction): Set action name.
        (TreePageAction.actionPerformed): Implemented.
        (TreePageAction.isEnabled): Implemented.
        (TreeToggleAction.TreePageAction): Set action name.
        (TreeToggleAction.actionPerformed): Implemented.
        (TreeToggleAction.isEnabled): Implemented.
        (TreeTraverseAction.TreeTraverseAction): Set action name.
        (TreeTraverseAction.actionPerformed): Use action name as
        (TreeTraverseAction.isEnabled): Implemented.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 11385 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060608/b887f1df/patch-0001.bin

More information about the Classpath-patches mailing list