Re: XulAction programmation model

Gerald Bauer <[email protected]> Fri, 21 Nov 2003 09:34:58 -0800 (PST)
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
Hi Denis,

> Wouldn't it be easier to handled action in a
> reflective way instead of creating XulAction object
> (whose purpose is just to do linking)... Since
> XulForm
> parse all the action on startup in the xul file,
> this
> shouldn't be such a hassle. 

  I fully agree. Using reflection and let's say a
naming convention is a great way to reduce the hassle
to link events to methods. Go for it.

> This way handling an
> event
> could just be the same as implementing a method,
> like
> for example : 
> public void handle_button_save_click();
> 
> This may be a more elegant way in the future to
> handle
> the jungle of events that are thrown from everywhere
> in the swing and xul framework
> 
> In fact I have run into some syntaxic problems using
> the --- new XulAction(".."){ public void
> execute(){}};
>  --- way of handling actions. Indeed, making use of
> anonymous inner class definition has some points in
> common with C++ multi-inheritance and I ran into
> some
> method signature clash from method inside my XulForm
> hierarchy (which can be called form the inner class)
> and my XulAction hierarchy..
> 
> And anyway, I don't think that creating a XulAction
> object for linking a widget to a method is not the
> most intuitive way of reaching that goal. Moreover,
> Luxor would reach a much broader audience if it was
> somehow simpler.
> 
> Please give me some feedback ! 

  I fully agree. I'm all for making linking widgets
and events much more intuitive and easier.

  The only thing holding me back is that I can't do
everthing at once and thus I fully endorse your
initiative to "clean-up" Luxor.

  I'm currently "stuck" with getting the SWT (Standard
Widget Toolkit) branch up and running.

  - Gerald


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/