litesoft
Diff Revisions
947
vs
948
for /trunk/GWT_Sandbox/MultiModule/common/src/org/litesoft/sandbox/infrastructure/client/MessageUserSink.java
|
@@ -1,18 +1,14 @@ |
1 |
1 |
|
package org.litesoft.sandbox.infrastructure.client; |
2 |
2 |
|
|
3 |
|
- |
public interface MessageUserSink |
4 |
|
- |
{ |
5 |
|
- |
enum Priority |
6 |
|
- |
{ |
|
3 |
+ |
public interface MessageUserSink { |
|
4 |
+ |
enum Priority { |
7 |
5 |
|
Error, Warning, Info; |
8 |
6 |
|
|
9 |
|
- |
public boolean isLowerPriorityThan( Priority them ) |
10 |
|
- |
{ |
|
7 |
+ |
public boolean isLowerPriorityThan( Priority them ) { |
11 |
8 |
|
return (them != null) && (them.ordinal() < this.ordinal()); |
12 |
9 |
|
} |
13 |
10 |
|
|
14 |
|
- |
public static Priority deNull( Priority pPriority ) |
15 |
|
- |
{ |
|
11 |
+ |
public static Priority deNull( Priority pPriority ) { |
16 |
12 |
|
return (pPriority != null) ? pPriority : Info; |
17 |
13 |
|
} |
18 |
14 |
|
} |