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

Examples of com.google.gwt.user.client.ui.Button


        });
       
      }
    });
   
    Button b1 = new Button("offset tz back (UTC-5)", new ClickHandler() {
      public void onClick(ClickEvent event) {
        System.out.println(theplot);
        theplot.setTimeZoneOffsetUTC(-5);
      }
    });
    Button b2 = new Button("offset tz forward (UTC+5)", new ClickHandler() {
      public void onClick(ClickEvent event) {
        theplot.setTimeZoneOffsetUTC(+5);
      }
    });
    Button b3 = new Button("offset tz same (DST)", new ClickHandler() {
      public void onClick(ClickEvent event) {
        theplot.setTimeZoneOffsetUTC(0);
      }
    });
    Button b4 = new Button("local offset -1 (DST-1)", new ClickHandler() {
      public void onClick(ClickEvent event) {
        theplot.setTimeZoneOffsetBrowserLocal(-1);
      }
    });
    Button b5 = new Button("local offset +1 (DST+1)", new ClickHandler() {
      public void onClick(ClickEvent event) {
        theplot.setTimeZoneOffsetBrowserLocal(+1);
      }
    });
    RootPanel.get().add(b1);
View Full Code Here


    flexTable.setWidget(0, 1, textBoxRUN);
    flexTable.getCellFormatter().setWidth(0, 1, "200px");
    flexTable.getCellFormatter().setHeight(0, 1, "15px");
    flexTable.getCellFormatter().setStyleName(0, 1, "celdas-no-destacada");
   
    Button buttonBuscar = new Button("New button");
    buttonBuscar.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        findProfesional();
      }
    });
    buttonBuscar.setHeight("28");
    buttonBuscar.setText("Buscar");
    flexTable.setWidget(0, 2, buttonBuscar);
   
    /*
     * Nombre Profesional
     */
 
View Full Code Here

    Label lblAsignarBloque = new Label("ReAsignar Horario Medico");
    lblAsignarBloque.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
    lblAsignarBloque.setStyleName("lztitulo-formulario");
    verticalPanel.add(lblAsignarBloque);
   
    Button btnIngresarRegistro = new Button("Ingresar Registro");
    /*
     * Example event button IngresarRegistro
     */
    btnIngresarRegistro.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        // Dialog Box
         final DialogBox dialogBox = crearVentanaIngreso(event);
             dialogBox.center();
             dialogBox.show();
View Full Code Here

          dialogContents.add(ingresarProfesional);
          /*
           * Botones
           * Two button Example
           */
          Button closeButton = new Button("Guardar", new ClickHandler() {
              public void onClick(ClickEvent event) {
                Window.alert("Guardar");
                  dialogBox.hide();
              }
          });
         
          // Add a close button at the bottom of the dialog
          Button deleteButton = new Button("Cancelar", new ClickHandler() {
              public void onClick(ClickEvent event) {
                Window.alert("Cancelar");
                  dialogBox.hide();
              }
          });  
View Full Code Here

   
    timeHelper = new DialogBox();
    timeHelper.setText("Time Format");
    VerticalPanel vp = new VerticalPanel();
    HTML timeHelperText = new HTML("Time format must be in 24 hour time (HHmm) with no colon. E.g. '1945' instead of '7:45pm'");
    Button vpOK = new Button("OK");
    vpOK.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        timeHelper.hide();
      }
    });
    vp.add(timeHelperText);
View Full Code Here

      public void onClick(ClickEvent event) {
        hide();
      }
    };
    closeButton.addClickHandler(cancelHandler);
    cancelButton = new Button("Cancel", cancelHandler);
    buttonPanel = new HorizontalPanel();
    buttonPanel.setSpacing(10);
    message = new HTML();
    VerticalPanel content = new VerticalPanel();
    content.setWidth("500px");
View Full Code Here

  this.message.setHTML(message);
  this.buttonPanel.clear();
  if (options.length > 0) {
    for (ActionDialogOption opt : options) {
      final Command cmd = opt.getAction();
        Button actionButton = new Button(opt.getLabel(), new ClickHandler(){
          public void onClick(ClickEvent event) {
            hide();
            if (cmd != null) {
              CommandEvent.fire(cmd);
            }
View Full Code Here

      }
    };
    closeButton.addClickHandler(cancelHandler);
    messagePanel = new VerticalPanel();
    messagePanel.setSpacing(10);
    this.retry = new Button("Retry", new ClickHandler(){
      public void onClick(ClickEvent event) {
        hide();
        CommandEvent.fire(errorCommand);
      }
    });
    this.cancel = new Button("Cancel", cancelHandler);
    VerticalPanel content = new VerticalPanel();
    buttonPanel = new HorizontalPanel();
    buttonPanel.setSpacing(10);
    buttonPanel.add(this.retry);
    buttonPanel.add(this.cancel);
View Full Code Here

    rightPanel.add(scroll);
    primary = new ListBox();
    primary.setWidth("400px");
    primary.addItem("Current Document", "");
    addNamedField(primary, "Primary Resource: ");
    ok = new Button("OK", new ClickHandler(){
      public void onClick(ClickEvent event) {
        hide();
        String primaryResourceId = primary.getValue(primary.getSelectedIndex());
        DocumentServiceEntry primaryResource = null;
        ArrayList<DocumentServiceEntry> resources = getSelectedResources();
        if (!primaryResourceId.equals("")) {
          for (DocumentServiceEntry entry : resources) {
            if (entry.getDocumentId().equals(primaryResourceId)) {
              primaryResource = entry;
              break;
            }
          }
        }
        CommandEvent.fire(new SystemSetResourcesCommand(resources, primaryResource));
      }
    });
    cancel = new Button("Cancel", new ClickHandler() {
        public void onClick(ClickEvent event) {
          hide();
        }
      }
    );
View Full Code Here

   * Constructs a dialog window displaying an ETag error message.
   */
  protected StaticEtagMismatchErrorDialog() {
  titleLabel.setText("Version Mismatch Warning");
  retry.setText("Overwrite Server Version");
    this.reload = new Button("Reload Document", new ClickHandler(){
      public void onClick(ClickEvent event) {
        if (Window.confirm("The document will be reloaded, any unsaved changes will be lost.")) {
          hide();
          CommandEvent.fire(new CurrentDocumentReloadCommand());
        }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.Button

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.