Hello,

I just recently stumbled over swixml and would like to use it in an application.

Albeit the few docs I was one thing I'm missing very much.

What about a general "type" or "class" attribute to nearly all tags? The value of the attribute contains a FQ class name, e.g. "com.company.app.FancyAction". This class must hava a public constructor without arguments, so it is creatable at runtime without problems. Or -- better -- these classes should provide a getInstance() method to fetch an object of the class to be able to use the same object in several places.

The reason is to be able to use classes that do not exist as a variable and do not need to if not referenced by the GUI. This especially makes sense for Action objects. One may insert an Action object as menu item into a menu, as toolbar button into the toolbar and wherever...

Have fun,

Frank


Reply via email to