commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Gilde <hgilde-comm...@earthlink.net>
Subject RE: [jelly][swing] reloadable component ?
Date Mon, 27 Sep 2004 23:35:50 GMT
You have an existing JFrame and you want to change its contents (I think)
based on XML.

That JFrame contains a content panel. You can construct a panel using Jelly
XML. Set the var attribute on the panel like this <panel name="foo"
var="bar">.

The Jelly script would look like this:

<xml header here>
<panel name="foo" var="bar">
	<panel contents here>
</panel>

That panel is now set into the JellyContext with the variable name "bar".
After you run the script, you can get this variable out of the context a
using context.getVariable().

Now, you can replace the content panel of your frame with this new panel. 

Is this what you were thinking?

Hans

-----Original Message-----
From: Paul Libbrecht [mailto:paul@activemath.org] 
Sent: Friday, September 24, 2004 3:13 AM
To: Jakarta Commons Developers List
Subject: [jelly][swing] reloadable component ?


Hi,

I am wondering how much of the following is now doable with the 
clean-up of attached beans that has happened recently: I'd like to use 
jelly-swing components in a similar way to browser windows with an 
ability to reset and refill them with, probably, the same jelly script.

Is it safe for me to just recall doTag on this component?
I fear not.

paul


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message