Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic remove outgoing DiagramLinks of a linktable (Read 2771 times)
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
remove outgoing DiagramLinks of a linktable
Aug 20th, 2009 at 1:22pm
Print Post  
Hi,

I am trying to remove all the outgoing DiagramLinks of a linktable on button click event.

I am getting the DiagramLinkList and then removing all items using list.clear() .

list is getting empty but its not getting reflected on the UI.

I am using validate() of DiagramView still no effect.


Thanks in advance.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: remove outgoing DiagramLinks of a linktable
Reply #1 - Aug 20th, 2009 at 1:36pm
Print Post  
Try this method:

Code
Select All
DiagramLinkList outLinks = new DiagramLinkList();
for (int i = 0; i < table.getRowCount(); ++i)
	outLinks.addAll(table.getRows().get(i).getOutgoingLinks());

for (DiagramLink link : outLinks)
	diagram.getLinks().remove(link);
 



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


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: remove outgoing DiagramLinks of a linktable
Reply #2 - Aug 21st, 2009 at 5:47am
Print Post  
Thanks Stoyan,
It works Smiley

I was was trying to remove the DiagramLink from individual row outgoing link list.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint