createMVCGroup(*)

Purpose

Create a new MVC group instance.

Examples

Groovy

class SampleController {
    def action = { evt = null ->
        def (m, v, c) = createMVCGroup('Other') 
    }
}

Java

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

public class SampleController extends AbstractGriffonController { void action() { List<? extends GriffonMvcArtifact> mvc = createMVCGroup("Other"); } }

Description

This method lets you create new instances of a MVC group. It always returns 3 elements: Model, View, and Controller in that order. There are several ways to invoke this method depending on your needs

This method is a restricted version of the more general buildMVCGroup().

Fired Events: