🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18328

TreeControl multiple Selection Problem

#18328
From: Rohit Bhardwaj
Date: Wed, 08 Jul 1998 00:00
28 lines
1332 bytes
Hi,
We are using TreControl Component & wish to do multiple selection when we
know the array to be selected. Pl Advise me on this how do I achieve this
multiple selection.

Here is the code am writing for the selection from which am able to get only
single selection :

"
      if ( mc_PermitCompStruct.permitLocations.length == 0)
      {
        treeMoreLocations.setSubfocus(treeMoreLocations.getRoot());
      }
      else
      {
        for(int i=0; i < mc_PermitCompStruct.permitLocations.length; i++)
        {
         lc_locStructFE =
location.getClassReference(mc_mainPanel.mc_sharedFrontEnd).getLocation(mc_Pe
rmitCompStruct.permitLocations[i].LocnId);
         lc_graphLocation = treeMoreLocations.find(lc_locStructFE);
         treeMoreLocations.setSubfocus(lc_graphLocation);
        }
      }
"

Regards,
Rohit
Technical Details
Message-ID: <6nvrq9$ik814@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,4c18b77f8edb6133,start
X-Google-Attributes: gidf74b3,public
From: "Rohit Bhardwaj" <rbhardwa@etd.modtechcorp.com>
Subject: TreeControl multiple Selection Problem
Date: 1998/07/08
Message-ID: <6nvrq9$ik814@forums.borland.com>
X-Deja-AN: 369536657
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language