|
From: sysadmin <sys...@zy...> - 2003-12-13 05:08:37
|
On Friday 12 December 2003 01:27, Rene Jager wrote: > On Fri, 2003-12-12 at 05:40, sysadmin wrote: > > Hi, > > > > Are there any demos showing how to use JGB in an application ? > > > > As far as I can tell, an application could access GUI objects via > > builder.getObject() method, but there seems no way for my GUI objects to > > access any objects defined in my application, since I can't pass an > > "application context" to builder object, and the WindowContext is not > > directly accessable from the application either (for pushing application > > defined objects onto WindowContext) ? > > > > For example: if the simplewindow.xml demo is invoked from an application, > > when OK button is clicked, how does the eventhandler pass user inputs back to > > invoking application ? > > see http://jgb.sourceforge.net/documentation/elements/register/index.php Hi, Rene: Thanks for the reply. I am already using register tag to do event handling. My question is how does this event handler object (which is instantiated by defaultbuilder with <object> tag within the current window's context) know anything beyond WindowContext about rest of my application ? By "application", I mean the rest of the non-gui codes related to business logic. Did I miss something obvious ? I have to say that I am not very good at Java in general. I am thinking more in the line that if DefaultBuilder has another constructor which takes a HashMap as its argument, then I can create a HashMap in my application and pass it to Defaultbuilder to be used as WindowContext map as well. This way both my app and GUI component can share this same context map. This approach also has the benefit of allowing you to have multiple windows and still sharing the same context map. > > > > Thanks for any input. > > > > BTW, this list is awfully quiet, sure hope more folks are here to bounce off > > ideas. > > The list is indeed awfully quiet, but the JGB software is very usefull > for us: we use JGB plus a number of controls we build/added for letting > users define their own panels. I must say this works great (simple XML > definitions is must easier for non-java programmers than java ;-) > We're working on i18n support for JGB also. Glad to hear that JGB is used in real life projects, perhaps some day, we can see a demo of it. YZ > > renej > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Jgb-devel mailing list > Jgb...@li... > https://lists.sourceforge.net/lists/listinfo/jgb-devel > |