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

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


        innerlayout.setStyleName("fill-layout-width");

        hostSelector = new HostSelector();
        innerlayout.add(hostSelector.asWidget());

        DisclosurePanel hostPanel = new DisclosureStackPanel(Console.CONSTANTS.common_label_serverConfigs(), true).asWidget();
        hostPanel.setContent(innerlayout);

        hostTree = new LHSNavTree("hosts");
        innerlayout.add(hostTree);

        LHSNavTreeItem serversItem = new LHSNavTreeItem(Console.CONSTANTS.common_label_serverConfigs(), NameTokens.ServerPresenter);
View Full Code Here


    }

    public Widget asWidget()
    {
        ImageResource helpIcon = Icons.INSTANCE.help();
        helpPanel = new DisclosurePanel(helpIcon, helpIcon, "");

        helpPanel.addStyleName( isAligned ? "help-panel-aligned" : "help-panel");
        helpPanel.getHeader().getElement().setAttribute("style", "float:right");

        final String popupStyle = isAligned ? "help-panel-aligned-open" : "help-panel-open";
View Full Code Here

    }

    public Widget asWidget()
    {
        ImageResource helpIcon = Icons.INSTANCE.help();
        helpPanel = new DisclosurePanel(helpIcon, helpIcon, "");

        helpPanel.addStyleName( isAligned ? "help-panel-aligned" : "help-panel");

        helpPanel.getHeader().getElement().setAttribute("style", "float:right");
View Full Code Here

    }

    public Widget asWidget()
    {
        ImageResource helpIcon = Icons.INSTANCE.help();
        helpPanel = new DisclosurePanel(helpIcon, helpIcon, "");
        helpPanel.add(new HTML(helpText));
        helpPanel.addStyleName("help-panel");
        helpPanel.getHeader().getElement().setAttribute("style", "float:right");
        helpPanel.addOpenHandler(new OpenHandler<DisclosurePanel>() {
View Full Code Here

        servers.setState(true);

        innerlayout.add(metricTree);


        DisclosurePanel statusPanel  = new DisclosureStackPanel("Status", true).asWidget();
        statusPanel.setContent(innerlayout);

        stack.add(statusPanel);

        // ----------------------------------------------------

        Tree deploymentTree = new LHSNavTree("domain-runtime");
        DisclosurePanel deploymentPanel  = new DisclosureStackPanel("Deployments").asWidget();
        deploymentPanel.setContent(deploymentTree);

        deploymentTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentsPresenter));

        stack.add(deploymentPanel);
View Full Code Here

  private String openJs = "";
  private IVkWidget vkParent;
  private boolean isInitInProgress = false;
 
  public VkDisclosurePanel(){
    dp = new DisclosurePanel();
    initWidget(dp);
    isInitInProgress = true;
    VkLabel header = (VkLabel) VkStateHelper.getInstance().getEngine().addWidget(VkLabel.NAME, this);
    VkAbsolutePanel absolutePanel = (VkAbsolutePanel) VkStateHelper.getInstance().getEngine().addWidget(VkAbsolutePanel.NAME, this);
    isInitInProgress = false;
View Full Code Here

    }

    @UiFactory
    DisclosurePanel makeEventTypeDisclosurePanel() {
        //For some inexplicable reason it is impossible to I18N the DisclosurePanel title with uiBinder
        dpEventTypes = new DisclosurePanel( Constants.INSTANCE.DecisionTableAuditLogEvents() );
        dpEventTypes.add( lstEventTypes );

        dpEventTypes.addOpenHandler( new OpenHandler<DisclosurePanel>() {

            @Override
View Full Code Here

    advancedOptions.setWidget(0, 1, new TextBox());
    advancedOptions.setHTML(1, 0, constants.cwDisclosurePanelFormGender());
    advancedOptions.setWidget(1, 1, genderPanel);

    // Add advanced options to form in a disclosure panel
    DisclosurePanel advancedDisclosure = new DisclosurePanel(
        constants.cwDisclosurePanelFormAdvancedCriteria());
    advancedDisclosure.setAnimationEnabled(true);
    advancedDisclosure.ensureDebugId("cwDisclosurePanel");
    advancedDisclosure.setContent(advancedOptions);
    layout.setWidget(3, 0, advancedDisclosure);
    cellFormatter.setColSpan(3, 0, 2);

    // Wrap the contents in a DecoratorPanel
    DecoratorPanel decPanel = new DecoratorPanel();
View Full Code Here

            .appendHtmlConstant("</ul>")
        // @formatter:on
        ;

        // stack trace
        DisclosurePanel disclosurePanel =
                buildStackTraceDisclosurePanel(stackTrace);

        // send stack trace log to server

        popupContent.add(new HTMLPanel(htmlBuilder.toSafeHtml()));
View Full Code Here

        return builder.toString();
    }

    private static DisclosurePanel buildStackTraceDisclosurePanel(
            String stackTrace) {
        DisclosurePanel disclosurePanel =
                new DisclosurePanel(
                        "Stack trace of the exception (helpful to us)");
        disclosurePanel.getHeader().getParent().setStyleName(""); // conflict
                                                                  // style from
                                                                  // menu.css
        SafeHtmlBuilder htmlBuilder = new SafeHtmlBuilder();
        htmlBuilder.appendHtmlConstant("<pre>");
        htmlBuilder.appendHtmlConstant(stackTrace);
        htmlBuilder.appendHtmlConstant("</pre>");
        disclosurePanel.setContent(new HTMLPanel(htmlBuilder.toSafeHtml()));
        disclosurePanel.setOpen(false);
        return disclosurePanel;
    }
View Full Code Here

TOP

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

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.