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

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


                "<div class=\"spiffy-dialog-caption-close-icon\"></div></a></div>" +
            "<div id=\"" + m_id + "_title\" class=\"spiffy-dialog-caption " + titleStyle + "\">" + title + "</div>";
        setHTML(captionDiv);
       
        FlowPanel main = new FlowPanel();       
        m_dialogBody = new HTMLPanel("<div><div id=\"" + m_id + "_mainDlgBody\"></div><div>");
        main.add(m_dialogBody);
        add(main);
       
        m_buttonBar = new FlowPanel();
        m_buttonBar.setStyleName("spiffy-dialog-button-bar");       
View Full Code Here


                        String cause = "";
                        if(context.getLastError()!=null)
                            cause = context.getLastError().getMessage();

                        HTMLPanel explanation = new HTMLPanel("<div style='padding-top:150px;padding-left:120px;'><h2>The management interface could not be loaded.</h2><pre>"+cause+"</pre></div>");
                        RootLayoutPanel.get().add(explanation);
                    }

                    @Override
                    public void onSuccess(BootstrapContext context) {
View Full Code Here

        productVersion.getElement().getParentElement().setAttribute("style", "vertical-align:bottom;");
        return panel;
    }

    private Widget getLinksSection() {
        linksPane = new HTMLPanel(createLinks());
        linksPane.getElement().setId("header-links-section");
        linksPane.getElement().setAttribute("role", "menubar");
        linksPane.getElement().setAttribute("aria-controls", "main-content-area");

        String[][] sections = bootstrap.isStandalone() ? SECTIONS_STANADLONE : SECTIONS;
View Full Code Here

                "<div id=\"" + HEADER_ACTIONS_BLOCK + "\">" +
                    "<span id=\"" + HEADER_STRING + "\"></span> " +
                "</div>" +
            "</div>";

        m_panel = new HTMLPanel("div", html);
        m_panel.getElement().setId("mainHeaderContainer");

        add(m_panel);
       
        if (RootPanel.get("mainHeader") != null) {
View Full Code Here

        super(true);
        setAnimationEnabled(true);
       
        m_id = HTMLPanel.createUniqueId();
        getElement().setId(m_id);
        m_body = new HTMLPanel("<div class=\"tooltipClose\"><a href=\"#\" id=\"" + m_id + "_close\" title=\"" + STRINGS.close() + "\">" +
                "<div class=\"tooltipCloseIcon\"></div></a></div>" +
            "<div class=\"tooltipBody\" id=\"" + m_id + "_body\"></div>");

        m_body.setStyleName("tooltipContent");
        setWidget(m_body);
View Full Code Here

         * Add 3 status indicators
         */
        StatusIndicator status1 = new StatusIndicator(StatusIndicator.IN_PROGRESS);
        StatusIndicator status2 = new StatusIndicator(StatusIndicator.SUCCEEDED);
        StatusIndicator status3 = new StatusIndicator(StatusIndicator.FAILED);
        HTMLPanel statusPanel = addToSlidingGrid(status1, "WidgetsStatus", Index.getStrings().statusIndicator(),
                                                 STRINGS.Status_html());
        statusPanel.add(status2, "WidgetsStatus");
        statusPanel.add(status3, "WidgetsStatus");       
    }
View Full Code Here

    {
        /*
         * Add a refresh anchor to our page
         */
        m_refresh = new RefreshAnchor("Widgets_refreshAnchor");
        HTMLPanel p = addToSlidingGrid(m_refresh, "WidgetsRefreshAnchor", Index.getStrings().refreshAnchor(), STRINGS.RefreshAnchor_html(), TALL);
        Element h3 = p.getElementById("WID_WidgetsRefreshAnchor");
        //Set the title so that the TOC's list item for this isn't too long
        h3.setTitle(Index.getStrings().refreshAnchorConfirmDialog_toc());
       
        m_refresh.addClickHandler(new ClickHandler() {

View Full Code Here

        }, true);
        msb.getFeedback().addStyleName("msg-feedback");
        msb.setPageSize(8); //since each value takes up more space, let's cut the size.
       
        String spanId = "WidgetsSuggestBox";
        HTMLPanel panel = addToSlidingGrid(msb, spanId, Index.getStrings().mvsp(), STRINGS.MultiVal_html(), BIG);
        /*
         * so that spellcheck is not done on a selected crayon color of "Screamin' Green"
         */
        Element span = panel.getElementById(spanId);
        span.setAttribute("spellcheck", "false");
       
//        /*
//         * temp to show how to get values and how to
//         * have a default value of Electric Lime
View Full Code Here

                event.preventDefault();
                Index.selectItem(Index.CSS_NAV_ITEM_ID);
            }
        });
       
        HTMLPanel panel = addToSlidingGrid(null, "NavPanelGridCell", Index.getStrings().navBar(), STRINGS.NavBar_html(), TALL);

        panel.add(css, "cssPageWidgetsLink");
    }
View Full Code Here

                };
                t.schedule(1000);
            }
        });

        HTMLPanel loginButtonPanel = addToSlidingGrid(doLoginButton, "WidgetsLoginPanel", Index.getStrings().loginPanel(),
                                                      STRINGS.LoginWidget_html(), TALL);
        loginButtonPanel.add((new HTML("<p><div id=\"loginResult\"></div>")), "WidgetsLoginPanel");

        Anchor auth = new Anchor(Index.getStrings().authPage(), "AuthPanel");
        auth.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event)
            {
                event.preventDefault();
                Index.selectItem(Index.AUTH_NAV_ITEM_ID);
            }
        });
        loginButtonPanel.add(auth, "authPanelSpan");
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.HTMLPanel

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.