Java Code Examples for com.google.gwt.user.client.ui.PopupPanel#setHeight()

The following examples show how to use com.google.gwt.user.client.ui.PopupPanel#setHeight() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
BootstrapServerDialog(final BootstrapServerSetup serverSetup) {
    connectPage = new ConnectPage(serverSetup, this);
    configurePage = new ConfigurePage(serverSetup, this);

    deck = new DeckLayoutPanel();
    deck.addStyleName("window-content"); // white background for forms
    deck.addStyleName("default-window-content");
    deck.add(connectPage);
    deck.add(configurePage);

    int width = 750;
    popupPanel = new PopupPanel(false, true);
    popupPanel.setGlassEnabled(true);
    popupPanel.setAnimationEnabled(false);
    popupPanel.setWidget(deck);
    popupPanel.setWidth(String.valueOf(width) + "px");
    popupPanel.setHeight(String.valueOf(width / DefaultWindow.GOLDEN_RATIO) + "px");
    popupPanel.setStyleName("default-window");
}
 
Example 2
static void init(BootstrapContext bootstrapContext) {
    String locale = Preferences.get(Preferences.Key.LOCALE, "en");
    String url = bootstrapContext.getProperty(ApplicationProperties.GUIDED_TOUR) + "/" +
            (bootstrapContext.isStandalone() ? "standalone" : "domain") + "/step1.html?setLng=" + locale;

    Frame tourFrame = new Frame(url);
    tourFrame.setWidth("100%");
    tourFrame.setHeight("100%");

    guidedTour = new PopupPanel(true, true) {
        {
            Window.addResizeHandler(resizeEvent -> {
                if (isShowing()) {
                    center();
                }
            });
        }

        @Override
        protected void onPreviewNativeEvent(Event.NativePreviewEvent event) {
            if (Event.ONKEYUP == event.getTypeInt()) {
                if (event.getNativeEvent().getKeyCode() == KeyboardEvent.KeyCode.ESC) {
                    hide();
                }
            }
        }
    };
    guidedTour.setGlassEnabled(true);
    guidedTour.setAnimationEnabled(false);
    guidedTour.setWidget(tourFrame);
    guidedTour.setWidth("1120px");
    guidedTour.setHeight("800px");
    guidedTour.setStyleName("default-window");

    exportCloseMethod();
}
 
Example 3
private static void displaySubsystemHelp(HasTreeItems subsysTree) {
    PopupPanel help = new PopupPanel();
    help.setStyleName("help-panel-open");
    help.getElement().setAttribute("style", "padding:15px");
    help.setWidget(new HTML("Mostly likely there is no UI provided to manage a particular subsystem. " +
            "It might as well be, that the profile doesn't include any subsystems at all."));

    Widget widget = (Widget) subsysTree;
    help.setPopupPosition(widget.getAbsoluteLeft()+50, widget.getAbsoluteTop()+20);
    help.setWidth("240px");
    help.setHeight("80px");
    help.setAutoHideEnabled(true);
    help.show();

}