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

Examples of com.google.gdt.eclipse.designer.smart.model.form.DynamicFormInfo.command_MOVE()


    //
    List<FormItemInfo> fields = form.getItems();
    FormItemInfo textField = fields.get(0);
    FormItemInfo dateField = fields.get(1);
    // move field
    form.command_MOVE(dateField, textField);
    //
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
        "    setFields(new FormItem[] { new DateItem('newDateItem'), new TextItem('newTextItem')});",
View Full Code Here


    assertThat(items.size()).isEqualTo(2);
    // create new form
    DynamicFormInfo newForm = createJavaInfo("com.smartgwt.client.widgets.form.DynamicForm");
    canvas.command_absolute_CREATE(newForm, null);
    // move field
    newForm.command_MOVE(items.get(0), null);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    Canvas canvas = new Canvas();",
        "    DynamicForm form = new DynamicForm();",
View Full Code Here

    //
    List<FormItemInfo> fields = form.getItems();
    CanvasItemInfo labelItem = (CanvasItemInfo) fields.get(0);
    CanvasItemInfo buttonItem = (CanvasItemInfo) fields.get(1);
    // move canvas
    form.command_MOVE(buttonItem.getCanvas(), labelItem);
    //
    assertEditor(
        "public class Test extends DynamicForm {",
        "  public Test() {",
        "    CanvasItem canvasItem_1 = new CanvasItem('newCanvasItem_1');",
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.