JideBuilder is a Groovy builder for the open source JIDE Common Layer
Contribution Overview
JideBuilder will let you create Jide components and standard Swing components as SwingBuilder does, because it doesn't override the default names of previously registered components in SwingBuilder, this means that you can mix both types of components with the same builder.
def jide = new JideBuilder() def frame = jide.frame( id: 'frame', title: 'JideBuilder' ){ panel( layout: new BorderLayout(5,5) ){ button( label: "Swing", constraints: BorderLayout.WEST ) jideButton( label: "Jide", constraints: BorderLayout.EAST ) textField( constraints: BorderLayout.NORTH ) calculator( constraints: BorderLayout.CENTER ) } }
There are 5 *Searchable components that will add searching capabilities to a previously created widget or an internal one, exposing the searchable widget and the searchable wrapper if an 'id' attribute was provided, for example ComboBoxSearchable:
def jide = new JideBuilder() def frame = jide.frame( id: 'frame', title: 'JideBuilder' ){ panel( layout: new BorderLayout(5,5) ){ comboBox( id: "mycombo", items: [1,2,3] ) comboBoxSearchable( id: "c1", comboBox: mycombo ) comboBoxSearchable( id: "c2", items: [4,5,6] ) } } assertNotNull jide.ci_searchable
JIDE Common Layer defines a basic structure for dialogs with StandardDialog, which is an abstract class, you may create your own dialogs based on that template by calling 'standardDialog()', by default all 3 panels will be empty, but yout can provide your own content by calling 'dialogBannerPanel()', 'dialogContentPanel()' and 'dialogButtonPanel()' inside its closure.
All JTextComponents (even those created with regular SwingBuilder methods) will accept a 'selectAll' property, which will call com.jidesoft.swing.SelectAllUtils.install() on the component.
SearchableBar has an additional property 'install' which will register a SearchableBar.Installer automatically into the inmediate container. This property must be a Map and may have the following properties:
Download
Documentation
Alphabetical list of components
Wraps an existing JTextComponent with 'textComponent' attribute
Will create an internal JTextField if 'textComponent' and 'comboBox' are ommitted
If 'textComponent' is specified (or internal JTextField is created), 'searchable' or 'list'
must also be specified
Additional attributes may be set on the wrapped component
Will create an internal JComboBox if 'comboBox' is ommitted
Additional attributes may be set on the wrapped component
Obeys 'items' when creating an internal JComboBox.
Add a 'closure' attribute as the body of lazyInitialize() default does nothing
Additional attributes may be set on the wrapped component
Additional attributes may be set on the wrapped component
Will create an internal JList if 'list' is ommitted
Additional attributes may be set on the wrapped component
Additional attributes may be set on the wrapped component
to provide additional configuration for each panel
Will create an internal JTable if 'table' is ommitted
Additional attributes may be set on the wrapped component
Will create an internal JTextField if 'textComponent' is ommitted
Additional attributes may be set on the wrapped component
Will create an internal JTree if 'tree' is ommitted
Additional attributes may be set on the wrapped component
Developers
Andres Almiray
Building
JideBuilder uses Maven2 as its build tool, which means that if you want to
build your own version of JideBuilder from source you'll need to have it
installed. Follow the instructions at http://maven.apache.org
Once Maven2 is installed you will also need to install two other dependencies
Install them on your local Maven2 repo if needed with the following command
mvn install:installFile -DgroupId=<group> -Dversion=<version> -Dpackaging=jar \
-DartifactId=<depname> -Dfile=<jarfile>
substituting the text inside < > with the correct package, version, name and jar file.
![[image]](http://mowser.com/img?url=http%3A%2F%2Fmedia.xircles.codehaus.org%2F_projects%2Fgroovy%2F_logos%2Fmedium.png)




![[image]](http://mowser.com/img?url=http%3A%2F%2Fmedia.codehaus.org%2Fimages%2Funity-codehaus-logo-only.png)
![[image]](http://mowser.com/img?url=http%3A%2F%2Fgroovy.codehaus.org%2Fdownload%2Fattachments%2F1871%2Fg2one-logo.png)
![[image]](http://mowser.com/img?url=http%3A%2F%2Fgroovy.codehaus.org%2Fdownload%2Fattachments%2F1871%2Fgina_3d.gif)
![[image]](http://mowser.com/img?url=http%3A%2F%2Fgroovy.codehaus.org%2Fdownload%2Fattachments%2F1871%2Fintellij.jpg)
![[image]](http://mowser.com/img?url=http%3A%2F%2Fgroovy.codehaus.org%2Fdownload%2Fattachments%2F1871%2Fyourkit.jpg)
![[image]](http://mowser.com/img?url=http%3A%2F%2Fgroovy.codehaus.org%2Fdownload%2Fattachments%2F1871%2Fjprofiler_3453392302.png)
![[image]](http://mowser.com/img?url=http%3A%2F%2Fgroovy.codehaus.org%2Fdownload%2Fattachments%2F1871%2Fconfluence.jpg)