Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to getName of Node (Read 2266 times)
Tima
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Nov 10th, 2010
How to getName of Node
Nov 10th, 2010 at 6:21am
Print Post  
I want when i clicked on node got the name of that node.
which method i used to get name in listener... ??
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to getName of Node
Reply #1 - Nov 10th, 2010 at 6:32am
Print Post  
You could typecast to ShapeNode / TableNode / etc. and use the corresponding Text / Caption property getter. Or otherwise use the getTextEdit method of the InpalceEditable interface implemented by all nodes:

Code
Select All
public void nodeClicked(NodeEvent e)
{
	e.getNode().getTextToEdit();
	//((ShapeNode)e.getNode()).getText();
}; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Tima
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 25
Joined: Nov 10th, 2010
How to getName of Node
Reply #2 - Nov 10th, 2010 at 6:42am
Print Post  
Thx its working..
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint