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

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


*/
public class Issue2261 extends AbstractIssue {

  @Override
  public Widget createIssue() {
    DisclosurePanel disclosurePanel = new DisclosurePanel("Disclosure Panel 1");
    disclosurePanel.setAnimationEnabled(true);
    Label content = new Label("Some content<br/><br/><br/>");
    content.setHeight("200px");
    content.getElement().getStyle().setProperty("background", "blue");
    disclosurePanel.setContent(content);
    return disclosurePanel;
  }
View Full Code Here


    }
    assertTrue("Panel contains widget", containsWidget);
  }

  public void testDisclosurePanel() {
    DisclosurePanel p = widgetUi.myDisclosurePanel;
    assertNotNull("Panel exists", p);
    Widget w = widgetUi.myDisclosurePanelItem;
    assertNotNull("Widget exists", w);
    assertEquals("Panel contains widget", w, p.getContent());
  }
View Full Code Here

public class DisclosureGroupRenderer  implements GroupRenderer {

    @Override
    public Widget render(RenderMetaData metaData, String groupName, Map<String, FormItem> groupItems) {

        DisclosurePanel disclosurePanel = new DisclosurePanel(groupName);
        disclosurePanel.addStyleName("default-disclosure");
        DefaultGroupRenderer renderer = new DefaultGroupRenderer();

        disclosurePanel.add(
                renderer.render(metaData, groupName, groupItems)
        );

        return disclosurePanel;
    }
View Full Code Here

        stack.add(subsysWidget);

        // -------- groups


        DisclosurePanel groupsPanel = new DisclosureStackPanel("Server Groups").asWidget();
        LHSNavTree groupsTree = new LHSNavTree("profiles");
        groupsPanel.setContent(groupsTree);

        groupsTree.addItem(new LHSNavTreeItem("Group Configurations", NameTokens.ServerGroupPresenter));
        stack.add(groupsPanel);

        // --------
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

        final PTImage close = (PTImage) uiService.getPTObject(closeImg);

        final PImageResource openImageResource = new PImageResource(open.cast());
        final PImageResource closeImageResource = new PImageResource(close.cast());

        init(create, uiService, new DisclosurePanel(openImageResource, closeImageResource, headerText));

        addHandlers(create, uiService);
    }
View Full Code Here

public class DisclosureGroupRenderer  implements GroupRenderer {

    @Override
    public Widget render(RenderMetaData metaData, String groupName, Map<String, FormItem> groupItems) {

        DisclosurePanel disclosurePanel = new DisclosurePanel(groupName);
        disclosurePanel.addStyleName("default-disclosure");
        DefaultGroupRenderer renderer = new DefaultGroupRenderer();

        disclosurePanel.add(
                renderer.render(metaData, groupName, groupItems)
        );

        return disclosurePanel;
    }
View Full Code Here

    private DisclosurePanel panel;

    public DisclosureStackHeader(String title) {

        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");
        panel.setWidth("100%"); // IE 7
View Full Code Here

    add(descriptionBlock);

    approvals = new ApprovalTable();
    add(approvals);

    includedInPanel = new DisclosurePanel(Util.C.changeScreenIncludedIn());
    includedInTable = new IncludedInTable(changeId);

    includedInPanel.setContent(includedInTable);
    add(includedInPanel);
View Full Code Here

              final String msg = "Request failed: " + response.getStatusText();
              if (newline < 0) {
                displayError(msg + ": " + err);
              } else {
                displayError(msg);
                final DisclosurePanel dp =
                  new DisclosurePanel(err.substring(0, newline));
                RootPanel.get("queryuimain").add(dp)// Attach the widget.
                final InlineLabel content =
                  new InlineLabel(err.substring(newline, err.length()));
                content.addStyleName("fwf")// For readable stack traces.
                dp.setContent(content);
                current_error.getElement().appendChild(dp.getElement());
              }
            } else {
              displayError("Request failed while getting " + url + ": "
                           + response.getStatusText());
              // Since we don't call the callback we've been given, reset this
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.