@@ -0,0 +1,1864 @@
+/**%0A * %3CLicense%3E%0A */%0Apackage edu.colorado.csdms.wmt.client.ui.widgets;%0A%0Aimport com.google.gwt.user.client.ui.DialogBox;%0Aimport com.google.gwt.user.client.ui.HasHorizontalAlignment;%0Aimport com.google.gwt.user.client.ui.VerticalPanel;%0A%0A/**%0A * A %7B@link DialogBox%7D with %7B@link FieldPanel%7Ds for entering a username and%0A * password.%0A * %0A * @author Mark Piper (mark.piper@colorado.edu)%0A */%0Apublic class LoginDialogBox extends DialogBox %7B%0A%0A  private FieldPanel usernamePanel;%0A  private FieldPanel passwordPanel;%0A  private ChoicePanel choicePanel;%0A  %0A  /**%0A   * Makes a new %7B@link LoginDialogBox%7D with username and password%0A   * %7B@link FieldPanel%7Ds.%0A   */%0A  public LoginDialogBox() %7B%0A%0A    super(false); // autohide%0A    this.setModal(true);%0A    this.setText(%22Login to WMT%22);%0A%0A    usernamePanel = new FieldPanel();%0A    passwordPanel = new FieldPanel(true); // uses PasswordTextBox%0A    choicePanel = new ChoicePanel();%0A%0A    usernamePanel.getLabel().setText(%22Username:%22);%0A    passwordPanel.getLabel().setText(%22Password:%22);%0A    choicePanel.getOkButton().setHTML(%22%3Ci class='fa fa-sign-in'%3E%3C/i%3E Login%22);%0A%0A    VerticalPanel contents = new VerticalPanel();%0A    contents.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);%0A    contents.add(usernamePanel);%0A    contents.add(passwordPanel);%0A    contents.add(choicePanel);%0A%0A    this.setWidget(contents);%0A  %7D%0A%0A  public FieldPanel getUsernamePanel() %7B%0A    return usernamePanel;%0A  %7D%0A%0A  public void setUsernamePanel(FieldPanel usernamePanel) %7B%0A    this.usernamePanel = usernamePanel;%0A  %7D%0A%0A  public FieldPanel getPasswordPanel() %7B%0A    return passwordPanel;%0A  %7D%0A%0A  public void setPasswordPanel(FieldPanel passwordPanel) %7B%0A    this.passwordPanel = passwordPanel;%0A  %7D%0A%0A  public ChoicePanel getChoicePanel() %7B%0A    return choicePanel;%0A  %7D%0A%0A  public void setChoicePanel(ChoicePanel choicePanel) %7B%0A    this.choicePanel = choicePanel;%0A  %7D%0A%7D%0A

Add new LoginDialogBox