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

Examples of com.google.gwt.user.client.ui.PopupPanel.center()


                showNearbyPhoto(event.getRelativeX(imageElement) >= width / 2);
            }
        });

        imagePopup.setGlassEnabled(true);
        imagePopup.center();
        focusPanel.setFocus(true);
    }
   
    /**
     * Hides the currently displayed photo.
View Full Code Here


          g.setText(i + 1, 0, i + 1 + "");
          g.setText(i + 1, 1, results.get(i).getInitialAngle() + "");
          g.setText(i + 1, 2, results.get(i).printHitSequence());
        }
        pop.show();
        pop.center();

      }
    });

    final CheckBox angleLimitBox = new CheckBox("0-120 instead of 0-360");
View Full Code Here

    popup.setWidget(vPanel);

    // Add control buttons
    Button showPopup = new Button("1. Show Popup", new ClickHandler() {
      public void onClick(ClickEvent event) {
        popup.center();
      }
    });
    Button clickable = new Button("2/4. Click Me", new ClickHandler() {
      public void onClick(ClickEvent event) {
        Window.alert("You got me!");
View Full Code Here

    }));

    // Create a button to show the PopupPanel
    Button showPopupButton = new Button("Show Popup", new ClickHandler() {
      public void onClick(ClickEvent event) {
        popup.center();
      }
    });

    // Create a bunch of input elements to test
    // TODO(jlabanca): divide this out into a separate issue 2707
View Full Code Here

          if (toDisplay != null) {
            PopupPanel popup = new PopupPanel(true, true);
            ScrollPanel container = new ScrollPanel(toDisplay);
            container.setPixelSize(500, 500);
            popup.setWidget(container);
            popup.center();
          }
        }
      });
      // TODO: popup.
      grid.setWidget(row, 2, a);
View Full Code Here

                    imagePopup.setAnimationEnabled(true);
                    imagePopup.setWidget(overlay);
                    imagePopup.setGlassEnabled(true);
                    imagePopup.setAutoHideEnabled(true);

                    imagePopup.center();

                  }
                });

          }
View Full Code Here

        imagePopup.setAnimationEnabled(true);
        imagePopup.setWidget(imageOverlay);
        imagePopup.setGlassEnabled(true);
        imagePopup.setAutoHideEnabled(true);

        imagePopup.center();
      }
    });

    return imageWidget;
  }
View Full Code Here

        if (update.containsKey(PROPERTY.ANIMATION)) {
            popup.setAnimationEnabled(update.getBoolean(PROPERTY.ANIMATION));
        } else if (update.containsKey(PROPERTY.POPUP_CENTER)) {
            popup.show();
            popup.center();
        } else if (update.containsKey(PROPERTY.POPUP_SHOW)) {
            popup.show();
        } else if (update.containsKey(PROPERTY.POPUP_POSITION_AND_SHOW)) {
            popup.setVisible(true);
        } else if (update.containsKey(PROPERTY.POPUP_HIDE)) {
View Full Code Here

    Image jimmyThumb = new Image(Showcase.images.jimmyThumb());
    jimmyThumb.ensureDebugId("cwBasicPopup-thumb");
    jimmyThumb.addStyleName("cw-BasicPopup-thumb");
    jimmyThumb.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        imagePopup.center();
      }
    });

    // Add the widgets to a panel
    VerticalPanel vPanel = new VerticalPanel();
View Full Code Here

                fullImage.setUrl(fullImageURL);

                imagePopup.setWidget(fullImage);

                // show full image
                imagePopup.center();
              }
            });

            // add event handling
            // fullImage.addClickHandler(new ClickHandler() {
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.