Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Any other method to search node (Read 2346 times)
Tima
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Nov 10th, 2010
Any other method to search node
Nov 22nd, 2010 at 7:28am
Print Post  
Sir there is any other method except by name to find out the node i trid to use getTag but its not working..
at the time of creating node i used setTag(Tima);

And then
DiagramNode findNodeBy Tag(String searchConnector)
{
for (DiagramNode n : diag.getNodes())
if (searchConnector.equals(n.getTag()))
return n;
return null;
}
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Any other method to search node
Reply #1 - Nov 22nd, 2010 at 8:45am
Print Post  
Do you mean you have called node.setTag("Tima") and findNodeByTag("Tima") returns null?
  
Back to top
 
IP Logged
 
Tima
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Nov 10th, 2010
Re: Any other method to search node
Reply #2 - Nov 22nd, 2010 at 8:56am
Print Post  
Yes i want to do that..
i hav many node of same name in my diagram but i m setting there unique tag..
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Any other method to search node
Reply #3 - Nov 22nd, 2010 at 8:59am
Print Post  
Could you email to support@mindfusion.eu a java file showing how that does not work?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint