Skip to end of metadata
Go to start of metadata

Description

Metawidget provides powerful runtime scaffolding capabilites (among other cool features).

Installation

The current version of griffon-metawidget-plugin is 0.1
To install just issue the following command

Usage

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

Node

Property

Type

Default

Required

Bindable

Notes

metawidget
[SwingMetawidget]

 

 

 

(error)

(error)

the value of the node is used as the value of the toInspect: property

stub
[Stub]

name

String

 

(tick)

(error)

Must match the name of the property to be stubbed

The metawidget node accepts implicit configuration based on a file naming convention. For example, in the following application named sample with View script named sample.SampleView and an entity named sample.Person:

sample.SampleView.groovy

The following files will be searched the specified order in the classpath

  • sample/Person-metawidget.xml
  • sample/SampleView-metawidget.xml
  • sample-metawidget.xml

Any of these files can be placed griffon-app/resources. under You can override this search by explicitly specifying a value for config: in the node's properties.

Tighter integration with Metawidget will be added in future releases.

History

Version

Date

Notes

0.1

10-21-11

Initial release

  • No labels