Skip to content

griffon-legacy/griffon-miglayout-javafx-plugin

Repository files navigation

MigLayout JavaFX integration

Plugin page: http://artifacts.griffon-framework.org/plugin/miglayout-javafx

Provides integration with MigLayout and JavaFX.

Usage

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

Node Type
migLayoutPane griffon.plugins.miglayout.MigLayoutPane

This node supports the following properties

  • layoutConstraints - defines general constraints
  • columnConstraints - defines constraints applicable to columns only
  • rowConstraints - defines constraints applicable to rows only

The plugin includes a copy of the MigLayout white-paper in PDF format. Refer also to the MigLayout Cheatsheet to know more about what constraints can be used with this layout.

Example

The migLayoutPane node can be used as any other layout node inside a Griffon View, for example

application(title: 'Sample', sizeToScene: true, centerOnScreen: true) {
    scene(fill: WHITE, width: 300, height: 120) {
        migLayoutPane(layoutConstraints: 'fill') {
            label 'Username:', constraints: 'left'
            textField constraints: 'grow, wrap'
            label 'Password:', constraints: 'left'
            passwordField constraints: 'grow, wrap'
            button loginAction, constraints: 'span 2, right'
        }
    }
}

About

Miglayout JavaFX plugin for Griffon

Resources

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE.txt
Unknown
LICENSE-miglayout.txt

Stars

Watchers

Forks

Packages

No packages published