Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.6, 1.6-beta-1
-
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