Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic onclick event of a DiagrammNode (Read 3078 times)
zhang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Joined: May 28th, 2014
onclick event of a DiagrammNode
Jun 17th, 2014 at 6:36pm
Print Post  
hello, can someone tell me ,how can I add a onclick event on a Node? in other word, wenn I click a Node on screen, then will some detailed information come out. thank you indeed.
  

pic1.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: onclick event of a DiagrammNode
Reply #1 - Jun 17th, 2014 at 6:48pm
Print Post  
Hi,
Try this -

Code
Select All
diagram.addDiagramListener(new DiagramAdapter() {
  public void nodeClicked(NodeEvent e)
  {
    // show e.getNode() details
  }
}); 



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


I Love MindFusion!

Posts: 14
Joined: May 28th, 2014
Re: onclick event of a DiagrammNode
Reply #2 - Jun 17th, 2014 at 8:22pm
Print Post  
thank you very much. this works perfect!
« Last Edit: Jun 17th, 2014 at 11:09pm by zhang »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint