Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/forms/client/rpc/FormComponentBusConstants.java

Diff revisions: vs.
  @@ -1,8 +1,6 @@
1 1 // This Source Code is in the Public Domain per: http://unlicense.org
2 2 package org.litesoft.GWT.forms.client.rpc;
3 3
4 - import java.io.*;
5 -
6 4 import org.litesoft.GWT.eventbus.client.eventpackages.*;
7 5 import org.litesoft.GWT.eventbus.client.nonpublic.*;
8 6 import org.litesoft.GWT.eventbus.client.rpc.*;
  @@ -11,6 +9,8 @@
11 9 import org.litesoft.ui.def.nonpublic.support.*;
12 10 import org.litesoft.ui.support.*;
13 11
12 + import java.io.*;
13 +
14 14 /**
15 15 * An image of all these events is available (as of 11/7/2007) on the vantos wiki as FormSystemEvents.
16 16 * <p/>
  @@ -27,44 +27,37 @@
27 27 * <---- ServicePeerToFormPackage
28 28 * <---- TypedServicePeerXtraPackage
29 29 */
30 - public interface FormComponentBusConstants
31 - {
30 + public interface FormComponentBusConstants {
32 31 public static final String FormServicePeerFactory = "FormServicePeerFactory";
33 32
34 33 static final String sCommaSpace = ", ";
35 34
36 - public static class FormCreationRequestPackage extends NoXtraEventPackage
37 - {
35 + public static class FormCreationRequestPackage extends NoXtraEventPackage {
38 36 /**
39 37 * @deprecated GWT ONLY
40 38 */
41 - public FormCreationRequestPackage()
42 - {
39 + public FormCreationRequestPackage() {
43 40 }
44 41
45 42 private FormUsage mFormUsage;
46 43 private Serializable mInitializationPayload;
47 44
48 45 public FormCreationRequestPackage( String pSource, String pFormServicePeerFactoryName,
49 - FormUsage pFormUsage, Serializable pInitializationPayload )
50 - {
46 + FormUsage pFormUsage, Serializable pInitializationPayload ) {
51 47 super( pSource, FormServicePeerFactory, pFormServicePeerFactoryName );
52 48 Objects.assertNotNull( "FormUsage", mFormUsage = pFormUsage );
53 49 mInitializationPayload = pInitializationPayload;
54 50 }
55 51
56 - public FormUsage getFormUsage()
57 - {
52 + public FormUsage getFormUsage() {
58 53 return mFormUsage;
59 54 }
60 55
61 - public Serializable getInitializationPayload()
62 - {
56 + public Serializable getInitializationPayload() {
63 57 return mInitializationPayload;
64 58 }
65 59
66 - protected void augmentToString( StringBuilder pSB )
67 - {
60 + protected void augmentToString( StringBuilder pSB ) {
68 61 super.augmentToString( pSB );
69 62 pSB.append( mInitializationPayload );
70 63 LineIndentUtil.newLine( pSB, 1 ).append( "FormUsage-" );
  @@ -72,38 +65,32 @@
72 65 }
73 66 }
74 67
75 - public static class FormCreationResponsePackage extends SerializablePayloadWithExceptiontextEventPackage
76 - {
68 + public static class FormCreationResponsePackage extends SerializablePayloadWithExceptiontextEventPackage {
77 69 public static final String EVENT_TYPE = "FormCreationResponsePackage";
78 70
79 71 /**
80 72 * @deprecated GWT ONLY
81 73 */
82 - public FormCreationResponsePackage()
83 - {
74 + public FormCreationResponsePackage() {
84 75 }
85 76
86 77 public FormCreationResponsePackage( String pSource, String pDest,
87 - ServicePeerToFormCreationData pFormCreationData )
88 - {
78 + ServicePeerToFormCreationData pFormCreationData ) {
89 79 super( pSource, pDest, EVENT_TYPE, pFormCreationData );
90 80 }
91 81
92 - public FormCreationResponsePackage( String pSource, String pDest, String pExceptionText )
93 - {
82 + public FormCreationResponsePackage( String pSource, String pDest, String pExceptionText ) {
94 83 super( pSource, pDest, EVENT_TYPE, pExceptionText );
95 84 }
96 85
97 - public ServicePeerToFormCreationData getFormCreationData()
98 - {
86 + public ServicePeerToFormCreationData getFormCreationData() {
99 87 return (ServicePeerToFormCreationData) getEventPayload();
100 88 }
101 89 }
102 90
103 91 public static class FormResourceResponsePackage
104 92 extends PayloadEventPackage<AttributeResourceOptionsResponseData>
105 - implements ChannelEventPackage
106 - {
93 + implements ChannelEventPackage {
107 94 public static final String EVENT_TYPE = "FormResourceResponsePackage";
108 95
109 96 private AttributeResourceOptionsRequestData mRequest;
  @@ -111,170 +98,141 @@
111 98 /**
112 99 * @deprecated GWT ONLY
113 100 */
114 - public FormResourceResponsePackage()
115 - {
101 + public FormResourceResponsePackage() {
116 102 }
117 103
118 104 public FormResourceResponsePackage( String pSource, String pDest,
119 105 AttributeResourceOptionsRequestData pRequest,
120 - AttributeResourceOptionsResponseData pResponse )
121 - {
106 + AttributeResourceOptionsResponseData pResponse ) {
122 107 super( pSource, pDest, EVENT_TYPE, pResponse );
123 108 Objects.assertNotNull( "Request", mRequest = pRequest );
124 109 Objects.assertNotNull( "Response", pResponse );
125 110 }
126 111
127 - public AttributeResourceOptionsRequestData getRequest()
128 - {
112 + public AttributeResourceOptionsRequestData getRequest() {
129 113 return mRequest;
130 114 }
131 115
132 - public AttributeResourceOptionsResponseData getResponse()
133 - {
116 + public AttributeResourceOptionsResponseData getResponse() {
134 117 return getEventPayload();
135 118 }
136 119 }
137 120
138 121 public static class FormResourceRequestPackage
139 122 extends PayloadEventPackage<AttributeResourceOptionsRequestData>
140 - implements ChannelEventPackage
141 - {
123 + implements ChannelEventPackage {
142 124 /**
143 125 * @deprecated GWT ONLY
144 126 */
145 - public FormResourceRequestPackage()
146 - {
127 + public FormResourceRequestPackage() {
147 128 }
148 129
149 130 public FormResourceRequestPackage( String pSource, String pDest,
150 - AttributeResourceOptionsRequestData pRequest )
151 - {
131 + AttributeResourceOptionsRequestData pRequest ) {
152 132 super( pSource, pDest, null, pRequest );
153 133 Objects.assertNotNull( "Request", pRequest );
154 134 }
155 135
156 - public AttributeResourceOptionsRequestData getRequest()
157 - {
136 + public AttributeResourceOptionsRequestData getRequest() {
158 137 return getEventPayload();
159 138 }
160 139 }
161 140
162 - public static class FormValuesRequestPackage extends StringPayloadEventPackage
163 - {
141 + public static class FormValuesRequestPackage extends StringPayloadEventPackage {
164 142 private Integer mAsyncMessageNumber;
165 143
166 144 /**
167 145 * @deprecated GWT ONLY
168 146 */
169 - public FormValuesRequestPackage()
170 - {
147 + public FormValuesRequestPackage() {
171 148 }
172 149
173 150 public FormValuesRequestPackage( String pSource, String pDest, Integer pAsyncMessageNumber,
174 - String pRootTypeKeyOrNullForNew )
175 - {
151 + String pRootTypeKeyOrNullForNew ) {
176 152 super( pSource, pDest, null, pRootTypeKeyOrNullForNew );
177 153 mAsyncMessageNumber = pAsyncMessageNumber;
178 154 }
179 155
180 - public Integer getAsyncMessageNumber()
181 - {
156 + public Integer getAsyncMessageNumber() {
182 157 return mAsyncMessageNumber;
183 158 }
184 159
185 - public String getKey()
186 - {
160 + public String getKey() {
187 161 return getEventPayload();
188 162 }
189 163 }
190 164
191 - public static class FormDisposePackage extends NoXtraEventPackage
192 - {
165 + public static class FormDisposePackage extends NoXtraEventPackage {
193 166 /**
194 167 * @deprecated GWT ONLY
195 168 */
196 - public FormDisposePackage()
197 - {
169 + public FormDisposePackage() {
198 170 }
199 171
200 - public FormDisposePackage( String pSource, String pDest )
201 - {
172 + public FormDisposePackage( String pSource, String pDest ) {
202 173 super( pSource, pDest, null );
203 174 }
204 175 }
205 176
206 - public static class FormToServicePeerPackage extends SerializablePayloadEventPackage
207 - {
177 + public static class FormToServicePeerPackage extends SerializablePayloadEventPackage {
208 178 /**
209 179 * @deprecated GWT ONLY
210 180 */
211 - public FormToServicePeerPackage()
212 - {
181 + public FormToServicePeerPackage() {
213 182 }
214 183
215 184 public FormToServicePeerPackage( String pSource, String pDest,
216 - FormToServicePeerData pToServicePeerData )
217 - {
185 + FormToServicePeerData pToServicePeerData ) {
218 186 super( pSource, pDest, null, pToServicePeerData );
219 187 Objects.assertNotNull( "ToServicePeerData", pToServicePeerData );
220 188 }
221 189
222 - public FormToServicePeerData getToServicePeerData()
223 - {
190 + public FormToServicePeerData getToServicePeerData() {
224 191 return (FormToServicePeerData) getEventPayload();
225 192 }
226 193 }
227 194
228 - public static class ServicePeerToFormPackage extends SerializablePayloadWithExceptiontextEventPackage
229 - {
195 + public static class ServicePeerToFormPackage extends SerializablePayloadWithExceptiontextEventPackage {
230 196 public static final String RESPONSE_FROM_REQUEST_VALUES = "ResponseFromRequestValues";
231 197 public static final String UNSOLICITED_DATA = "UnsolicitedData";
232 198
233 199 /**
234 200 * @deprecated GWT ONLY
235 201 */
236 - public ServicePeerToFormPackage()
237 - {
202 + public ServicePeerToFormPackage() {
238 203 }
239 204
240 205 private ServicePeerToFormPackage( String pSource, String pDest, String pType,
241 - ServicePeerToFormData pToFormData )
242 - {
206 + ServicePeerToFormData pToFormData ) {
243 207 super( pSource, pDest, pType, pToFormData );
244 208 }
245 209
246 - private ServicePeerToFormPackage( String pSource, String pDest, String pType, String pExceptionText )
247 - {
210 + private ServicePeerToFormPackage( String pSource, String pDest, String pType, String pExceptionText ) {
248 211 super( pSource, pDest, pType, pExceptionText );
249 212 }
250 213
251 214 public static ServicePeerToFormPackage responseFromRequestValues( String pSource, String pDest,
252 - ServicePeerToFormData pToFormData )
253 - {
215 + ServicePeerToFormData pToFormData ) {
254 216 return new ServicePeerToFormPackage( pSource, pDest, RESPONSE_FROM_REQUEST_VALUES, pToFormData );
255 217 }
256 218
257 219 public static ServicePeerToFormPackage responseFromRequestValues( String pSource, String pDest,
258 - String pExceptionText )
259 - {
220 + String pExceptionText ) {
260 221 return new ServicePeerToFormPackage( pSource, pDest, RESPONSE_FROM_REQUEST_VALUES,
261 222 pExceptionText );
262 223 }
263 224
264 225 public static ServicePeerToFormPackage unsolicitedData( String pSource, String pDest,
265 - ServicePeerToFormData pToFormData )
266 - {
226 + ServicePeerToFormData pToFormData ) {
267 227 return new ServicePeerToFormPackage( pSource, pDest, UNSOLICITED_DATA, pToFormData );
268 228 }
269 229
270 230 public static ServicePeerToFormPackage unsolicitedData( String pSource, String pDest,
271 - String pExceptionText )
272 - {
231 + String pExceptionText ) {
273 232 return new ServicePeerToFormPackage( pSource, pDest, UNSOLICITED_DATA, pExceptionText );
274 233 }
275 234
276 - public ServicePeerToFormData getToFormData()
277 - {
235 + public ServicePeerToFormData getToFormData() {
278 236 return (ServicePeerToFormData) getEventPayload();
279 237 }
280 238 }