WingsBuilder is a Groovy builder for the wingS Framework
You can use WingSBuilder in the same fashion as Swing Builder. Most of the constructs provided by the original SwingBuilder are supported in WingSBuilder, thanks to the efforts of the wingS team in following the Swing model very closely. WingSBuilder also supports wingS specific components and the ability to attach your own components through widget() and container().
The following is an example of WingSBuilder in action
Which is rendered in FireFox as 
Andres Almiray [aalmiray at users dot sourceforge dot net]
Just drop the wingsbuilder jar file along with its dependencies into your weabpp's lib directory.
WingS 3.1 and Groovy 1.5 are required to run WingSBuilder.
Element |
Class |
Notes |
|---|---|---|
action |
javax.swing.Action |
same as SwingBuilder.action() |
actions |
Collection |
same as SwingBuilder.actions() |
bean |
Object |
same as SwingBuilder.bean() |
borderLayout |
SBorderLayout |
|
boundedRangeModel |
SDefaultBoundedRangeModel |
|
boxLayout |
SBoxLayout |
|
button |
SButton |
|
buttonGroup |
SButtonGroup |
|
cardLayout |
SCardLayout |
|
checkbox |
SCheckbox |
|
closureColumn |
DefaultTableColumn |
same as SwingBuilder.closureColumn() |
container |
SComponent |
placeholder for any SComponent |
comboBox |
SCombox |
Obeys 'items' to populate model |
dashedLineBorder |
SBorder |
|
desktopPane |
SDesktopPane |
|
dialog |
SDialog |
|
dottedLineBorder |
SBorder |
|
emptyBorder |
SBorder |
|
etchedBorder |
SBorder |
|
flowLayout |
SFlowLayout |
|
formattedTextField |
SSormattedTextField |
|
frame |
SFrame |
|
gbc |
GridBagConstraints |
same as SwingBuilder.gbc() |
gridBagConstraints |
GridBagConstraints |
same as SwingBuilder.gridBagConstraints() |
gridBagLayout |
SGridBagLayout |
|
gridLayout |
SGridLayout |
|
internalFrame |
SInternalFrame |
|
label |
SLabel |
|
lineBorder |
SBorder |
|
list |
SList |
|
loweredBeveldBorder |
SBorder |
|
loweredEtchedBorder |
SBorder |
|
menu |
SMenu |
|
menuBar |
SMenuBar |
|
menuItem |
SMenuItem |
|
map |
java.util.Map |
same as SwingBuilder.map() |
optionPane |
SOptionPane |
|
panel |
SPanel |
|
passwordField |
SPasswordField |
|
popupMenu |
SPopupMenu |
|
progressBar |
SProgressBar |
|
propertyColumn |
DefaultTableColumn |
same as SwingBuilder.propertyColumn() |
radioButton |
SRadioButton |
|
raisedBevelBorder |
SBorder |
|
raisedEtchedBorder |
SBorder |
|
scrollBar |
SScrollBar |
|
scrollPane |
SScrollPane |
|
separator |
SSeparator |
|
spinnerDateModel |
SSpinnerDateModel |
|
spinnerListModel |
SSpinnerListModel |
|
spinnerNumberModel |
SSpinnerNumberModel |
|
tabbedPane |
STabbedPane |
|
table |
STable |
|
tableModel |
DefaultTableModel |
same as SwingBuilder.tableModel() |
tableColumn |
STableColumn |
|
textArea |
STextArea |
|
textField |
STextField |
|
toggleButton |
SToggleButton |
|
toolBar |
SToolBar |
|
tree |
STree |
|
widget |
SComponent |
placeholder for any SComponent |
Element |
Class |
Notes |
|---|---|---|
anchor |
SAnchor |
|
byteArrayIcon |
SByteArrayIcon |
|
downloadButton |
SDownloadButton |
Must define 'resource' property at least<br/> |
fileChooser |
SFileChooser |
|
fileIcon |
SFileIcon |
Must define 'file' or 'filename' property at least<br/> |
flowDownLayout |
SFlowDownLayout |
|
form |
SForm |
|
imageIcon |
SImageIcon |
|
nullLayout |
SNullLayout |
|
pageScroller |
SPageScroller |
|
pagingBoundedRangeModel |
SPagingBoundedRangeModel |
|
popup |
SPopup |
|
rawText |
SRawTextComponent |
|
resourceIcon |
SResourceIcon |
|
rootLayout |
SRootLayout |
|
spacer |
SSpacer |
Must define 'width' & 'height' properties |
templateLayout |
STemplateLayout |
|
Element |
Class |
Notes |
|---|---|---|
calendar |
XCalendar |
|
division |
XDivision |
|
scrollablePanel |
XScrollablePanel |
|
suggest |
XSuggest |
|
treeTable |
XTreeTable |
|
xpageScroller |
XPageScroller |
|
xscrollPane |
XScrollPane |
|
xtable |
XTable |
|
Andres Almiray
WingSBuilder uses Maven2 as its build tool, which means that if you want to
build your own version of WingSBuilder 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 2 files from the wingS
distribution (but it wouldn't hurt to check at http://mvnrepository.org
if they are already there). The files are:
wings-3.1.jar
wingx-3.1.jar
If the files are not found in any Maven2 repository the you'll need to
download the source from http://wingsframework.org, follow the compile &
install instructions, the jars should be at build/web/WEB-INF/lib
Install them on your local Maven2 repo with the following command
mvn install:installFile -DgroupId=org.wings -Dversion=3.1 -Dpackaging=jar \
-DartifactId=<depname> -Dfile=<jarfile>
where 'depname' is any of [wings, wingx] with its corresponding jarfile
Please contact the team members by e-mail.