The XmlElement is a generic containment class for elements within an XML
file.
It extends Observable which should be used for gui elements which are
interested in configuration changes.
Show interested in:
xmlElement.addObserver(yourObserver);
When making bigger changes on XmlElement and probably its subnodes and/or a
greater number of attributes at once, you should just change XmlElement
directly and manually notify the Observers by calling:
xmlElement.setChanged();
xmlElement.notifyObservers();
There a good introduction for the Observable/Observer pattern in
Model/View/Controller based applications at www.javaworld.com: -
http://www.javaworld.com/javaworld/jw-10-1996/jw-10-howto.html
See Also: org.columba.mail.gui.config.general.MailOptionsDialog.initObservables See Also: org.columba.mail.gui.message.viewer.MarkAsReadTimer author: Tony Parent, fdietz |