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

Examples of com.google.gdt.eclipse.designer.smart.model.CanvasInfo.refresh()


            "    canvas.addChild(tabSet);",
            "    tabSet.moveTo(30, 20);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    //
    TabSetInfo tabSet = canvas.getChildren(TabSetInfo.class).get(0);
    // check bounds
    Insets insets = tabSet.getTabInsets();
    int barThickness = tabSet.getTabBarThickness();
View Full Code Here


            "    canvas.addChild(tabSet);",
            "    tabSet.moveTo(30, 20);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    //
    TabSetInfo tabSet = canvas.getChildren(TabSetInfo.class).get(0);
    // check bounds
    Insets insets = tabSet.getTabInsets();
    int barThickness = tabSet.getTabBarThickness();
View Full Code Here

            "    canvas.addChild(tabSet);",
            "    tabSet.moveTo(30, 20);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    //
    TabSetInfo tabSet = canvas.getChildren(TabSetInfo.class).get(0);
    // check bounds
    Rectangle tabSetBounds = tabSet.getModelBounds();
    Insets insets = tabSet.getTabInsets();
View Full Code Here

            "    FilterBuilder fb = new FilterBuilder();",
            "    canvas.addChild(fb);",
            "    canvas.draw();",
            "  }",
            "}");
    canvas.refresh();
    FilterBuilderInfo filterBuilder = canvas.getChildren(FilterBuilderInfo.class).get(0);
    //
    assertThat(filterBuilder.getChildren()).isEmpty();
    assertThat(filterBuilder.getDataSource()).isNull();
    Property property = filterBuilder.getPropertyByTitle("dataSource");
View Full Code Here

            "    canvas.addChild(listGrid);",
            "    listGrid.moveTo(44, 90);",
            "    canvas.draw();",
            "  }",
            "}");
    canvas.refresh();
    FilterBuilderInfo filterBuilder = canvas.getChildren(FilterBuilderInfo.class).get(0);
    DataSourceInfo dataSource = filterBuilder.getDataSource();
    //
    assertThat(filterBuilder.getChildren()).isEmpty();
    Property property = filterBuilder.getPropertyByTitle("dataSource");
View Full Code Here

            "    canvas.addChild(listGrid);",
            "    listGrid.moveTo(44, 90);",
            "    canvas.draw();",
            "  }",
            "}");
    canvas.refresh();
    FilterBuilderInfo filterBuilder = canvas.getChildren(FilterBuilderInfo.class).get(0);
    ListGridInfo listGrid = canvas.getChildren(ListGridInfo.class).get(0);
    DataSourceInfo dataSource;
    {
      Property property = listGrid.getPropertyByTitle("dataSource");
View Full Code Here

    assertThat(property).isNotNull();
    assertThat(property.getValue()).isNotNull(); // fake data source used
    // assign DataSiurce
    ObjectPropertyEditor editor = (ObjectPropertyEditor) property.getEditor();
    editor.setComponent((GenericProperty) property, dataSource);
    canvas.refresh();
    // check
    assertThat(filterBuilder.getChildren()).isEmpty();
    assertThat(filterBuilder.getDataSource()).isSameAs(dataSource);
    assertThat(property.getValue()).isSameAs(dataSource.getObject());
    assertEditor(
View Full Code Here

            "    menuButton.setMenu(menu);",
            "    canvas.addChild(menuButton);",
            "    canvas.draw();",
            "  }",
            "}"});
    canvas.refresh();
    MenuButtonInfo menuButton = canvas.getChildren(MenuButtonInfo.class).get(0);
    //
    MenuInfo menu = menuButton.getMenu();
    assertThat(menu).isNotNull();
    assertThat(menu.getItems().size()).isEqualTo(1);
View Full Code Here

            "    canvas.addChild(stack);",
            "    stack.setRect(39, 34, 270, 240);",
            "    canvas.draw();",
            "  }",
            "}"}, "stack"));
    canvas.refresh();
    SectionStackInfo stack = (SectionStackInfo) canvas.getWidgets().get(0);
    assertThat(stack.getWidgets()).isEmpty();
    // check Sections
    List<SectionStackSectionInfo> sections = stack.getSections();
    assertThat(sections.size()).isEqualTo(2);
View Full Code Here

            "    canvas.addChild(stack);",
            "    stack.setRect(10, 10, 270, 240);",
            "    canvas.draw();",
            "  }",
            "}"}, "stack"));
    canvas.refresh();
    SectionStackInfo stack = (SectionStackInfo) canvas.getWidgets().get(0);
    stack.getPropertyByTitle("reverseOrder").setValue(true);
    // check Sections
    int width = stack.getModelBounds().width;
    List<SectionStackSectionInfo> sections = stack.getSections();
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.