Examples of validateComponent()


Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    assertThat(tabSet.getChildrenJava()).isEmpty();
    // create new Tab
    TabInfo newTab = createJavaInfo("com.smartgwt.client.widgets.tab.Tab");
    {
      FlowContainer flowContainer = new FlowContainerFactory(tabSet, false).get().get(0);
      assertTrue(flowContainer.validateComponent(newTab));
      flowContainer.command_CREATE(newTab, null);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    assertThat(tabSet.getChildrenJava()).isEmpty();
    // create new Tab
    CanvasInfo newCanvas = createJavaInfo("com.smartgwt.client.widgets.Button");
    {
      FlowContainer flowContainer = new FlowContainerFactory(tabSet, false).get().get(1);
      assertTrue(flowContainer.validateComponent(newCanvas));
      flowContainer.command_CREATE(newCanvas, null);
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

      flowContainer = flowContainers.get(0);
      assertTrue(flowContainer.isHorizontal());
    }
    // do create
    WidgetInfo newButton = createButton();
    assertTrue(flowContainer.validateComponent(newButton));
    flowContainer.command_CREATE(newButton, null);
    assertEditor(
        "// filler filler filler",
        "public class Test extends HLayout {",
        "  public Test() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    CanvasInfo button_1 = getJavaInfoByName("button_1");
    CanvasInfo button_2 = getJavaInfoByName("button_2");
    layout.refresh();
    //
    FlowContainer flowContainer = new FlowContainerFactory(layout, true).get().get(0);
    assertTrue(flowContainer.validateComponent(button_2));
    assertTrue(flowContainer.validateReference(button_1));
    flowContainer.command_MOVE(button_2, button_1);
    assertEditor(
        "public class Test extends HLayout {",
        "  public Test() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    // create new MenuButton
    AbstractComponentInfo newButton =
        createJavaInfo("com.smartgwt.client.widgets.toolbar.ToolStripButton");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(0);
      assertTrue(flowContainer.validateComponent(newButton));
      flowContainer.command_CREATE(newButton, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    // create new MenuButton
    AbstractComponentInfo newMenuButton =
        createJavaInfo("com.smartgwt.client.widgets.toolbar.ToolStripMenuButton");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(1);
      assertTrue(flowContainer.validateComponent(newMenuButton));
      flowContainer.command_CREATE(newMenuButton, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    ToolStripInfo toolStrip = createDefaultModule();
    // create new Slider
    AbstractComponentInfo newCanvas = createJavaInfo("com.smartgwt.client.widgets.Slider");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(2);
      assertTrue(flowContainer.validateComponent(newCanvas));
      flowContainer.command_CREATE(newCanvas, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    // create new TextItem
    AbstractComponentInfo newFormItem =
        createJavaInfo("com.smartgwt.client.widgets.form.fields.TextItem");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(3);
      assertTrue(flowContainer.validateComponent(newFormItem));
      flowContainer.command_CREATE(newFormItem, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    // create new Spacer
    AbstractComponentInfo newSpacer =
        createJavaInfo("com.smartgwt.client.widgets.toolbar.ToolStripSpacer");
    {
      FlowContainer flowContainer = new FlowContainerFactory(toolStrip, false).get().get(4);
      assertTrue(flowContainer.validateComponent(newSpacer));
      flowContainer.command_CREATE(newSpacer, toolStrip.getChildrenReal().get(1));
    }
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
View Full Code Here

Examples of org.eclipse.wb.internal.core.model.generic.FlowContainer.validateComponent()

    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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.