Description
Flamingo's goal is to provide a small and cohesive set of powerful UI components with functionality similar to or superseding that of Vista Explorer and Office 2007. FlamingoBuilder puts the Flamingo Swing Component Suite right at your fingertips with an easy-to-use DSL, this builder can be used with any other SwingBuilder based builder (such as SwingXBuilder and JideBuilder).
Download
Installing
Drop flamingobuilder-0.5 into $GROOVY_HOME/lib along with its dependencies
Maven
Gradle
All these dependencies can be downloaded from this directory too.
| Warning Flamingo and FlamingoBuilder require Jdk6 to be installed. |
Pre-requisites
Groovy 1.8.6 is the required minimum version to run FlamingoBuilder 0.5
It is recommended that you upgrade to the 1.8.x series in order to take advantage of
- @Bindable and ASTTransformations
- short binding syntax
- numerous enhancements made to SwingBuilder and FactoryBuilderSupport
Documentation
These are the nodes currently supported by FlamingoBuilder 0.5, they are listed in groups. Component groups are a good way to organize nodes, they also serve another purpose when used with Griffon's CompositeBuilder.
| Properties The following table summarizes the properties required by the node factories, there are other properties that can be set on the built nodes, for example all buttons inherit properties from |
FlamingoBreadcrumb |
|
|
|
|
|
|
Node | Property | Type | Default | Required | Bindable | Notes |
|---|---|---|---|---|---|---|
breadcrumbBar | callback | BreadcrumbBarCallBack |
|
|
|
|
fileBreadcrumbBar | fileSystemView | FileSystemView |
|
|
|
|
| useNativeIcons | boolean | false |
|
|
|
treeBreadcrumbBar | tree | JTree |
|
|
| may specify a |
| treeModel | TreeModel |
|
|
| must also specify |
| treeAdapter | BreadcrumbTreeAdapterSelector.TreeAdapter |
|
|
|
|
| rootVisible | boolean | true |
|
| only if |
FlamingoCommand |
|
|
|
|
| |
Node | Property | Type | Default | Required | Bindable | Notes |
commandButton | icon | ResizableIcon |
|
|
|
|
| text | String |
|
|
|
|
commandButtonPanel | groupName | String |
|
|
| must be specified on child element |
| groupIndex | int |
|
|
| must be specified on child element |
commandButtonStrip | stripOrientation | JCommandButtonStrip.StripOrientation | HORIZONTAL |
|
|
|
commandMenuButton | icon | ResizableIcon |
|
|
|
|
| text | String |
|
|
|
|
commandToggleButton | icon | ResizableIcon |
|
|
|
|
| text | String |
|
|
|
|
commandToggleButtonGroup | buttonGroup | String |
|
|
| must be specified on child element |
FlamingoIcons |
|
|
|
|
| |
Node | Property | Type | Default | Required | Bindable | Notes |
arrowIcon | direction | int | SwingConstants.EAST |
|
| accepts SwingConstants.[EAST,WEST,NORTH,SOUTH] or literals |
| initialDim | Dimension | [48,48] |
|
| can also be a positive |
| doubleHeaded | boolean | false |
|
|
|
decoratedIcon | icon | ResizableIcon |
|
|
|
|
| decorators | IconDecorator[] | [] |
|
|
|
emptyIcon | initialDim | Dimension | [48,48] |
|
| can also be a positive |
filteredIcon | icon | ResizableIcon |
|
|
|
|
| filter | BufferedImageOp |
|
|
|
|
iconDeck | icons | ResizableIcon[] |
|
|
|
|
FlamingoSlider |
|
|
|
|
| |
svgIcon | url | URL |
|
|
|
|
| file | File |
|
|
| can also be a |
| inputStream | InputStream |
|
|
|
|
| resource | String |
|
|
|
|
| class | Class |
|
|
| only required if |
| initialDim | Dimension | [48,48] |
|
| can also be a positive |
| zip | boolean | false |
|
| if the source is in |
|
|
|
|
|
| specify one of |
wrapperIcon | url | URL |
|
|
|
|
| file | File |
|
|
| can also be a |
| inputStream | InputStream |
|
|
|
|
| resource | String |
|
|
|
|
| class | Class |
|
|
| only required if |
| initialDim | Dimension | [48,48] |
|
| can also be a positive |
| type | String |
|
|
| value in ['ico','image'], must be used if |
|
|
|
|
|
| specify one of |
FlamingoSlider |
|
|
|
|
| |
Node | Property | Type | Default | Required | Bindable | Notes |
flexiSlider |
|
|
|
|
| must define at least 2 |
range | name | String |
|
|
|
|
| discrete | boolean | false |
|
|
|
| weight | Number | 0.0 |
|
|
|
| startingValue | Number |
|
|
| marks this range as the starting value of the slider. Value must be in [0..1] |
controlPoint | icon | Icon |
|
|
|
|
| text | String |
|
|
|
|
FlamingoRibbon |
|
|
|
|
| |
ribbonFrame |
|
|
|
|
| same properties as |
ribbon |
|
|
|
|
| accepts nested |
|
|
|
|
|
| any other nested component will be added to this ribbon's taskBar |
ribbonTask | title | String |
|
|
| or set a String as the node's value |
| selected | boolean |
|
|
|
|
|
|
|
|
|
| nest it inside |
ribbonContextualTaskGroup | title | String |
|
|
| or set a String as the node's value |
| hueColor | Color |
|
|
|
|
|
|
|
|
|
| nest it inside |
ribbonBand | title | String |
|
|
| or set a String as the node's value |
|
|
|
|
|
| nest it inside |
| expandActionListener | ActionListener |
|
|
|
|
| actionPerformed | Closure |
|
|
|
|
|
|
|
|
|
| specify one of |
| task | JRibbonTask |
|
|
| specify this if not nested inside a |
| icon | Icon |
|
|
|
|
| image | Image |
|
|
|
|
| url | URL |
|
|
|
|
| file | File |
|
|
| can also be a |
| inputStream | InputStream |
|
|
|
|
| resource | String |
|
|
|
|
| class | Class |
|
|
| only required if |
|
|
|
|
|
| specify one of |
| ribbonElementPriority | RibbonElementPriority |
|
|
| must be specified on child element |
|
|
|
|
|
| any other nested component will be added as a RibbonComponent |
ribbonFlowBand | title | String |
|
|
| or set a String as the node's value |
|
|
|
|
|
| nest it inside |
| expandActionListener | ActionListener |
|
|
|
|
| actionPerformed | Closure |
|
|
|
|
|
|
|
|
|
| specify one of |
| task | JRibbonTask |
|
|
| specify this if not nested inside a |
| icon | Icon |
|
|
|
|
| image | Image |
|
|
|
|
| url | URL |
|
|
|
|
| file | File |
|
|
| can also be a |
| inputStream | InputStream |
|
|
|
|
| resource | String |
|
|
|
|
| class | Class |
|
|
| only required if |
|
|
|
|
|
| specify one of |
| ribbonElementPriority | RibbonElementPriority |
|
|
| must be specified on child element |
|
|
|
|
|
| any other nested component will be added as a FlowComponent |
ribbonComponent | component | JComponent |
|
|
| or set a JComponent as the node's value |
| caption | String |
|
|
|
|
| icon | Icon |
|
|
|
|
| image | Image |
|
|
|
|
| url | URL |
|
|
|
|
| file | File |
|
|
| can also be a |
| inputStream | InputStream |
|
|
|
|
| resource | String |
|
|
|
|
| class | Class |
|
|
| only required if |
|
|
|
|
|
| specify one of |
ribbonApplicationMenu |
|
|
|
|
| nest it inside |
ribbonApplicationMenuEntryPrimary | text | String |
|
|
| or set a String as the node's value |
| mainActionListener | ActionListener |
|
|
|
|
| actionPerformed | Closure |
|
|
|
|
|
|
|
|
|
| specify one of |
| entryKind | JCommandButton.CommandButtonKind |
|
|
|
|
| icon | Icon |
|
|
|
|
| image | Image |
|
|
|
|
| url | URL |
|
|
|
|
| file | File |
|
|
| can also be a |
| inputStream | InputStream |
|
|
|
|
| resource | String |
|
|
|
|
| class | Class |
|
|
| only required if |
|
|
|
|
|
| specify one of |
ribbonApplicationMenuEntryFooter | text | String |
|
|
| or set a String as the node's value |
| mainActionListener | ActionListener |
|
|
|
|
| actionPerformed | Closure |
|
|
|
|
|
|
|
|
|
| specify one of |
| icon | Icon |
|
|
|
|
| image | Image |
|
|
|
|
| url | URL |
|
|
|
|
| file | File |
|
|
| can also be a |
| inputStream | InputStream |
|
|
|
|
| resource | String |
|
|
|
|
| class | Class |
|
|
| only required if |
|
|
|
|
|
| specify one of |
Developers
Andres Almiray
Source Control
https://github.com/griffon/flamingobuilder
Building
FlamingoBuilder uses Gradle as its build tool.
Contributing
Please contact the Griffon team members by e-mail.
Mailing List(s)
http://griffon.codehaus.org/Mailing+Lists