Matt,
 
Thank you for your help.
I've already tried to use setIsBranch but it doesn't work because Nodes are automatically configured as branch nodes when they have children...
I try your second suggestion!
Thank too for the code for adding node. I haven't thought to this way of coding... It works well and it's very simple approach. great!
 
David


De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Matt Chotin
Envoyé : jeudi 16 juin 2005 06:31
À : flexcoders@yahoogroups.com
Objet : RE: [flexcoders] TREE : Collapsing & expanding TreeNode

You should be able to use the Tree.setIsBranch method on your node to set it so that it will be treated as a leaf instead (won?t show children).  Now if you want it to show as a branch but not be able to open then I think you?ll need to subclass Tree and override setIsOpen to check if the node really should be allowed to open (and if not don?t do anything).

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of david_gal-reyniez
Sent: Wednesday, June 15, 2005 8:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TREE : Collapsing & expanding TreeNode

 

Hi everybody,

 

New question about Tree manipulation.

I would like to have control on specific parts of my Tree structure.

More precisely I would like to prevent user to expand specific TreeNodes among all TreeNode into my Tree because I don't want them to have a look on the subnode.

 

I should assume that I have no real good idea to investigate this problem.

Do I have to create a new CellRenderer adapted to my need?

 

Thank for your help and your suggestions!

 

David

**********************************************************************

Coface facilite les echanges entre les entreprises partout dans le monde. Pour cela, elle offre a toutes les entreprises des solutions pour gerer, financer et proteger leur poste client, en leur permettant d'externaliser tout ou partie de la gestion et des risques lies a leurs relations commerciales. Coface est notee AA par Fitch Ratings et Aa3 par Moody's.

Pour en savoir plus, http://www.coface.fr

Coface facilitates business-to-business commerce worldwide. It offers all size companies an array of solutions to manage, finance, and protect their accounts receivables affording them the option of fully or partly outsourcing trade relationship management and attendant risks. Coface is rated AA by Fitch ratings and Aa3 by Moody's.

More about Coface, http://www.coface.com

WARNING :

- Soyez conscient que notre systeme Anti-Spam peut parfois rejeter des messages, soit parce que certains mots et types de fichiers ne sont pas acceptes, ou bien parce que le mail n'a pas ete identifie correctement.

- Be aware that from time to time our Anti-Spam system may reject mails either because some words and types of files are not allowed or because mails are misidentified.

**********************************************************************

 

**********************************************************************

Coface facilite les echanges entre les entreprises partout dans le monde. Pour cela, elle offre a toutes les entreprises des solutions pour gerer, financer et proteger leur poste client, en leur permettant d'externaliser tout ou partie de la gestion et des risques lies a leurs relations commerciales. Coface est notee AA par Fitch Ratings et Aa3 par Moody's.

Pour en savoir plus, http://www.coface.fr

Coface facilitates business-to-business commerce worldwide. It offers all size companies an array of solutions to manage, finance, and protect their accounts receivables affording them the option of fully or partly outsourcing trade relationship management and attendant risks. Coface is rated AA by Fitch ratings and Aa3 by Moody's.

More about Coface, http://www.coface.com

WARNING :

- Soyez conscient que notre systeme Anti-Spam peut parfois rejeter des messages, soit parce que certains mots et types de fichiers ne sont pas acceptes, ou bien parce que le mail n'a pas ete identifie correctement.

- Be aware that from time to time our Anti-Spam system may reject mails either because some words and types of files are not allowed or because mails are misidentified.

**********************************************************************



Yahoo! Groups Links

Reply via email to