Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.6, 1.6-beta-1
-
Fix Version/s: 1.6-beta-2
-
Component/s: Swing
-
Labels:None
-
Number of attachments :
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