|
Re: How to omit component's coordinates in xml serialisation
|
Posted: Feb 25, 2004 6:56 AM
|
|
I receive an advice, which help me to solve the problem:
"There is a skeleton (or two) in the closet of the XMLEncoder - one of them is on bounds of a Component. All of the internal trickery is in a file called MetaData.java in the beans package. If you look in that file you'll see the hardcoded hacks for the bounds, size and location properties in the persistence delegate for a component. You can subvert this by replacing this delegate with one of your own."
I.e. something like this: XMLEncoder e = new XMLEncoder(...); e.setPersistenceDelegate(Component.class,new Myjava_awt_Component_PersistenceDelegate());
|
|