Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic store tags in XML (Read 1706 times)
tmtton
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 39
Joined: May 9th, 2008
store tags in XML
Jun 27th, 2008 at 5:03pm
Print Post  
I use JDiagram 2. I need to store all serialized tags associated with nodes in the diagram. I can store/recall tags with saveTo/loadFrom function. But saveToXml by itself does not store the tags. How to add these tag data to the XML file?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: store tags in XML
Reply #1 - Jun 29th, 2008 at 6:20am
Print Post  
You must implement the serializeTag and deserializeTag methods of DiagramListener. The methods receive a SerializeTagEvent argument. Its getTagElement() method returns an XML Element object where you can write or read your tag data through the DOM API. You must also call e.setHandled(true) before returning from the serialize/deserialize methods.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint