Re: xul broadcaster and observer

Gerald Bauer <[email protected]>
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
> this afternoon I was reading the xulplanet.com. I
> was
> reading the chapter concerning the broadcaster and
> observer pattern
> (http://xulplanet.com/tutorials/xultu/broadob.html).
> It seems to map in a straight forward way to the
> java
> EventListener interface.
> 
> I was wondering if there was some code in luxor
> relating to this part of the xul specification.
> If not is there any plan to introduce it. 

  Not really. A humble beginning is the observes
attribute for labels tracking menu item selection. 

> And how are
> you all doing to keep all your widget in sync?

   For Swing you would use data models and actions.
For an example using actions check out the recent
channel surfer example shipping with the Python
example suite.
 
> If I am able to code something generic enough, I try
> to integrate it into the luxor code. 

   You're more than welcome to contribute. I hope to
have a version control system up and running this
summer to make it easier to contribute. 

  - Gerald
   


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
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.