Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Description

Provides integration with RiverLayout.

Installation

The current version of griffon-riverlayout-plugin is 0.2
To install just issue the following command

Code Block
griffon install-plugin riverlayout

Usage

The following nodes will become available on a View script upon installing this plugin

Node

Property

Type

Default

Required

Bindable

Notes

riverLayout
[RiverLayout]

 

 

 

(error)

(error)

Use it as with any other layout node

RiverLayout has the following keywords

  • br, p => page breaks
  • left, right, center => horizontal alignment
  • vtop, vcenter => vertical alignment
  • hfill, vfill => filling
  • tab => space between components

Example

The following example is taken from Riverlayout's page

Code Block
application(title: 'Griffon + RiverLayout',
  size: [480, 320],
  locationByPlatform:true,
  iconImage: imageIcon('/griffon-icon-48x48.png').image,
  iconImages: [imageIcon('/griffon-icon-48x48.png').image,
               imageIcon('/griffon-icon-32x32.png').image,
               imageIcon('/griffon-icon-16x16.png').image]) {
    riverLayout()
    label 'Registration Form', constraints: 'center'
    label 'Name', constraints: 'p left'
    textField constraints: 'tab hfill'
    label 'Age', constraints: 'br'
    textField columns: 3,  constraints: 'tab'
    label 'Comment', constraints: 'br vtop'
    scrollPane(constraints: 'tab hfill vfill') {
        textArea()
    }
    button 'Ok', constraints: 'p center'
}

History

Version

Date

Notes

0.2

02-10-11

Release sync with Griffon 0.9.2

0.1

07-27-10

first release