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

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


    final TextBox nameField = new TextBox();
    nameField.setText( messages.nameField() );
    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


        }
      });
    }

    Button clearButton = new Button("Clear");
    clearButton.addStyleName(LogClientBundle.INSTANCE.css().logClearButton());
    DOM.setStyleAttribute(clearButton.getElement(), "color", "#00c");
    clearButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        ((Button) event.getSource()).setFocus(false);
        Log.clear();
View Full Code Here

      }
    });
    buttonPanel.add(clearButton);

    Button aboutButton = new Button("About");
    aboutButton.addStyleName(LogClientBundle.INSTANCE.css().logClearAbout());
    aboutButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        ((Button) event.getSource()).setFocus(false);

        Log.diagnostic("\n" //
View Full Code Here

            }
        };

        Button btn = new Button("Change Server");
        btn.addClickHandler(clickHandler);
        btn.addStyleName("table-picker");
        btn.getElement().getStyle().setWidth(100, Style.Unit.PCT);
        //btn.addStyleName("primary");

        HTML title = new HTML("Server Status");
        title.setStyleName("server-picker-section-header");
View Full Code Here

        }
      });
    }

    Button clearButton = new Button("Clear");
    clearButton.addStyleName(LogClientBundle.INSTANCE.css().logClearButton());
    DOM.setStyleAttribute(clearButton.getElement(), "color", "#00c");
    clearButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        ((Button) event.getSource()).setFocus(false);
        Log.clear();
View Full Code Here

      }
    });
    buttonPanel.add(clearButton);

    Button aboutButton = new Button("About");
    aboutButton.addStyleName(LogClientBundle.INSTANCE.css().logClearAbout());
    aboutButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        ((Button) event.getSource()).setFocus(false);

        Log.diagnostic("\n" //
View Full Code Here

    public Button createNumberButton (String styleName, String symbol, int num)
    {
        Button b = new Button(symbol);
        b.setStyleName("calcButton");
        b.addStyleName(styleName);
        b.addClickListener(new NumberClickListener(num, this));
        return b;
    }

    public Button createOpButton (String styleName, String symbol, int op)
View Full Code Here

    public Button createOpButton (String styleName, String symbol, int op)
    {
        Button b = new Button(symbol);
        b.setStyleName("calcButton");
        b.addStyleName(styleName);
        b.addClickListener(new OpClickListener(op, this));
        return b;
    }

    public void pressOperator (int op)
View Full Code Here

     */
    protected Widget createCancelButton (String cancelButtonText)
    {
        Button result = new Button();
        result.setStyleName("editableLabel-buttons");
        result.addStyleName("editableLabel-cancel");
        result.setText(cancelButtonText);
        return result;
    }

    /**
 
View Full Code Here

     */
    protected Widget createConfirmButton (String okButtonText)
    {
        Button result = new Button();
        result.setStyleName("editableLabel-buttons");
        result.addStyleName("editableLabel-confirm");
        result.setText(okButtonText);
        return result;
    }


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.