Examples of ensureDebugId()


Examples of com.google.gwt.user.client.ui.FlexTable.ensureDebugId()

    // Add two rows to start
    addRow(flexTable);
    addRow(flexTable);

    // Return the panel
    flexTable.ensureDebugId("cwFlexTable");
    return flexTable;
  }

  @Override
  protected void asyncOnInitialize(final AsyncCallback<Widget> callback) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.FlowPanel.ensureDebugId()

  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create a Flow Panel
    FlowPanel flowPanel = new FlowPanel();
    flowPanel.ensureDebugId("cwFlowPanel");

    // Add some content to the panel
    for (int i = 0; i < 30; i++) {
      CheckBox checkbox = new CheckBox(constants.cwFlowPanelItem() + " " + i);
      checkbox.addStyleName("cw-FlowPanel-checkBox");
View Full Code Here

Examples of com.google.gwt.user.client.ui.Frame.ensureDebugId()

  public Widget onInitialize() {
    // Create a new frame
    String url = GWT.getModuleBaseURL();
    final Frame frame = new Frame(url);
    frame.setSize("700px", "300px");
    frame.ensureDebugId("cwFrame");

    // Create a form to set the location of the frame
    final TextBox locationBox = new TextBox();
    locationBox.setText(url);
    Button setLocationButton = new Button(constants.cwFrameSetLocation());
View Full Code Here

Examples of com.google.gwt.user.client.ui.Grid.ensureDebugId()

        grid.setWidget(row, col, new Image(Showcase.images.gwtLogo()));
      }
    }

    // Return the panel
    grid.ensureDebugId("cwGrid");
    return grid;
  }

  @Override
  protected void asyncOnInitialize(final AsyncCallback<Widget> callback) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.HTML.ensureDebugId()

  @Override
  public Widget onInitialize() {
    // Create a vertical panel to align the check boxes
    VerticalPanel vPanel = new VerticalPanel();
    HTML label = new HTML(constants.cwCheckBoxCheckAll());
    label.ensureDebugId("cwCheckBox-label");
    vPanel.add(label);

    // Add a checkbox for each day of the week
    String[] daysOfWeek = constants.cwCheckBoxDays();
    for (int i = 0; i < daysOfWeek.length; i++) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.HorizontalPanel.ensureDebugId()

    for (int i = 1; i < 5; i++) {
      hPanel.add(new Button(constants.cwHorizontalPanelButton() + " " + i));
    }

    // Return the content
    hPanel.ensureDebugId("cwHorizontalPanel");
    return hPanel;
  }

  @Override
  protected void asyncOnInitialize(final AsyncCallback<Widget> callback) {
View Full Code Here

Examples of com.google.gwt.user.client.ui.HorizontalSplitPanel.ensureDebugId()

  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create a Horizontal Split Panel
    HorizontalSplitPanel hSplit = new HorizontalSplitPanel();
    hSplit.ensureDebugId("cwHorizontalSplitPanel");
    hSplit.setSize("500px", "350px");
    hSplit.setSplitPosition("30%");

    // Add some content
    String randomText = constants.cwHorizontalSplitPanelText();
View Full Code Here

Examples of com.google.gwt.user.client.ui.Hyperlink.ensureDebugId()

  @ShowcaseSource
  private <C extends ContentWidget> Hyperlink getHyperlink(
      Class<C> cwClass, String name) {
    Hyperlink link = new Hyperlink(
        name, Showcase.getContentWidgetToken(cwClass));
    link.ensureDebugId("cwHyperlink-" + cwClass.getName());
    return link;
  }
}
View Full Code Here

Examples of com.google.gwt.user.client.ui.Image.ensureDebugId()

      }
    });

    // Add an image thumbnail
    Image jimmyThumb = new Image(Showcase.images.jimmyThumb());
    jimmyThumb.ensureDebugId("cwBasicPopup-thumb");
    jimmyThumb.addStyleName("cw-BasicPopup-thumb");
    jimmyThumb.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        imagePopup.center();
      }
View Full Code Here

Examples of com.google.gwt.user.client.ui.ListBox.ensureDebugId()

    final ListBox dropBox = new ListBox(false);
    String[] listTypes = constants.cwListBoxCategories();
    for (int i = 0; i < listTypes.length; i++) {
      dropBox.addItem(listTypes[i]);
    }
    dropBox.ensureDebugId("cwListBox-dropBox");
    VerticalPanel dropBoxPanel = new VerticalPanel();
    dropBoxPanel.setSpacing(4);
    dropBoxPanel.add(new HTML(constants.cwListBoxSelectCategory()));
    dropBoxPanel.add(dropBox);
    hPanel.add(dropBoxPanel);
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.