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

Examples of com.google.gdt.eclipse.designer.model.widgets.CustomButtonInfo


            "    PushButton button = new PushButton('My text');",
            "    rootPanel.add(button);",
            "  }",
            "}");
    frame.refresh();
    CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
    // check for properties for faces
    hasFace(button, "UpFace");
    hasFace(button, "UpDisabledFace");
    hasFace(button, "UpHoveringFace");
    hasFace(button, "DownFace");
    hasFace(button, "DownDisabledFace");
    hasFace(button, "DownHoveringFace");
    // faces should not be visible as children
    assertThat(button.getPresentation().getChildrenTree()).isEmpty();
    assertThat(button.getPresentation().getChildrenGraphical()).isEmpty();
  }
View Full Code Here


            "    rootPanel.add(button);",
            "    button.getDownFace().setText('down text');",
            "  }",
            "}");
    frame.refresh();
    CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
    // check for properties for faces
    button.getPropertyByTitle("DownFace").setValue(Property.UNKNOWN_VALUE);
    assertEditor(
        "public class Test implements EntryPoint {",
        "  public void onModuleLoad() {",
        "    RootPanel rootPanel = RootPanel.get();",
        "    PushButton button = new PushButton('My text');",
View Full Code Here

            "      rootPanel.add(button);",
            "    }",
            "  }",
            "}");
    frame.refresh();
    CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
    // check for properties for faces
    Property upProperty = button.getPropertyByTitle("UpFace");
    Property[] upProperties = getSubProperties(upProperty);
    // check existing "text" property
    {
      Property textProperty = getPropertyByTitle(upProperties, "text");
      assertTrue(textProperty.isModified());
View Full Code Here

TOP

Related Classes of com.google.gdt.eclipse.designer.model.widgets.CustomButtonInfo

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.