bsorrentino / swixml2

Project that extends the original swixml project providing integration with Swing Application Framework (JSR 296) and Beans Binding (JSR 295) to further simplifying the GUI creation & management
0 stars 0 forks source link

Add script evaluation on every attributes #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As requested in Comment by rkapa2006, in [useScriptFeature] we have to 
implement possibility to evaluate a script to set every attibutes. Below an 
example

<script>
function getButtonLabel() {
return "action"
}
</script>
...... ...... <Button name="tb" id="toggleButton" 
text="${script:getButtonLabel()}" action="onCLick" /> ..... .....

Original issue reported on code.google.com by bartolom...@gmail.com on 21 Feb 2012 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by bartolom...@gmail.com on 23 Feb 2012 at 2:13

GoogleCodeExporter commented 9 years ago
add support for script evaluation in two different way:

 script:<attributeName>="<functionName>" ==> use result of script function <functionName>() 
 script:<attributeName>="${<script code>}" ==> use result of script code evaluation

added support of script evaluation for the following attributes' types

* Action
* Border
* Color
* Dimension
* Font
* Image
* ImageIcon
* Insets
* KeyStroke
* Locale
* Point
* Rectangle
* String
* primitive types

Original comment by bartolom...@gmail.com on 23 Feb 2012 at 10:53

GoogleCodeExporter commented 9 years ago

Original comment by bartolom...@gmail.com on 23 Apr 2013 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by bartolom...@gmail.com on 23 Apr 2013 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by bartolom...@gmail.com on 23 Apr 2013 at 9:11

GoogleCodeExporter commented 9 years ago
deployed in version 2.6.20130530

Original comment by bartolom...@gmail.com on 30 May 2013 at 9:11