BOF-5110 Extending the Groovy SwingBuilder - Presentation Transcript
Extending Groovys Swing User Interface in Builder to Build Richer Applications Danno Ferrin, Intelligent Software Solutions, Inc. James Williams, Spatial Networks, Inc. BOF-5110 Speaker’s logo here (optional)
Learn how to customized Groovy’s SwingBuilder to add custom widgets and non-visual components.
Not always an enterprise question…
BUT WILL IT
S C A L E
?
Agenda
Ways to Extend SwingBuilder
FactoryBuilderSupport Overview
Case Study: SwingXBuilder
Agenda
Ways to Extend SwingBuilder
FactoryBuilderSupport Overview
Case Study: SwingXBuilder
Issues of Scale How you extend should be driven by how much the extension is used
Magic Nodes
bean(), widget(), container()
Individual Factory Registration
Automatic Bean Factory
Custom Factory
Builder Suite
Example: SwingXBuilder
CompositeBuilder
<Coming Soon>
Single use of particular widgets
Multiple uses of a few types
Multiple use of a lot of types
Multiple uses from multiple suites
Magic Nodes
bean(…)
Accepts any object
Not added to parent
No child content
widget(…)
Accepts any java.awt.Component
Added to parent java.awt.Container
No child content
container(…)
Accepts any java.awt.Container
Added to parent java.awt.Container
Accepts child content
Magic Nodes
An instance of the object must be passed in as the argument
3 comments
Comments 1 - 3 of 3 previous next Post a comment