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

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


    private DisclosurePanel panel;

    public DisclosureStackPanel(String title, boolean first) {

        panel = new DisclosurePanel(Icons.INSTANCE.stack_opened(), Icons.INSTANCE.stack_closed(), title);
        panel.setOpen(true);
        panel.getElement().setAttribute("style", "width:100%;");
        panel.getHeader().setStyleName("stack-section-header");
        if(first) panel.getHeader().addStyleName("stack-section-first");
        panel.setWidth("100%"); // IE 7
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

            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";

        helpPanel.addOpenHandler(new OpenHandler<DisclosurePanel>() {
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

    }

    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

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


        subsysTree = new LHSNavTree("profiles");

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

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

        Tree deploymentTree = new LHSNavTree("profiles");
        deploymentTree.addItem(new LHSNavTreeItem("Manage Deployments", NameTokens.DeploymentListPresenter));
        DisclosurePanel deplPanel  = new DisclosureStackHeader("Deployments").asWidget();
        deplPanel.setContent(deploymentTree);

        stack.add(deplPanel);

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

        Tree commonTree = new LHSNavTree("profiles");
        DisclosurePanel commonPanel  = new DisclosureStackHeader("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

    private static final Templates TEMPLATES = GWT.create(Templates.class);
    private final DisclosurePanel dp;

    public SectionPanel(final SectionData section) {
        dp = new DisclosurePanel();
        dp.setHeader(new HTML(TEMPLATES.header(IdHelper.asId(getClass(), "_" + section.getId()), section.getTitle())));
        dp.addOpenHandler(this);
        dp.addCloseHandler(this);
        dp.setOpen(section.isOpen());
        FlowPanel sectionBody = new FlowPanel();
View Full Code Here

        HorizontalPanel mainPanel = new HorizontalPanel();
        mainPanel.add(rankLabel);
        mainPanel.add(collegeNameLabel);
        mainPanel.setCellWidth(rankLabel, "30px");

        DisclosurePanel disclosurePanel = new DisclosurePanel(" ");
        disclosurePanel.add(getInfoPanel());
        mainPanel.add(disclosurePanel);
        mainPanel.setCellHorizontalAlignment(disclosurePanel,
                HorizontalPanel.ALIGN_RIGHT);
        mainPanel.setStylePrimaryName("TC-CollegeEntry");
View Full Code Here

    notEmptyTextBox = new TextBox();
    regexEntryTextBox = new TextBox();
    regexEntryTextBox.setText("(a|b)*");
    regexValidateEntryTextBox = new TextBox();
   
    allErrorsPanel = new DisclosurePanel(showcaseConstants.allErrors());
   
    uppercaseTextBox = new TextBox();
    uppercaseTextBox.setText("Supersize Me!");
    trimmedUppercaseTextBox = new TextBox();
    trimmedUppercaseTextBox.setText("     Trim and uppercase me!     ");
View Full Code Here

   * @param single Single or Multi type interface?
   */
  public MultiOptionInterfacePanel(boolean single) {
    this.single = single;
    optionsPanel = new OptionsPanel();
    dpOptions = new DisclosurePanel("Options", true);
    dpOptions.add(optionsPanel);
  }
View Full Code Here

TOP

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

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.