litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/view/ResetPasswordDialogFactory.java
|
@@ -1,20 +1,20 @@ |
1 |
|
- |
package org.litesoft.GWT.client.view; |
2 |
|
- |
|
3 |
|
- |
import org.litesoft.core.*; |
4 |
|
- |
import org.litesoft.security.*; |
5 |
|
- |
|
6 |
|
- |
import com.google.gwt.core.client.*; |
7 |
|
- |
import com.google.gwt.user.client.*; |
8 |
|
- |
|
9 |
|
- |
public class ResetPasswordDialogFactory<T extends SecurityUserView<T>> implements LoginPasswordResetDialogViewFactory { |
10 |
|
- |
@Override |
11 |
|
- |
public DialogView createDialog( ClientContext pClientContext, final Command pOnSuccess ) { |
12 |
|
- |
return new ChangePassword<T>( "Reset Password" ) { |
13 |
|
- |
@Override |
14 |
|
- |
protected void submitSucceeded() { |
15 |
|
- |
super.submitSucceeded(); |
16 |
|
- |
Scheduler.get().scheduleDeferred( pOnSuccess ); |
17 |
|
- |
} |
18 |
|
- |
}; |
19 |
|
- |
} |
20 |
|
- |
} |
|
1 |
+ |
package org.litesoft.GWT.client.view; |
|
2 |
+ |
|
|
3 |
+ |
import org.litesoft.core.*; |
|
4 |
+ |
import org.litesoft.security.*; |
|
5 |
+ |
|
|
6 |
+ |
import com.google.gwt.core.client.*; |
|
7 |
+ |
import com.google.gwt.user.client.*; |
|
8 |
+ |
|
|
9 |
+ |
public class ResetPasswordDialogFactory<T extends SecurityUserView<T>> implements LoginPasswordResetDialogViewFactory { |
|
10 |
+ |
@Override |
|
11 |
+ |
public DialogView createDialog( ClientContext pClientContext, final Command pOnSuccess ) { |
|
12 |
+ |
return new ChangePassword<T>( "Reset Password" ) { |
|
13 |
+ |
@Override |
|
14 |
+ |
protected void submitSucceeded() { |
|
15 |
+ |
super.submitSucceeded(); |
|
16 |
+ |
Scheduler.get().scheduleDeferred( pOnSuccess ); |
|
17 |
+ |
} |
|
18 |
+ |
}; |
|
19 |
+ |
} |
|
20 |
+ |
} |