History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-2957
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Danno Ferrin
Reporter: Danno Ferrin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

Some enhanced SwingBuilder attributes mask actual attributes of child content

Created: 15/Jul/08 11:35 PM   Updated: 16/Jul/08 12:00 AM
Component/s: Swing
Affects Version/s: 1.6-beta-1, 1.5.6
Fix Version/s: 1.6-beta-2

Time Tracking:
Not Specified


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.