Examples of PushButton


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

   * @param image the button's icon
   * @param handler the click handler
   * @return the new push button
   */
  private PushButton buildButton(String title, AbstractImagePrototype image, ClickHandler handler) {
  PushButton button = new PushButton(image.createImage());
  button.setTitle(title);
  button.addClickHandler(handler);
  return button;
  }
View Full Code Here

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

        }
      });
      buttons.add(btn);
      return btn;
    }else{
      final PushButton btn = new PushButton(icon.createImage());
      btn.setTitle(title);
      btn.addClickHandler(new ClickHandler(){
        public void onClick(ClickEvent event) {
          btn.setFocus(false);
          btn.removeStyleName("gwt-PushButton-up-hovering");
          command.execute();
        }
      });
      buttons.add(btn);
      return btn;
View Full Code Here

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

  content.setWidget(0, 1, right);
  content.getFlexCellFormatter().setHorizontalAlignment(0, 0, HasHorizontalAlignment.ALIGN_LEFT);
  content.getFlexCellFormatter().setHorizontalAlignment(0, 1, HasHorizontalAlignment.ALIGN_RIGHT);
    content.setWidth("100%");
    content.setStylePrimaryName("lab-Footer");
    PushButton viewSource = new PushButton();
    viewSource.setText("Source");
    viewSource.setTitle("View Source");
    viewSource.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
          CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_SOURCE));
    }
    });
    PushButton viewPreview = new PushButton();
    viewPreview.setText("Preview");
    viewPreview.setTitle("Preview");
    viewPreview.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
          CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_PREVIEW));
    }
    });
    PushButton viewSplit = new PushButton();
    viewSplit.setText("Split");
    viewSplit.setTitle("View Source and Preview");
    viewSplit.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
          CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_SPLIT));
    }
    });
    PushButton viewOutput = new PushButton();
    viewOutput.setText("Output");
    viewOutput.setTitle("View Output");
    viewOutput.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
          CommandEvent.fire(new SystemSetPerspectiveCommand(SystemSetPerspectiveCommand.VIEW_OUTPUT));
    }
    });
View Full Code Here

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

  protected Dialog(String title, boolean modal) {
    setModal(modal);
    this.getElement().getStyle().setZIndex(DIALOG_ZINDEX);
    titleLabel = new Label();
    titleLabel.setText(title);
    closeButton = new PushButton(Icons.editorIcons.CloseBlue().createImage());
    closeButton.setStylePrimaryName("CloseButton");
    mainPanel = new FlexTable();
    mainPanel.setCellSpacing(0);
    mainPanel.setCellPadding(0);
    mainPanel.setWidth("100%");
View Full Code Here

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

            CommandEvent.fire(command);
          }
        });
        return btn;
      } else {
        final PushButton btn = new PushButton(icon.createImage());
        btn.setTitle(title);
        btn.addClickHandler(new ClickHandler(){
          public void onClick(ClickEvent event) {
            CommandEvent.fire(command);
          }
        });
        return btn;
View Full Code Here

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

      }
      return params;
  }
 
  static ButtonBase createButton(String str) {
      PushButton obj = new PushButton(str);
      setFontSize(obj, 10);
      return obj;
  }
View Full Code Here

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

 
  private HorizontalPanel createButtonsPanel() {
    HorizontalPanel panel = new HorizontalPanel();
    panel.setSpacing(4);

    closeButton = new PushButton("Close", new ClickListener() {
      public void onClick(Widget sender) {
        MyDialog.this.hide();
      }
    });
    panel.add(closeButton);
View Full Code Here

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

      }
    });

    add(textBox);
   
    chooseButton = new PushButton("Choose", new ClickListener() {
      public void onClick(Widget sender) {
        choose();
      }
    });
   
View Full Code Here

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

    lb.addItem(strings.xxlarge());
    return lb;
  }

  private PushButton createPushButton(ImageResource img, String tip) {
    PushButton pb = new PushButton(new Image(img));
    pb.addClickHandler(handler);
    pb.setTitle(tip);
    return pb;
  }
View Full Code Here

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

    HorizontalPanel controls = new HorizontalPanel();
    RichTextToolbar tb = new RichTextToolbar(this.bodyWidget);
    name = new TextBox();
    name.setText("default");
    name.setEnabled(false);
    nameEdit = new PushButton("Edit");
    nameEdit.addClickListener(new ClickListener() {
      public void onClick(Widget sender) {
        String curName = name.getText();
        boolean doNotify = !oldName.equals(curName);
        if (!nameEditable) { // if becoming editable, store off current value
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.