View Javadoc

1   /**
2    *
3    */
4   package org.appfuse.webapp.client.ui.users.updatePassword;
5   
6   import javax.validation.constraints.NotNull;
7   
8   import com.google.gwt.editor.client.EditorDriver;
9   import com.google.gwt.user.client.ui.IsWidget;
10  
11  /**
12   * @author ivangsa
13   *
14   */
15  public interface UpdatePasswordView extends IsWidget {
16  
17      public interface Delegate {
18          void onUpdatePasswordClick();
19  
20          void onCancelClick();
21      }
22  
23      public static class UserCredentials {
24          @NotNull
25          String username;
26          @NotNull
27          String password;
28          String token;
29          String currentPassword;
30  
31          public String getUsername() {
32              return username;
33          }
34  
35          public String getPassword() {
36              return password;
37          }
38  
39          public String getToken() {
40              return token;
41          }
42  
43          public String getCurrentPassword() {
44              return currentPassword;
45          }
46  
47          public void setUsername(final String username) {
48              this.username = username;
49          }
50  
51          public void setPassword(final String password) {
52              this.password = password;
53          }
54  
55          public void setToken(final String token) {
56              this.token = token;
57          }
58  
59          public void setCurrentPassword(final String currentPassword) {
60              this.currentPassword = currentPassword;
61          }
62  
63      }
64  
65      void setDelegate(Delegate delegate);
66  
67      void setUserCredentials(final UserCredentials userCredentials);
68  
69      void setWaiting(boolean wait);
70  
71      EditorDriver<UserCredentials> getEditorDriver();
72  }