Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3244

Support setting clientProperties with map syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6-rc-1
    • 1.6.3, 1.7-beta-1
    • Swing
    • 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.

      Attachments

        Activity

          People

            aalmiray Andres Almiray
            aalmiray Andres Almiray
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: