SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Searching for a treeview node recursively

    I am working with JavaJFCTreeView.

    treeview.findItem( string expression)
    allows you to find a node with a
    particular text if it matches the
    expression passed to findItem. However,
    the search will succeed iff the node
    is visible. Nodes that are hidden are
    not included in the search. I was starting
    to wonder if there was a resource out there
    somewhere which provided similar source.

    Below you will see what I am trying to
    do

    // root == root of tree view ( entire tree)
    [-] Select_TreeNode (window root, window intermediateNode, string exp)
    [ ]
    [-] if ( root.FindItem (exp)> 0)
    [ ] print ("Found the required tree node")
    [ ] root.Select (exp)
    [ ]
    [-] else
    [-] if ( len (intermediateNode.getCaption()) > 1 && root.isItemExpandable (intermediateNode.GetItemLevel ()))
    [ ] root.Expand (intermediateNode.GetItemlevel ())
    [ ] list of window wList = intermediateNode.GetChildren (root.GetSelIndex ())
    // getChildren does not exist.
    [ ] list of window wList = {}
    [-] for each w in ( wList )
    [ ] Select_TreeNode (root, w, exp )



    ------------------

  2. #2
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Searching for a treeview node recursively

    This could be usefull.MultiLevel TreeViews



    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:51 AM.

Copyright BetaSoft Inc.