Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2006

Tip: Looking for answers? Try searching our database.

Advanced GUI - user driven scripting?

Thread view: 
timasmith@hotmail.com - 23 Feb 2006 02:03 GMT
Hi,

My applications have GUI forms with controls dynamically generated and
placed on the panels.  The controls are defined in a database - JType,
size, name, default etc.
They are also dynamically bound to a model using DocumentListeners et
al.

I would also like to provide end user administrators the ability to
define their own custom client side logic that is triggered by events.
For instance controls are made visible/invisible/disabled/default text,
check values across multiple controls etc.

How do I do this?  A couple of thoughts come to mind
a) Some kind of javascript which can reference controls by name.  I'd
have to research more to see if there is even a scripting language that
could do that.
b) Provide interfaces to the controls and have the client write and
compile java code against those interfaces.

Not sure if a) would provide compile time checking - perhaps only run
time.  It is advantageous that the client can potentially just write a
quick script in a reference utility and then they are ready to go.

b) is a bit of a pain in that the client needs to compile and create a
jar file, deploy so that it is picked up etc.  However upgrades would
easily identify issues on compilation so perhaps the runtime would be
more stable.

Any ideas?

thanks

Tim
opalpa@gmail.com opalinski from opalpaweb - 23 Feb 2006 02:28 GMT
Makes me think of Jython.

Opalinski
opalpa@gmail.com
http://www.geocities.com/opalpaweb/
timasmith@hotmail.com - 23 Feb 2006 03:55 GMT
Looking at a few options it appears Rhino is a good choice for
scripting.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.