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

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


          // Show the popup of contact info
          int left = contactLink.getAbsoluteLeft() + 14;
          int top = contactLink.getAbsoluteTop() + 14;
          contactPopup.setPopupPosition(left, top);
          contactPopup.show();
        }
      });
    }
    return contactsPanel;
  }
View Full Code Here


                PopupPanel popup = new PopupPanel(true);
                popup.getElement().setAttribute("style", "z-index:20");
                popup.setWidget(new Label(input.getErrMessage()));
                popup.setStyleName("popup-hint");
                popup.setPopupPosition(err.getAbsoluteLeft()+16, err.getAbsoluteTop()+16);
                popup.show();
            }
        });
    }

    public void setErroneous(boolean hasErrors)
View Full Code Here

        button.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent event) {
                if ( button.isDown() ) {
                    popup.setPopupPosition( button.getAbsoluteLeft(),
                                            button.getAbsoluteTop() + button.getOffsetHeight() );
                    popup.show();
                } else {
                    popup.hide(false);
                }
            }
        } );
View Full Code Here

        popupPanel.setAutoHideEnabled(true);
        popupPanel.setGlassEnabled(true);
        popupPanel.setVisible(false);
        popupPanel.setGlassStyleName("glass");
        popupPanel.setWidget(new AboutBoxContent());
        popupPanel.show();
        popupPanel.addStyleName("glass-popup-shadow");
        Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
            @Override
            public void execute() {
                int left = (Window.getClientWidth() - popupPanel.getOffsetWidth()) / 2;
View Full Code Here

          contactInfo.setHTML(contactName + "<br><i>" + contactEmail + "</i>");
          // Show the popup of contact info
          int left = contactLink.getAbsoluteLeft() + 14;
          int top = contactLink.getAbsoluteTop() + 14;
          contactPopup.setPopupPosition(left, top);
          contactPopup.show();
        }
      });
    }

    return flexTable;
View Full Code Here

        horizontalPanel.add( getTextBox() );
        horizontalPanel.add( okButton );

        popup.add( horizontalPanel );

        popup.show();

    }

    public TextBox getTextBox() {
View Full Code Here

        horizontalPanel.add( enumDropDown );
        horizontalPanel.add( okButton );

        popup.add( horizontalPanel );

        popup.show();

    }

    private EnumDropDown getEnumDropDown(final BaseSingleFieldConstraint constraint,
                                         SuggestionCompletionEngine sce,
View Full Code Here

      // Pre-Assert
      assertThat(popup.isVisible()).isTrue();
      assertThat(popup.isShowing()).isFalse();

      // Act
      popup.show();

      // Assert
      assertTrue(popup.isShowing());
   }
View Full Code Here

      popup.setGlassEnabled(true);
      // Pre-Assert
      assertThat(popup.isShowing()).isFalse();

      // Act
      popup.show();

      // Assert
      assertThat(popup.isShowing()).isTrue();
   }
View Full Code Here

        m_Label.removeStyleName("popped");
      }
    });

    popupPanel.show();
  }

  private Label initComponents() {
    Label toReturn = new Label(m_Title);
    toReturn.addStyleName("Tree-Album");
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.