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

Examples of com.google.gwt.user.client.ui.PopupPanel.PositionCallback


                             dom );
        }
        datePicker.setCurrentMonth( date );
        datePicker.setValue( date );

        panel.setPopupPositionAndShow( new PositionCallback() {
            public void setPosition(int offsetWidth,
                                    int offsetHeight) {
                panel.setPopupPosition( parent.getAbsoluteLeft()
                                                + offsetX,
                                        parent.getAbsoluteTop()
View Full Code Here


                    break;
                }
            }
        }

        panel.setPopupPositionAndShow( new PositionCallback() {
            public void setPosition(int offsetWidth,
                                    int offsetHeight) {
                panel.setPopupPosition( parent.getAbsoluteLeft()
                                                + offsetX,
                                        parent.getAbsoluteTop()
View Full Code Here

                                final Element parent,
                                final Integer value) {

        textBox.setValue( (value == null ? "" : Integer.toString( value )) );

        panel.setPopupPositionAndShow( new PositionCallback() {
            public void setPosition(int offsetWidth,
                                    int offsetHeight) {
                panel.setPopupPosition( parent.getAbsoluteLeft()
                                                + offsetX,
                                        parent.getAbsoluteTop()
View Full Code Here

      Date viewData = getViewData(key);
      Date date = (viewData == null) ? value : viewData;
      datePicker.setCurrentMonth(date);
      datePicker.setValue(date);
      panel.setPopupPositionAndShow(new PositionCallback() {
        public void setPosition(int offsetWidth, int offsetHeight) {
          panel.setPopupPosition(parent.getAbsoluteLeft() + offsetX,
              parent.getAbsoluteTop() + offsetY);
        }
      });
View Full Code Here

  public void askForCloudDocumentSelection() {
    cloudMapsDeck.showWidget(DECK_WAIT);
    localMapsDeck.showWidget(DECK_WAIT);

    if (_positionCallback == null) {
      _positionCallback = new PositionCallback() {

        @Override
        public void setPosition(int offsetWidth, int offsetHeight) {
          _panel.setPopupPosition(
              (Window.getClientWidth() - offsetWidth) / 2,
View Full Code Here

  protected void showError(final MindNotesViewerUI ui, String string) {
    DOM.getElementById("loader").removeFromParent();
    ui.errorDialogLabel.setText(string);

    ui.errorDialog.setPopupPositionAndShow(new PositionCallback() {

      @Override
      public void setPosition(int offsetWidth, int offsetHeight) {
        ui.errorDialog.setPopupPosition(
            (Window.getClientWidth() - offsetWidth) / 2,
View Full Code Here

  /**
   *
   */
  private void initMindMapSelectionDialog() {
    _mindMapSelectionDialog = new MindMapSelectionDialog();
    _mindMapSelectionDialog.setPositionCallback(new PositionCallback() {

      @Override
      public void setPosition(int offsetWidth, int offsetHeight) {
        if (_window == null)
          return;
View Full Code Here

    DeferredCommand.addCommand(new Command() {

      @Override
      public void execute() {
        _shareOptionsDialog
            .setPopupPositionAndShow(new PositionCallback() {

              @Override
              public void setPosition(int offsetWidth,
                  int offsetHeight) {
                int x = _window.cloudBarPanel.shareButton
View Full Code Here

  public void onCloseClicked(ClickEvent e) {
    popup.hide();
  }

  public void showMessageBar() {
    popup.setPopupPositionAndShow(new PositionCallback() {

      @Override
      public void setPosition(int offsetWidth, int offsetHeight) {
        int w = Window.getClientWidth();
        popup.setPopupPosition((w - offsetWidth) / 2, 0);
View Full Code Here

        previewLink.setText(result.getVisibleUrl());

        previewLink.setHref(result.getOriginalContextUrl());
        previewDimensions.setText(result.getWidth() + " x "
            + result.getHeight());
        PositionCallback positionCallback = new PositionCallback() {

          @Override
          public void setPosition(int offsetWidth, int offsetHeight) {
            int x = image.getAbsoluteLeft()
                + (image.getOffsetWidth() - offsetWidth) / 2;
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.PopupPanel.PositionCallback

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.