in src/main/groovy/swing/greet/View.groovy [36:60]
enabled: bind(source: controller, sourceProperty: 'allowLogin'),
closure: controller.&login
)
filterTweets = action(
name: 'Filter',
enabled: bind(source: controller, sourceProperty: 'allowSelection'),
closure: controller.&filterTweets
)
userSelected = action(
name: 'Select User',
enabled: bind(source: controller, sourceProperty: 'allowSelection'),
closure: controller.&userSelected
)
tweetAction = action(
name: 'Update',
enabled: bind(source: controller, sourceProperty: 'allowTweet'),
closure: controller.&tweet
)
}
tweetLineFont = new java.awt.Font("Ariel", 0, 12)
tweetLine = panel(border: emptyBorder(3), preferredSize:[250,84]) {