|
@@ -1,8 +1,6 @@ |
1 |
1 |
|
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
2 |
|
package org.litesoft.GWT.eventbus; |
3 |
3 |
|
|
4 |
|
- |
import java.util.*; |
5 |
|
- |
|
6 |
4 |
|
import org.litesoft.GWT.eventbus.client.*; |
7 |
5 |
|
import org.litesoft.GWT.eventbus.client.eventpackages.*; |
8 |
6 |
|
import org.litesoft.GWT.eventbus.client.nonpublic.*; |
|
@@ -10,20 +8,19 @@ |
10 |
8 |
|
|
11 |
9 |
|
import com.google.gwt.user.client.*; |
12 |
10 |
|
|
|
11 |
+ |
import java.util.*; |
|
12 |
+ |
|
13 |
13 |
|
@SuppressWarnings({"UnusedDeclaration"}) |
14 |
|
- |
public class Documentation_OpenNewWindowProcess |
15 |
|
- |
{ |
|
14 |
+ |
public class Documentation_OpenNewWindowProcess { |
16 |
15 |
|
// Client(1)/Server Initiated |
17 |
|
- |
public void step1( EventBus pEventBus ) |
18 |
|
- |
{ |
|
16 |
+ |
public void step1( EventBus pEventBus ) { |
19 |
17 |
|
RequestNewClientEventPackage zPackage = new RequestNewClientEventPackage( "Client" ); |
20 |
18 |
|
// or subclass if new Child needs data from the Parent... |
21 |
19 |
|
pEventBus.publish( zPackage ); |
22 |
20 |
|
} |
23 |
21 |
|
|
24 |
22 |
|
// Server Response |
25 |
|
- |
public void step2( EventBus pEventBus, String zNewEncodedClientId ) |
26 |
|
- |
{ |
|
23 |
+ |
public void step2( EventBus pEventBus, String zNewEncodedClientId ) { |
27 |
24 |
|
/** |
28 |
25 |
|
* @see AbstractServerApp.RequestNewClientListener eventReceivedVia(...) |
29 |
26 |
|
*/ |
|
@@ -36,8 +33,7 @@ |
36 |
33 |
|
} |
37 |
34 |
|
|
38 |
35 |
|
// Client(1) Response |
39 |
|
- |
public void step3( String pOurURL, String pWindowNameBase, OpenNewClientEventPackage pEvent ) |
40 |
|
- |
{ |
|
36 |
+ |
public void step3( String pOurURL, String pWindowNameBase, OpenNewClientEventPackage pEvent ) { |
41 |
37 |
|
/** |
42 |
38 |
|
* @see AbstractClientEventBusApp.OpenNewClientListener eventReceivedVia(...) |
43 |
39 |
|
*/ |
|
@@ -47,8 +43,7 @@ |
47 |
43 |
|
} |
48 |
44 |
|
|
49 |
45 |
|
// Client(2) Initialization |
50 |
|
- |
public void step4() |
51 |
|
- |
{ |
|
46 |
+ |
public void step4() { |
52 |
47 |
|
/** |
53 |
48 |
|
* @see AbstractClientEventBusApp onModuleLoad |
54 |
49 |
|
*/ |
|
@@ -62,8 +57,7 @@ |
62 |
57 |
|
|
63 |
58 |
|
// Server Response |
64 |
59 |
|
public AppInitializationResult step5( int pClientIdNumber, String pEncodeEncodedClientId, |
65 |
|
- |
String zApplicationVersion, AuthenticationData zAuthenticationData ) |
66 |
|
- |
{ |
|
60 |
+ |
String zApplicationVersion, AuthenticationData zAuthenticationData ) { |
67 |
61 |
|
/** |
68 |
62 |
|
* @see AbstractServerApp initialize(...) initializeForBrowserPageRequest(...) |
69 |
63 |
|
*/ |
|
@@ -77,16 +71,15 @@ |
77 |
71 |
|
|
78 |
72 |
|
// rpc respond with |
79 |
73 |
|
return new AppInitializationResult( pClientIdNumber, // |
80 |
|
- |
pEncodeEncodedClientId, // |
81 |
|
- |
new HashMap<String, String>(), // Client Config Data |
82 |
|
- |
eventsResultingFromRegisterSubscribe, // |
83 |
|
- |
zApplicationVersion, // |
84 |
|
- |
zAuthenticationData ); |
|
74 |
+ |
pEncodeEncodedClientId, // |
|
75 |
+ |
new HashMap<String, String>(), // Client Config Data |
|
76 |
+ |
eventsResultingFromRegisterSubscribe, // |
|
77 |
+ |
zApplicationVersion, // |
|
78 |
+ |
zAuthenticationData ); |
85 |
79 |
|
} |
86 |
80 |
|
|
87 |
81 |
|
// Client(2) Initialization |
88 |
|
- |
public void step6( AppInitializationResult result ) |
89 |
|
- |
{ |
|
82 |
+ |
public void step6( AppInitializationResult result ) { |
90 |
83 |
|
/** |
91 |
84 |
|
* @see AbstractClientEventBusApp.MyAsyncCallback onSuccess |
92 |
85 |
|
*/ |