Groovy
  1. Groovy
  2. GROOVY-501

SwingBuilder - add more components to support ButtonDemo

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta-6
    • Component/s: None
    • Labels:
      None

      Description

      For a test of the relative size and ease of a Groovy swing applicaiton I though of re-implementing the SwingSet from the JFC demos in groovy. It wound up being about a third of the size of the original!

      To do a really groovy job I needed to add some more items and concepts to the SwingBuilder.jar.

      notable changes:

      • add more methiods from javax.swing.Box for glue, struts, and rigid areas
      • add buttonGroup case for AbstractButtons so we don't have to dive into the model to set a button group on a checkBox or radioButton

      tweaks:

      • add support for adding components to a tabbed pane explicitly
      • introduce some "pass through nodes" where the widget is not nesscicarily created but provided by the user (an elaboration of the widget() node from GROOVY-333) they are widget, action, and tableModel.
      • refactor code where attribures are set as java beans proeprties on the widget.

      This patch may contain stuff from the GROOVY-333 patch. I don't thuink it's been applied yet.

      Also, ButtonDemo.groovy is the portion of the Buttons tab from SwingSet in ButtonDemo.java, sans the images.

      1. ButtonDemo.groovy
        8 kB
        Danno Ferrin
      2. SwingBuilder.java
        28 kB
        Danno Ferrin
      3. swingbuilderboxy-patch.txt
        13 kB
        Danno Ferrin
      4. swingbuilderboxy-patch-unix.txt
        13 kB
        Danno Ferrin

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12968236 ] Default workflow, editable Closed status [ 12976037 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12729658 ] Default workflow, editable Closed status [ 12741683 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Guillaume Delcroix made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.0-beta-6 [ 10742 ]
        Status Open [ 1 ] Closed [ 6 ]
        Guillaume Delcroix made changes -
        Assignee Guillaume Laforge [ guillaume ]
        Danno Ferrin made changes -
        Attachment SwingBuilder.java [ 12481 ]
        Danno Ferrin made changes -
        Attachment swingbuilderboxy-patch-unix.txt [ 12480 ]
        Danno Ferrin made changes -
        Attachment ButtonDemo.groovy [ 12173 ]
        Danno Ferrin made changes -
        Field Original Value New Value
        Attachment swingbuilderboxy-patch.txt [ 12172 ]
        Danno Ferrin created issue -

          People

          • Assignee:
            Guillaume Delcroix
            Reporter:
            Danno Ferrin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development