Examples of CenterPopupPositioner


Examples of com.gwtplatform.mvp.client.view.CenterPopupPositioner

     * By default the popup will position itself in the center of the window.
     * To use a different positioner use {@link #PopupViewImpl(EventBus, PopupPosition)} instead.
     * @param eventBus The {@link EventBus}.
     */
    public PopupViewImpl(EventBus eventBus) {
        this(eventBus, new CenterPopupPositioner());
    }
View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

  }

  public StatDialog() {
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    popup = PopupFactory.createPopup(
        Document.get().getElementById("app"), new CenterPopupPositioner(), chrome, true);
    htmlPanel = new HTMLPanel("");
    htmlPanel.addDomHandler(new ClickHandler(){

      @Override
      public void onClick(ClickEvent event) {
View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

  /** Creates a popup that warns about network disconnects. */
  private static UniversalPopup createTurbulencePopup() {
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    UniversalPopup popup =
        PopupFactory.createPopup(null, new CenterPopupPositioner(), chrome, true);
    popup.add(new HTML("<div style='color: red; padding: 5px; text-align: center;'>"
        + "<b>" + messages.turbulenceDetected() + "<br></br> "
        + messages.saveAndReloadWave() + "</b></div>"));
    return popup;
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

      }
    });

    // Wrap in a popup.
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    popup = PopupFactory.createPopup(null, new CenterPopupPositioner(), chrome, true);
    popup.add(this);
    popup.addPopupEventListener(this);
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

   * Shows in a popup, and returns the popup.
   */
  public UniversalPopup showInPopup() {
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    UniversalPopup popup = PopupFactory.createPopup(
        null, new CenterPopupPositioner(), chrome, true);

    TitleBar titleBar = popup.getTitleBar();
    titleBar.setTitleText(messages.selectGadget());
    popup.add(GadgetSelectorWidget.this);

View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

   */
  public UniversalPopup showInPopup(ParticipantId user, Set<ParticipantId> participants,
      ProfileManager profiles) {
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    UniversalPopup popup = PopupFactory.createPopup(
        null, new CenterPopupPositioner(), chrome, true);

    TitleBar titleBar = popup.getTitleBar();
    titleBar.setTitleText("Select participants");
    popup.add(ParticipantSelectorWidget.this);

View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

  public UploadFormPopup() {
    form = BINDER.createAndBindUi(this);

    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    chrome.enableTitleBar();
    popup = PopupFactory.createPopup(null, new CenterPopupPositioner(), chrome, false);
    popup.getTitleBar().setTitleText("Upload attachment");
    popup.add(form);

    iframe = Document.get().createIFrameElement();
    iframe.setName("_uploadform" + iframeId++);
View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

      }
    });

    // Wrap in a popup.
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    popup = PopupFactory.createPopup(null, new CenterPopupPositioner(), chrome, true);
    popup.add(this);
    popup.addPopupEventListener(this);
  }
View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

   * Shows in a popup, and returns the popup.
   */
  public UniversalPopup showInPopup() {
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    UniversalPopup popup = PopupFactory.createPopup(
        null, new CenterPopupPositioner(), chrome, true);

    TitleBar titleBar = popup.getTitleBar();
    titleBar.setTitleText("Select Gadget");
    popup.add(GadgetSelectorWidget.this);

View Full Code Here

Examples of org.waveprotocol.wave.client.widget.popup.CenterPopupPositioner

  /** Creates a popup that warns about network disconnects. */
  private static UniversalPopup createTurbulencePopup() {
    PopupChrome chrome = PopupChromeFactory.createPopupChrome();
    UniversalPopup popup =
        PopupFactory.createPopup(null, new CenterPopupPositioner(), chrome, true);
    popup.add(new HTML("<div style='color: red; padding: 5px; text-align: center;'>"
        + "<b>A turbulence detected!<br></br>"
        + " Please save your last changes to somewhere and reload the wave.</b></div>"));
    return popup;
  }
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.