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

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.WidgetInfo


  /**
   * Test for {@link Position#command_MOVE(WidgetInfo, WidgetInfo)}.
   */
  public void test_MOVE_newPosition() throws Exception {
    WidgetInfo container =
        parse(
            "<ui:UiBinder>",
            "  <t:MyContainer>",
            "    <t:topbutton>",
            "      <g:Button wbp:name='button'/>",
            "    </t:topbutton>",
            "  </t:MyContainer>",
            "</ui:UiBinder>");
    refresh();
    WidgetInfo button = getObjectByName("button");
    // do move
    Position position = getPosition(container, "bottomWidget");
    position.command_MOVE(button, null);
    assertXML(
        "<ui:UiBinder>",
View Full Code Here


  //
  // CREATE
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_CREATE() throws Exception {
    WidgetInfo container =
        openEditor(
            "// filler filler filler filler filler",
            "<ui:UiBinder>",
            "  <t:MyContainer>",
            "    <t:topbutton>",
            "      <g:Button wbp:name='button' text='Existing'/>",
            "    </t:topbutton>",
            "  </t:MyContainer>",
            "</ui:UiBinder>");
    Position position = UiChildTest.getPosition(container, "topbutton");
    WidgetInfo button = getObjectByName("button");
    // try Label, no command
    {
      loadCreationTool("com.google.gwt.user.client.ui.Label");
      tree.moveOn(position);
      tree.assertCommandNull();
View Full Code Here

        "  </t:MyContainer>",
        "</ui:UiBinder>");
  }

  public void test_CREATE_full() throws Exception {
    WidgetInfo container =
        openEditor(
            "// filler filler filler filler filler",
            "<ui:UiBinder>",
            "  <t:MyContainer>",
            "    <t:topbutton>",
View Full Code Here

  //
  // PASTE
  //
  ////////////////////////////////////////////////////////////////////////////
  public void test_PASTE() throws Exception {
    WidgetInfo container =
        openEditor(
            "// filler filler filler filler filler",
            "<ui:UiBinder>",
            "  <t:MyContainer>",
            "    <t:topbutton>",
            "      <g:Button wbp:name='button' text='Button'/>",
            "    </t:topbutton>",
            "  </t:MyContainer>",
            "</ui:UiBinder>");
    Position position = UiChildTest.getPosition(container, "topbutton");
    WidgetInfo button = getObjectByName("button");
    //
    doCopyPaste(button);
    tree.moveOn(position).assertCommandNotNull();
    tree.click();
    assertXML(
View Full Code Here

        "    <t:topbutton>",
        "      <g:Button text='Button 3'/>",
        "    </t:topbutton>",
        "  </t:MyContainer>",
        "</ui:UiBinder>");
    WidgetInfo button = getObjectByName("button");
    //
    doCopyPaste(button);
    tree.moveBefore(button).assertCommandNull();
  }
View Full Code Here

        "    <t:topbutton>",
        "      <g:Button wbp:name='button_3' text='Button 3'/>",
        "    </t:topbutton>",
        "  </t:MyContainer>",
        "</ui:UiBinder>");
    WidgetInfo button_3 = getObjectByName("button_3");
    WidgetInfo button_1 = getObjectByName("button_1");
    //
    tree.startDrag(button_3).dragBefore(button_1).endDrag();
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Button wbp:name='button' text='Button'/>",
        "    <t:MyContainer wbp:name='container'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    WidgetInfo button = getObjectByName("button");
    WidgetInfo container = getObjectByName("container");
    Position position = UiChildTest.getPosition(container, "topbutton");
    //
    tree.startDrag(button).dragOn(position).endDrag();
    assertXML(
        "// filler filler filler filler filler",
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Image wbp:name='image' url='1.png'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo image = getObjectByName("image");
    Property property = image.getPropertyByTitle("url");
    //
    assertEquals("1.png", getPropertyText(property));
  }
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Image wbp:name='image'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo image = getObjectByName("image");
    //
    final Property property = image.getPropertyByTitle("url");
    animateDialog(property);
    assertXML(
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
        "  <g:FlowPanel>",
View Full Code Here

        "  <g:FlowPanel>",
        "    <g:Image wbp:name='image'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    refresh();
    WidgetInfo image = getObjectByName("image");
    //
    final Object[] result = new Object[1];
    PropertyEditor propertyEditor =
        new ImageUrlPropertyEditor(DesignerPlugin.getShell(), image.getState());
    final Property property = new PropertyNoValue(propertyEditor) {
      @Override
      public String getTitle() {
        return "url";
      }
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.uibinder.model.widgets.WidgetInfo

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.