Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Button.addStyleName()


        new ClickHandler() {
          public void onClick(ClickEvent event) {
            addRow(flexTable);
          }
        });
    addRowButton.addStyleName("sc-FixedWidthButton");

    Button removeRowButton = new Button(constants.cwFlexTableRemoveRow(),
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            removeRow(flexTable);
View Full Code Here


        new ClickHandler() {
          public void onClick(ClickEvent event) {
            removeRow(flexTable);
          }
        });
    removeRowButton.addStyleName("sc-FixedWidthButton");
    VerticalPanel buttonPanel = new VerticalPanel();
    buttonPanel.setStyleName("cw-FlexTable-buttonPanel");
    buttonPanel.add(addRowButton);
    buttonPanel.add(removeRowButton);
    flexTable.setWidget(0, 1, buttonPanel);
View Full Code Here

        panel.add(commentArea);

        if (hasGlossaryUpdateAccess) {
            Button deleteButton = new Button();
            deleteButton.setStyleName("icon-minus-1");
            deleteButton.addStyleName(style.targetCommentListButton());
            deleteButton.addClickHandler(new DeleteRowHandler(panel));
            panel.add(deleteButton);
        }
        return panel;
    }
View Full Code Here

    final TextBox nameField = new TextBox();
    nameField.setText("GWT User");
    final Label errorLabel = new Label();

    // We can add style names to widgets
    sendButton.addStyleName("sendButton");

    // Add the nameField and sendButton to the RootPanel
    // Use RootPanel.get() to get the entire body element
    RootPanel.get("nameFieldContainer").add(nameField);
    RootPanel.get("sendButtonContainer").add(sendButton);
View Full Code Here

  public void onModuleLoad() {
    final Button sendButton = new Button("Send");
    final Label errorLabel = new Label();

    // We can add style names to widgets
    sendButton.addStyleName("sendButton");

    // Add the nameField and sendButton to the RootPanel
    // Use RootPanel.get() to get the entire body element
    RootPanel.get("sendButtonContainer").add(sendButton);
    RootPanel.get("errorLabelContainer").add(errorLabel);
View Full Code Here

    final TextBox nameField = new TextBox();
    nameField.setText("GWT User");
    final Label errorLabel = new Label();

    // We can add style names to widgets
    sendButton.addStyleName("sendButton");

    // Add the nameField and sendButton to the RootPanel
    // Use RootPanel.get() to get the entire body element
    RootPanel.get("nameFieldContainer").add(nameField);
    RootPanel.get("sendButtonContainer").add(sendButton);
View Full Code Here

   @Test
   public void styles() {
      // Arrange
      Button b = new Button();
      b.setStylePrimaryName("toto");
      b.addStyleName("tata");
      b.addStyleName("titi");

      // Act & Asserts
      assertEquals("toto", b.getStylePrimaryName());
      assertEquals(true, WidgetUtils.hasStyle(b, "tata"));
View Full Code Here

   public void styles() {
      // Arrange
      Button b = new Button();
      b.setStylePrimaryName("toto");
      b.addStyleName("tata");
      b.addStyleName("titi");

      // Act & Asserts
      assertEquals("toto", b.getStylePrimaryName());
      assertEquals(true, WidgetUtils.hasStyle(b, "tata"));
      assertEquals(true, WidgetUtils.hasStyle(b, "titi"));
View Full Code Here

        final TextBox nameField = new TextBox();
        nameField.setText( "GWT User" );
        final Label errorLabel = new Label();

        // We can add style names to widgets
        sendButton.addStyleName( "sendButton" );

        // Add the nameField and sendButton to the RootPanel
        // Use RootPanel.get() to get the entire body element
        RootPanel.get( "nameFieldContainer" ).add( nameField );
        RootPanel.get( "sendButtonContainer" ).add( sendButton );
View Full Code Here

        final TextBox nameField = new TextBox();
        nameField.setText( "GWT User" );
        final Label errorLabel = new Label();

        // We can add style names to widgets
        sendButton.addStyleName( "sendButton" );

        // Add the nameField and sendButton to the RootPanel
        // Use RootPanel.get() to get the entire body element
        RootPanel.get( "nameFieldContainer" ).add( nameField );
        RootPanel.get( "sendButtonContainer" ).add( sendButton );
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.