litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/eventbus/client/nonpublic/NotificationReDecendantEventPackage.java
|
@@ -1,36 +1,36 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.eventbus.client.nonpublic; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.GWT.eventbus.client.eventpackages.*; |
5 |
|
- |
|
6 |
|
- |
public class NotificationReDecendantEventPackage extends NoXtraEventPackage { |
7 |
|
- |
public static final String SubscribeWith = "NotificationReDecendant"; |
8 |
|
- |
|
9 |
|
- |
/** |
10 |
|
- |
* @deprecated GWT ONLY |
11 |
|
- |
*/ |
12 |
|
- |
public NotificationReDecendantEventPackage() { |
13 |
|
- |
} |
14 |
|
- |
|
15 |
|
- |
private boolean mAdd; // false means to remove |
16 |
|
- |
private int mClientId; |
17 |
|
- |
|
18 |
|
- |
public NotificationReDecendantEventPackage( String pSourceName, int pClientId, boolean pAdd ) { |
19 |
|
- |
super( pSourceName, SubscribeWith, null ); |
20 |
|
- |
mClientId = pClientId; |
21 |
|
- |
mAdd = pAdd; |
22 |
|
- |
} |
23 |
|
- |
|
24 |
|
- |
public int getClientId() { |
25 |
|
- |
return mClientId; |
26 |
|
- |
} |
27 |
|
- |
|
28 |
|
- |
public boolean isAdd() { |
29 |
|
- |
return mAdd; |
30 |
|
- |
} |
31 |
|
- |
|
32 |
|
- |
protected void augmentToString( StringBuilder pSB ) { |
33 |
|
- |
super.augmentToString( pSB ); |
34 |
|
- |
pSB.append( mAdd ? "Add" : "Remove" ).append( ": " ).append( mClientId ); |
35 |
|
- |
} |
36 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.eventbus.client.nonpublic; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.GWT.eventbus.client.eventpackages.*; |
|
5 |
+ |
|
|
6 |
+ |
public class NotificationReDecendantEventPackage extends NoXtraEventPackage { |
|
7 |
+ |
public static final String SubscribeWith = "NotificationReDecendant"; |
|
8 |
+ |
|
|
9 |
+ |
/** |
|
10 |
+ |
* @deprecated GWT ONLY |
|
11 |
+ |
*/ |
|
12 |
+ |
public NotificationReDecendantEventPackage() { |
|
13 |
+ |
} |
|
14 |
+ |
|
|
15 |
+ |
private boolean mAdd; // false means to remove |
|
16 |
+ |
private int mClientId; |
|
17 |
+ |
|
|
18 |
+ |
public NotificationReDecendantEventPackage( String pSourceName, int pClientId, boolean pAdd ) { |
|
19 |
+ |
super( pSourceName, SubscribeWith, null ); |
|
20 |
+ |
mClientId = pClientId; |
|
21 |
+ |
mAdd = pAdd; |
|
22 |
+ |
} |
|
23 |
+ |
|
|
24 |
+ |
public int getClientId() { |
|
25 |
+ |
return mClientId; |
|
26 |
+ |
} |
|
27 |
+ |
|
|
28 |
+ |
public boolean isAdd() { |
|
29 |
+ |
return mAdd; |
|
30 |
+ |
} |
|
31 |
+ |
|
|
32 |
+ |
protected void augmentToString( StringBuilder pSB ) { |
|
33 |
+ |
super.augmentToString( pSB ); |
|
34 |
+ |
pSB.append( mAdd ? "Add" : "Remove" ).append( ": " ).append( mClientId ); |
|
35 |
+ |
} |
|
36 |
+ |
} |