Listener Methods

Adam Esterline <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
All,

I really appreciate the work that has been done on swixml.   I have 
always found building swing GUIs to be less than desirable.   Swixml 
does make the pain a lot less painful.

One question/request:

I would like to be able to describe in the XML the method that should 
be called when a certain event happens.

Example:

<list id="mylist" onSelection="myListSelected"/>


In the client code there would be a method:

public void myListSelected() {
	// Do what needs to be done.
}

Is this possible?   Is there anything wrong with doing this?   I could 
see this same sort of scheme for all the components.

I would be happy to help implement this, if someone would point me in 
the right direction.

Thanks,

AE
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.