withMVCGroup(*)

Purpose

Create a new MVC group instance, then discard it once it is no longer of use.

Examples

Groovy

class SampleController {
    def action = { evt = null ->
        withMVCGroup('Other') { m, v, c ->
            // configure the group
        }
    }
}

Java

import griffon.core.*;
import org.codehaus.griffon.runtime.core.AbstractGriffonController;

public class SampleController extends AbstractGriffonController { void action() { withMVCGroup("Other", new MVCClosure<OtherModel, OtherView, OtherController>() { public void call(OtherModel m, OtherView v, OtherController c) { // configure the group } }); } }

Description

This method lets you create new instances of a MVC group that is short lived, for example one that creates a dialog. There are several ways to invoke this method depending on your needs

The following methods work exactly the same as the previous ones but these provide better integration with Java based artifacts

Fired Events: