@Retention(value=RUNTIME) public @interface XmlAttribute
SimpleMarshallerclass to determine which fields should be saved and loaded to and from XML layout files. When creating a new widget, make a subclass of
MoveableItemand mark the important fields that need to be preserved (size as width and height of a brush, etc.) with this annotation, the new subclass will now be handled by
SimpleMarshallerautomatically when the application is saving and loading.