Package com.google.gdt.eclipse.designer.smart.model.form

Examples of com.google.gdt.eclipse.designer.smart.model.form.FormItemInfo


            "    setFields(new FormItem[] { field });",
            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo formItem = form.getItems().get(0);
    Property nameProperty = formItem.getPropertyByTitle("name");
    assertThat(nameProperty.getValue()).isEqualTo("field");
    // set new "name"
    nameProperty.setValue("field 1");
    // check corrected value
    assertThat(nameProperty.getValue()).isEqualTo("field_1");
View Full Code Here


        "    FormItem field = new TextItem('field', 'Field');",
        "    setFields(new FormItem[] { field });",
        "  }",
        "}");
    refresh();
    FormItemInfo field = getJavaInfoByName("field");
    Property property = field.getPropertyByTitle("title");
    // initial value
    assertEquals("Field", property.getValue());
    // set new value, with spaces
    property.setValue("My field");
    assertEquals("My field", property.getValue());
View Full Code Here

        "  public Test() {",
        "  }",
        "}");
    form.refresh();
    //
    FormItemInfo newField = createJavaInfo("com.smartgwt.client.widgets.form.fields.TextItem");
    assertNotNull(newField.getImage());
  }
View Full Code Here

            "    setFields(new FormItem[] { field });",
            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo item = form.getItems().get(0);
    Property property = item.getPropertyByTitle("Bounds");
    assertThat(property).isNotNull();
    assertThat(property).isInstanceOf(ComplexProperty.class);
  }
View Full Code Here

            "    setFields(new FormItem[] { field });",
            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo item = form.getItems().get(0);
    Rectangle bounds = item.getBounds();
    assertThat(bounds.getLocation()).isEqualTo(new Point(70, 50));
  }
View Full Code Here

            "    setFields(new FormItem[] { field });",
            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo item = form.getItems().get(0);
    Rectangle bounds = item.getBounds();
    assertThat(bounds.getSize()).isEqualTo(new Dimension(150, 100));
  }
View Full Code Here

            "    setFields(new FormItem[] { field });",
            "  }",
            "}");
    form.refresh();
    // set new bounds
    FormItemInfo item = form.getItems().get(0);
    form.command_BOUNDS(item, new Point(30, 20), new Dimension(150, 100));
    form.refresh();
    // check bounds
    Rectangle bounds = item.getBounds();
    assertThat(bounds.getLocation()).isEqualTo(new Point(30, 20));
    assertThat(bounds.getSize()).isEqualTo(new Dimension(150, 100));
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
View Full Code Here

            "    setFields(new FormItem[] { field });",
            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo item = form.getItems().get(0);
    form.command_BOUNDS(item, null, new Dimension(70, 30));
    form.refresh();
    // check bounds
    Rectangle bounds = item.getBounds();
    assertThat(bounds.getSize()).isEqualTo(new Dimension(70, 30));
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
        "    setItemLayout(FormLayoutType.ABSOLUTE);",
View Full Code Here

            "    setFields(new FormItem[] { field });",
            "  }",
            "}");
    form.refresh();
    //
    FormItemInfo item = form.getItems().get(0);
    form.command_BOUNDS(item, new Point(20, 10), null);
    form.refresh();
    // check bounds
    Rectangle bounds = item.getBounds();
    assertThat(bounds.getLocation()).isEqualTo(new Point(20, 10));
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
        "    setItemLayout(FormLayoutType.ABSOLUTE);",
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.smart.model.form.FormItemInfo

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.