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

Enable JComponent.size to be bindable

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.3, 1.7-beta-1
    • 1.6.4, 1.7-beta-1
    • Swing
    • None
    • Patch

    Description

      It would be great to have JComponent.size be bindable via synthetic properties, gfxbuilder's nodes will benefit a lot if they are able to bind to its container's dimensions.
      Including patch for review.

      Sample usage:

      swing.edt {
        frame(size: [300, 100], visible: true) {
          panel(id: "p") {
            textField(text: bind{p.size.width}, columns: 20)
          }
        }
      }
      

      Attachments

        1. jcomponent-size-binding.2.patch
          7 kB
          Andres Almiray
        2. jcomponent-size-binding.patch
          4 kB
          Andres Almiray

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: