@Retention(value=RUNTIME)
public @interface XmlAttribute
SimpleMarshaller
class to determine which fields should be saved and loaded
to and from XML layout files. When creating a new widget, make a subclass of
MoveableItem
and 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
SimpleMarshaller
automatically
when the application is saving and loading.SimpleMarshaller