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

Some enhanced SwingBuilder attributes mask actual attributes of child content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6, 1.6-beta-1
    • 1.6-beta-2
    • Swing
    • None

    Description

      From the Grifofn mailing list, with SwingXBuilder the titledPanel title attribute gets removed for the tab title.

      tabbedPane(constraints:'north') {
          titledPanel(name:'Dashboard', title:'Shows the basic info') {
              ...
          }
      }

      To support this all nodes that supply enhanced attributes in SwingBuilder now support aliasing those properties via <attirubte>Property in the declaring node's context. The code could be re-written as:

      tabbedPane(constraints:'north', titleProperty:'tabTitle') {
          titledPanel(name:'Dashboard', title:'Shows the basic info', tabTitle:'Dashboard') {
              ....
          }
      }

      Attributes aliased are:
      buttonGroup - buttonGroupProperty
      (any layout) - constraintProperty
      (frame/panel/layout) - defaultButtonProperty
      tabbedPane - titleProperty
      tabbedPane - tabIconProperty
      tabbedPane - tabDisabledIconProperty
      tabbedPane - tabToolTipProperty
      tabbedPane - tabBackgroundProperty
      tabbedPane - tabForegroundProperty
      tabbedPane - tabEnabledProperty
      tabbedPane - tabMnemonicProperty
      tabbedPane - tabDisplayedMnemonicIndexProperty

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: