Examples of ensureDebugId()


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

    vpanel.add(createTextExample(normalText, true));
    vpanel.add(createTextExample(disabledText, false));

    // Add a normal and disabled password text box
    PasswordTextBox normalPassword = new PasswordTextBox();
    normalPassword.ensureDebugId("cwBasicText-password");
    PasswordTextBox disabledPassword = new PasswordTextBox();
    disabledPassword.ensureDebugId("cwBasicText-password-disabled");
    disabledPassword.setText(constants.cwBasicTextReadOnly());
    disabledPassword.setEnabled(false);
    vpanel.add(new HTML("<br><br>" + constants.cwBasicTextPasswordLabel()));
View Full Code Here

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

    // Create a popup to show the full size image
    Image jimmyFull = new Image(Showcase.images.jimmy());
    final PopupPanel imagePopup = new PopupPanel(true);
    imagePopup.setAnimationEnabled(true);
    imagePopup.ensureDebugId("cwBasicPopup-imagePopup");
    imagePopup.setWidget(jimmyFull);
    jimmyFull.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        imagePopup.hide();
      }
View Full Code Here

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

    vpanel.add(togglePanel);

    // Add a normal PushButton
    PushButton normalPushButton = new PushButton(
        new Image(Showcase.images.gwtLogo()));
    normalPushButton.ensureDebugId("cwCustomButton-push-normal");
    pushPanel.add(normalPushButton);

    // Add a disabled PushButton
    PushButton disabledPushButton = new PushButton(
        new Image(Showcase.images.gwtLogo()));
View Full Code Here

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

    // Add some radio buttons to a group called 'color'
    String[] colors = constants.cwRadioButtonColors();
    for (int i = 0; i < colors.length; i++) {
      String color = colors[i];
      RadioButton radioButton = new RadioButton("color", color);
      radioButton.ensureDebugId("cwRadioButton-color-" + color);
      if (i == 2) {
        radioButton.setEnabled(false);
      }
      vPanel.add(radioButton);
    }
View Full Code Here

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

  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create the text area and toolbar
    RichTextArea area = new RichTextArea();
    area.ensureDebugId("cwRichText-area");
    area.setSize("100%", "14em");
    RichTextToolbar toolbar = new RichTextToolbar(area);
    toolbar.ensureDebugId("cwRichText-toolbar");
    toolbar.setWidth("100%");
View Full Code Here

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

    dialogBox.setWidget(dialogContents);

    final Tree dynamicTree = createDynamicTree(pubInfoList);
    dynamicTree.ensureDebugId("cwTree-dynamicTree");
    ScrollPanel dynamicTreeWrapper = new ScrollPanel(dynamicTree);
    dynamicTreeWrapper.ensureDebugId("cwTree-dynamicTree-Wrapper");
    dynamicTreeWrapper.setSize("300px", "300px");

    // Wrap the dynamic tree in a DecoratorPanel
    DecoratorPanel dynamicDecorator = new DecoratorPanel();
    dynamicDecorator.setWidget(dynamicTreeWrapper);
View Full Code Here

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

    Widget contactsHeader = createHeaderWidget(
        constants.cwStackLayoutPanelContactsHeader(), images.contactsgroup());
    stackPanel.add(createContactsItem(images), contactsHeader, 4);

    // Return the stack panel.
    stackPanel.ensureDebugId("cwStackLayoutPanel");
    return stackPanel;
  }

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

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

      oracle.add(words[i]);
    }

    // Create the suggest box
    final SuggestBox suggestBox = new SuggestBox(oracle);
    suggestBox.ensureDebugId("cwSuggestBox");
    VerticalPanel suggestPanel = new VerticalPanel();
    suggestPanel.add(new HTML(constants.cwSuggestBoxLabel()));
    suggestPanel.add(suggestBox);

    // Return the panel
View Full Code Here

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

    vpanel.add(createTextExample(normalPassword, true));
    vpanel.add(createTextExample(disabledPassword, false));

    // Add a text area
    TextArea textArea = new TextArea();
    textArea.ensureDebugId("cwBasicText-textarea");
    textArea.setVisibleLines(5);
    vpanel.add(new HTML("<br><br>" + constants.cwBasicTextAreaLabel()));
    vpanel.add(createTextExample(textArea, true));

    // Return the panel
View Full Code Here

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

    VerticalPanel vpanel = new VerticalPanel();
    vpanel.setSpacing(5);

    // Add a normal and disabled text box
    TextBox normalText = new TextBox();
    normalText.ensureDebugId("cwBasicText-textbox");
    TextBox disabledText = new TextBox();
    disabledText.ensureDebugId("cwBasicText-textbox-disabled");
    disabledText.setText(constants.cwBasicTextReadOnly());
    disabledText.setEnabled(false);
    vpanel.add(new HTML(constants.cwBasicTextNormalLabel()));
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.