Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6-rc-1
-
None
Description
Currently for setting a custom property you have to do something like this
import groovy.swing.SwingBuilder def button = new SwingBuilder().button( "A button" ) button.putClientProperty( "Custom", "Value" )
This improvement will allow the following
import groovy.swing.SwingBuilder def button = new SwingBuilder().button( "A button", clientPropertyCustom: "Value" )
This can be achieved by registering an attribute delegate that does name matching on the keys.