MultiFieldInfo group = getJavaInfoByName("group");
FlowContainer flowContainer = new FlowContainerFactory(group, true).get().get(0);
// don't accept generic Component
{
ComponentInfo newComponent = createJavaInfo("com.extjs.gxt.ui.client.widget.button.Button");
assertFalse(flowContainer.validateComponent(newComponent));
}
// accept Radio
ComponentInfo newComponent = createJavaInfo("com.extjs.gxt.ui.client.widget.form.Radio");
assertTrue(flowContainer.validateComponent(newComponent));
flowContainer.command_CREATE(newComponent, null);