Examples of DecoratedPopupPanel


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

  }

  private Image createImageWidget(final UploadedImage image) {
    final Image imageWidget = new Image();
    imageWidget.setUrl(image.getServingUrl() + "=s200");
    final DecoratedPopupPanel simplePopup = new DecoratedPopupPanel(true);

    imageWidget.addMouseOverHandler(new MouseOverHandler() {

      @Override
      public void onMouseOver(MouseOverEvent event) {
        Widget source = (Widget) event.getSource();
        int left = source.getAbsoluteLeft() + 10;
        int top = source.getAbsoluteTop() + source.getOffsetHeight()
            + 10;

        simplePopup.setWidth("150px");
        simplePopup.setWidget(new HTML("Uploaded: "
            + image.getCreatedAt()));
        simplePopup.show();
        simplePopup.setPopupPosition(left, top);
      }
    });

    imageWidget.addMouseOutHandler(new MouseOutHandler() {

      @Override
      public void onMouseOut(MouseOutEvent event) {
        simplePopup.hide();
      }
    });

    imageWidget.addClickHandler(new ClickHandler() {
View Full Code Here

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

public class PTDecoratedPopupPanel extends PTPopupPanel {

    @Override
    public void create(final PTInstruction create, final UIService uiService) {
        init(create, uiService, new DecoratedPopupPanel(create.getBoolean(PROPERTY.POPUP_AUTO_HIDE)));
        addCloseHandler(create, uiService);
    }
View Full Code Here

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

   * @param visible true to show, false to hide
   */
  private static void setGlassPanelVisible(boolean visible) {
    // Initialize the panel.
    if (glassPanel == null) {
      glassPanel = new DecoratedPopupPanel(false, true);
      glassPanel.setWidget(new Label("Loading..."));
    }

    if (visible) {
      // Show the loading panel.
View Full Code Here

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

   */
  @ShowcaseSource
  @Override
  public Widget onInitialize() {
    // Create a basic popup widget
    final DecoratedPopupPanel simplePopup = new DecoratedPopupPanel(true);
    simplePopup.ensureDebugId("cwBasicPopup-simplePopup");
    simplePopup.setWidth("150px");
    simplePopup.setWidget(new HTML(
        constants.cwBasicPopupClickOutsideInstructions()));

    // Create a button to show the popup
    Button openButton = new Button(constants.cwBasicPopupShowButton(),
        new ClickHandler() {
          public void onClick(ClickEvent event) {
            // Reposition the popup relative to the button
            Widget source = (Widget) event.getSource();
            int left = source.getAbsoluteLeft() + 10;
            int top = source.getAbsoluteTop() + 10;
            simplePopup.setPopupPosition(left, top);

            // Show the popup
            simplePopup.show();
          }
        });

    // Create a popup to show the full size image
    Image jimmyFull = new Image(Showcase.images.jimmy());
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.