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

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


        AriaLink showHide = new AriaLink(show);
        showHide.addStyleName("details-panel-header");
        showHide.getElement().setId(asId(PREFIX, getClass()));
        showHide.getElement().setAttribute("style", "padding-top:.5em;");

        final DisclosurePanel panel = new DisclosurePanel();
        panel.setHeader(showHide);
        panel.addStyleName("help-panel-aligned");
        panel.addOpenHandler(new OpenHandler<DisclosurePanel>() {
            @Override
            public void onOpen(OpenEvent<DisclosurePanel> event) {
                event.getTarget().addStyleName("help-panel-aligned-open");
                panel.getHeaderTextAccessor().setText(hide);
            }
        });
        panel.addCloseHandler(new CloseHandler<DisclosurePanel>() {
            @Override
            public void onClose(CloseEvent<DisclosurePanel> event) {
                panel.getHeaderTextAccessor().setText(show);
            }
        });

        details = new Code();
        panel.add(details);

        initWidget(panel);
        setStyleName("hal-error-details");
    }
View Full Code Here


    private final DisclosurePanel dp;

    public ContentBox(final String id, final String title, final SafeHtml body, final String linkTitle,
                      final String linkTarget) {

        dp = new DisclosurePanel();
        dp.setHeader(new HTML(TEMPLATES.header(IdHelper.asId(id + "_", getClass(), "_" + "header"), title)));
        dp.addOpenHandler(this);
        dp.addCloseHandler(this);
        dp.setOpen(true);
View Full Code Here

        setStyleName("homepage-content-box");
    }

    public ContentBox(final String id, final String title, final SafeHtml body, Widget widget) {

        dp = new DisclosurePanel();
        dp.setHeader(new HTML(TEMPLATES.header(IdHelper.asId(id + "_", getClass(), "_" + "header"), title)));
        dp.addOpenHandler(this);
        dp.addCloseHandler(this);
        dp.setOpen(true);
View Full Code Here

            public void onClick(ClickEvent clickEvent) {
                helpPanel.setOpen(!helpPanel.isOpen());
            }
        });

        helpPanel = new DisclosurePanel(header);

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

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

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


        subsysTree = new LHSNavTree("profiles");

        DisclosurePanel subsysPanel  = new DisclosureStackPanel("Profile").asWidget();
        subsysPanel.setContent(subsysTree);
        stack.add(subsysPanel);

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

        Tree serverTree = new LHSNavTree("profiles");
        serverTree.addItem(new LHSNavTreeItem("JVM Status", NameTokens.VirtualMachine));
        serverTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentListPresenter));
        DisclosurePanel serverPanel  = new DisclosureStackPanel("Runtime Status").asWidget();
        serverPanel.setContent(serverTree);

        stack.add(serverPanel);

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

        Tree commonTree = new LHSNavTree("profiles");
        DisclosurePanel commonPanel  = new DisclosureStackPanel("General Configuration").asWidget();
        commonPanel.setContent(commonTree);

        LHSNavTreeItem[] commonItems = new LHSNavTreeItem[] {
                /*new LHSNavTreeItem("Server", NameTokens.StandaloneServerPresenter),*/
                new LHSNavTreeItem("Interfaces", NameTokens.InterfacePresenter),
                new LHSNavTreeItem("Socket Binding Groups", NameTokens.SocketBindingPresenter),
View Full Code Here

    }

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

        helpPanel.addStyleName("help-panel");
        helpPanel.getHeader().getElement().setAttribute("style", "float:right");
        helpPanel.addOpenHandler(new OpenHandler<DisclosurePanel>() {
View Full Code Here

    StyledLabel instructionUN = new StyledLabel("instruction",
        "Choose the defaults for who can see and do what.");
    sectionSimple.add(buttonAdvanced);
    sectionSimple.add(titleUN);
    sectionSimple.add(instructionUN);
    DisclosurePanel disclosureStatus = new DisclosurePanel(
        "More options for status updates");

    // Advanced settings status
    FlexTable advancedStatus = new FlexTable();
    PrivacySelector advancedstatus = new PrivacySelector("advancedstatus");
    addWidgetRow(advancedStatus, "See your status updates", advancedstatus);
    disclosureStatus.add(advancedStatus);

    // Simple privacy settings
    FlexTable simple = new FlexTable();

    simple.addStyleName("privacy");
View Full Code Here

        }
      }
    };
    themeListBox.setVisibleItemCount(5);

    DisclosurePanel themesPanel = new DisclosurePanel("Themes");
    themesPanel.add(themeListBox);
    return themesPanel;
  }
View Full Code Here

    locationPanel.add(buttonPanel);
    locationPanel.add(
        new Label("Tip: once the map is visible, right-click a point on the map to indicate that"
            + " this is the precise location you want"));

    DisclosurePanel locationZippy = new DisclosurePanel("Location");
    locationZippy.add(locationPanel);
    return locationZippy;
  }
View Full Code Here

    grid.setWidget(0, 1, sourceContentItemSelector);
    grid.setWidget(1, 0, new Label("Description of source material:"));
    grid.setWidget(1, 1, sourceDescriptionBox);
    panel.add(grid);
   
    DisclosurePanel sourcePanel = new DisclosurePanel("Source Information");
    sourcePanel.add(panel);
    return sourcePanel;
  }
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.