@@ -0,0 +1,1041 @@
+/**%0A * %3CLicense%3E%0A */%0Apackage edu.colorado.csdms.wmt.client.ui.widgets;%0A%0Aimport com.google.gwt.dom.client.Style.Unit;%0Aimport com.google.gwt.user.client.ui.Button;%0Aimport com.google.gwt.user.client.ui.HasHorizontalAlignment;%0Aimport com.google.gwt.user.client.ui.HorizontalPanel;%0A%0A/**%0A * Makes a %7B@link HorizontalPanel%7D with a centered %22Close%22 button. Reusable!%0A * %0A * @author Mark Piper (mark.piper@colorado.edu)%0A */%0Apublic class ClosePanel extends HorizontalPanel %7B%0A%0A  private Button button;%0A  %0A  /**%0A   * Makes a new %7B@link ClosePanel%7D with a centered %22Close%22 button.%0A   */%0A  public ClosePanel() %7B%0A%0A    this.setWidth(%22100%25%22);%0A    this.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);%0A%0A    button = new Button(%22%3Ci class='fa fa-times'%3E%3C/i%3E Close%22);%0A    button.getElement().getStyle().setMarginTop(1, Unit.EM);%0A    button.getElement().getStyle().setMarginBottom(0.5, Unit.EM);%0A%0A    this.add(button);%0A  %7D%0A%0A  public Button getButton() %7B%0A    return button;%0A  %7D%0A%0A  public void setButton(Button button) %7B%0A    this.button = button;%0A  %7D%0A%7D%0A

Make a reusable panel with a centered "Close" button