@@ -0,0 +1,1819 @@
+package org.jboss.as.console.client.shared.help;%0A%0Aimport com.google.gwt.event.logical.shared.CloseEvent;%0Aimport com.google.gwt.event.logical.shared.CloseHandler;%0Aimport com.google.gwt.event.logical.shared.OpenEvent;%0Aimport com.google.gwt.event.logical.shared.OpenHandler;%0Aimport com.google.gwt.resources.client.ImageResource;%0Aimport com.google.gwt.user.client.ui.DisclosurePanel;%0Aimport com.google.gwt.user.client.ui.HTML;%0Aimport com.google.gwt.user.client.ui.Widget;%0Aimport org.jboss.as.console.client.widgets.icons.Icons;%0A%0A/**%0A * Displays static help descriptions.%0A *%0A * @author Heiko Braun%0A * @date 6/8/11%0A */%0Apublic class StaticHelpPanel %7B%0A%0A    private DisclosurePanel helpPanel;%0A    private HTML helpText;%0A%0A    public StaticHelpPanel(HTML helpText) %7B%0A        this.helpText = helpText;%0A    %7D%0A%0A    public StaticHelpPanel(String helpText) %7B%0A        this.helpText = new HTML(%22%3Cul class='help-attribute-descriptions'%3E%3Cli%3E%22+helpText+%22%3C/li%3E%3C/ul%3E%22);%0A    %7D%0A%0A    public Widget asWidget()%0A    %7B%0A        ImageResource helpIcon = Icons.INSTANCE.help();%0A        helpPanel = new DisclosurePanel(helpIcon, helpIcon, %22%22);%0A        helpPanel.add(helpText);%0A        helpPanel.addStyleName(%22help-panel%22);%0A        helpPanel.getHeader().getElement().setAttribute(%22style%22, %22float:right%22);%0A        helpPanel.addOpenHandler(new OpenHandler%3CDisclosurePanel%3E() %7B%0A%0A            @Override%0A            public void onOpen(OpenEvent%3CDisclosurePanel%3E event) %7B%0A                event.getTarget().addStyleName(%22help-panel-open%22);%0A            %7D%0A        %7D);%0A%0A        helpPanel.addCloseHandler(new CloseHandler%3CDisclosurePanel%3E() %7B%0A            @Override%0A            public void onClose(CloseEvent%3CDisclosurePanel%3E event) %7B%0A                event.getTarget().removeStyleName(%22help-panel-open%22);%0A            %7D%0A        %7D);%0A%0A        return helpPanel;%0A%0A    %7D%0A%7D%0A

Introduce static help panel