Package com.googlecode.mgwt.ui.client.widget.button

Examples of com.googlecode.mgwt.ui.client.widget.button.Button


    OptionsDialog optionsDialog = new OptionsDialog(DEFAULT_APPEARANCE);

    int count = 0;
    for (OptionsDialogEntry optionsDialogEntry : options) {
      count++;
      Button button = new Button(optionsDialogEntry.getText());
      switch (optionsDialogEntry.getType()) {
        case NORMAL:
          break;
        case IMPORTANT:
          button.setImportant(true);
          break;
        case CONFIRM:
          button.setConfirm(true);
          break;
        default:
          throw new RuntimeException("how did we get here?");
      }
      button.addTapHandler(new InternalTouchHandler(count, optionsDialog, callback));
      optionsDialog.add(button);
    }
    optionsDialog.setPanelToOverlay(widgetToCover);
    optionsDialog.show();
    return optionsDialog;
View Full Code Here


    content.getElement().getStyle().setMargin(20, Unit.PX);

    scrollPanel.setScrollingEnabledX(false);

    Button normalButton = new Button("Normal");
    content.add(normalButton);

    Button roundButton = new Button("Round");
    roundButton.setRound(true);
    content.add(roundButton);

    Button smallButton = new Button("Small");
    smallButton.setSmall(true);
    content.add(smallButton);

    Button disabledButton = new Button("Disabled");
    disabledButton.setDisabled(true);
    content.add(disabledButton);

    HTML spacer = new HTML();
    spacer.setHeight("100px");
    content.add(spacer);

    Button importantButton = new Button("Important");
    importantButton.setImportant(true);
    content.add(importantButton);

    Button importantRoundButton = new Button("Round");
    importantRoundButton.setImportant(true);
    importantRoundButton.setRound(true);
    content.add(importantRoundButton);

    Button importantSmallButton = new Button("Small");
    importantSmallButton.setImportant(true);
    importantSmallButton.setSmall(true);
    content.add(importantSmallButton);

    Button importantDisabledButton = new Button("Disabled");
    importantDisabledButton.setDisabled(true);
    importantDisabledButton.setImportant(true);
    content.add(importantDisabledButton);

    spacer = new HTML();
    spacer.setHeight("100px");
    content.add(spacer);

    Button conmfirmButton = new Button("Confirm");
    conmfirmButton.setConfirm(true);
    content.add(conmfirmButton);

    Button confirmRoundButton = new Button("Round");
    confirmRoundButton.setConfirm(true);
    confirmRoundButton.setRound(true);
    content.add(confirmRoundButton);

    Button confirmSmallButton = new Button("Small");
    confirmSmallButton.setConfirm(true);
    confirmSmallButton.setSmall(true);
    content.add(confirmSmallButton);

    Button confirmImportantButton = new Button("Disabled");
    confirmImportantButton.setConfirm(true);
    confirmImportantButton.setDisabled(true);
    content.add(confirmImportantButton);


    spacer = new HTML();
    spacer.setHeight("100px");
View Full Code Here

    FlowPanel container = new FlowPanel();
    container.getElement().getStyle().setMarginTop(20, Unit.PX);
    scrollPanel.setWidget(container);

    slideUpButton = new Button("Popup");
    container.add(slideUpButton);

    alertButton = new Button("Alert");

    container.add(alertButton);

    confirmButton = new Button("Confirm");
    container.add(confirmButton);

  }
View Full Code Here

    flexPanel.add(new HTML("Using GWT to build mobile apps"));

    flexPanel.add(new HTML("<br/><br/><a target='_blank' href='http://www.m-gwt.com'>www.m-gwt.com</a><br/><br/>"));

    if (MGWT.getFormFactor().isPhone()) {
      button = new Button("back");

      flexPanel.add(button);
    }

    scrollPanel.setWidget(round);
View Full Code Here

    HTML html = new HTML("<p style='text-align: center; position: relative; top: 75px; font-size: 20px'>great, yeah!<p>");

    panel.add(html);

    button = new Button();
    button.getElement().setAttribute("style", "margin:auto;width: 200px; top: 125px; position:relative;");
    button.setText("Back");

    panel.add(button);
View Full Code Here

    OptionsDialog optionsDialog = new OptionsDialog();

    int count = 0;
    for (OptionsDialogEntry optionsDialogEntry : options) {
      count++;
      Button button = new Button(optionsDialogEntry.getText());
      switch (optionsDialogEntry.getType()) {
        case NORMAL:
          break;
        case IMPORTANT:
          button.setImportant(true);
          break;
        case CONFIRM:
          button.setConfirm(true);
          break;
        default:
          throw new RuntimeException("how did we get here?");
      }
      button.addTapHandler(new InternalTouchHandler(count, optionsDialog, callback));
      optionsDialog.add(button);
    }
    optionsDialog.setPanelToOverlay(widgetToCover);
    optionsDialog.show();
    return optionsDialog;
View Full Code Here

TOP

Related Classes of com.googlecode.mgwt.ui.client.widget.button.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.