Package com.google.gdt.eclipse.designer.gwtext.model.widgets

Examples of com.google.gdt.eclipse.designer.gwtext.model.widgets.FieldInfo


    frame.refresh();
    // initial state
    EditorInfo editor = frame.getChildren(EditorInfo.class).get(0);
    assertThat(editor.getChildren(FieldInfo.class)).hasSize(1);
    // remove field
    FieldInfo field = editor.getChildren(FieldInfo.class).get(0);
    field.delete();
    frame.refresh();
    // in background default field was set to Editor
    assertEditor(
        "import com.gwtext.client.widgets.Editor;",
        "import com.gwtext.client.widgets.form.TextField;",
View Full Code Here


    frame.refresh();
    // initial state
    FormPanelInfo form = frame.getChildren(FormPanelInfo.class).get(0);
    List<FieldInfo> fields = form.getFields();
    assertThat(fields).hasSize(2);
    FieldInfo field_1 = fields.get(0);
    FieldInfo field_2 = fields.get(1);
    // delete "field_1", "field_2" still alive
    {
      field_1.delete();
      assertEditor(
          "public class Test implements EntryPoint {",
          "  public void onModuleLoad() {",
          "    RootPanel rootPanel = RootPanel.get();",
          "    {",
          "      FormPanel form = new FormPanel();",
          "      {",
          "        TextField field_2 = new TextField();",
          "        form.add(field_2);",
          "      }",
          "      rootPanel.add(form);",
          "    }",
          "  }",
          "}");
    }
    // delete "field_2", some default Field should be added
    field_2.delete();
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    {",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.gwtext.model.widgets.FieldInfo

Copyright © 2018 www.massapicom. 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.