calculator example, Linking Actions and OGNL
Vladimir Kvassov <[email protected]> Thu, 15 Apr 2004 14:30:16 +0400
| Newsgroups | gmane.comp.java.luxor-xul.user |
|---|---|
| Message-ID | <[email protected]> |
Hi ALL, sorry, sent again from wrong e-mail :) Hope that Gerald will not pass previous letter. GB> Denis Cardon has also GB> looked into how to simplify the setup for forms. See GB> http://luxor-xul.sourceforge.net/sun/2003/12/rethinking_luxor_xul_calculator_next_generation_case_study_online.html GB> for more. little comment about "Linking Actions" Denis explained this way to handle actions : ---skip--- <button label="7" command="seven"/> In the class, you just have to implement the mehod with the following signature public void handle_click_<command_name>() ---skip--- hmm... as I wrote you once, I think that better approach is using some scripting languge, like OGNL. then we don't need "strange-named methods", we just can use normal methods with parameters : <button label="7" expression="buttonPressed(7)"/> -- Best regards, Vladimir mailto:[email protected] ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click