Subversion Repository Public Repository

litesoft

Diff Revisions 947 vs 948 for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/DefButtonNamed.java

Diff revisions: vs.
  @@ -3,42 +3,35 @@
3 3
4 4 import org.litesoft.commonfoundation.typeutils.*;
5 5
6 - public class DefButtonNamed
7 - {
6 + public class DefButtonNamed {
8 7 public static final String LOGOUT = "Logout";
9 8
10 9 public static final String CANCEL = "Cancel";
11 10
12 11 private final String mName;
13 12
14 - protected DefButtonNamed( String pName )
15 - {
13 + protected DefButtonNamed( String pName ) {
16 14 mName = Strings.assertNotNullNotEmpty( "Name", pName );
17 15 }
18 16
19 - public final DefButtonTypedBlue blue()
20 - {
17 + public final DefButtonTypedBlue blue() {
21 18 return new DefButtonTypedBlue( this );
22 19 }
23 20
24 - public final DefButtonTypedRed red()
25 - {
21 + public final DefButtonTypedRed red() {
26 22 return new DefButtonTypedRed( this );
27 23 }
28 24
29 - public final DefButtonTypedGreen green()
30 - {
25 + public final DefButtonTypedGreen green() {
31 26 return new DefButtonTypedGreen( this );
32 27 }
33 28
34 - public final String getName()
35 - {
29 + public final String getName() {
36 30 return mName;
37 31 }
38 32
39 33 @Override
40 - public String toString()
41 - {
34 + public String toString() {
42 35 return Objects.justClassNameOf( this ) + "( " + mName + " )";
43 36 }
44 37 }