litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/DefButtonNamed.java
|
@@ -1,38 +1,37 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.widgets; |
3 |
|
- |
|
4 |
|
- |
import org.litesoft.commonfoundation.base.*; |
5 |
|
- |
import org.litesoft.commonfoundation.typeutils.*; |
6 |
|
- |
|
7 |
|
- |
public class DefButtonNamed { |
8 |
|
- |
public static final String LOGOUT = "Logout"; |
9 |
|
- |
|
10 |
|
- |
public static final String CANCEL = "Cancel"; |
11 |
|
- |
|
12 |
|
- |
private final String mName; |
13 |
|
- |
|
14 |
|
- |
protected DefButtonNamed( String pName ) { |
15 |
|
- |
mName = Strings.assertNotNullNotEmpty( "Name", pName ); |
16 |
|
- |
} |
17 |
|
- |
|
18 |
|
- |
public final DefButtonTypedBlue blue() { |
19 |
|
- |
return new DefButtonTypedBlue( this ); |
20 |
|
- |
} |
21 |
|
- |
|
22 |
|
- |
public final DefButtonTypedRed red() { |
23 |
|
- |
return new DefButtonTypedRed( this ); |
24 |
|
- |
} |
25 |
|
- |
|
26 |
|
- |
public final DefButtonTypedGreen green() { |
27 |
|
- |
return new DefButtonTypedGreen( this ); |
28 |
|
- |
} |
29 |
|
- |
|
30 |
|
- |
public final String getName() { |
31 |
|
- |
return mName; |
32 |
|
- |
} |
33 |
|
- |
|
34 |
|
- |
@Override |
35 |
|
- |
public String toString() { |
36 |
|
- |
return ClassName.simple( this ) + "( " + mName + " )"; |
37 |
|
- |
} |
38 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.widgets; |
|
3 |
+ |
|
|
4 |
+ |
import org.litesoft.commonfoundation.base.*; |
|
5 |
+ |
|
|
6 |
+ |
public class DefButtonNamed { |
|
7 |
+ |
public static final String LOGOUT = "Logout"; |
|
8 |
+ |
|
|
9 |
+ |
public static final String CANCEL = "Cancel"; |
|
10 |
+ |
|
|
11 |
+ |
private final String mName; |
|
12 |
+ |
|
|
13 |
+ |
protected DefButtonNamed( String pName ) { |
|
14 |
+ |
mName = Confirm.significant( "Name", pName ); |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
public final DefButtonTypedBlue blue() { |
|
18 |
+ |
return new DefButtonTypedBlue( this ); |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
public final DefButtonTypedRed red() { |
|
22 |
+ |
return new DefButtonTypedRed( this ); |
|
23 |
+ |
} |
|
24 |
+ |
|
|
25 |
+ |
public final DefButtonTypedGreen green() { |
|
26 |
+ |
return new DefButtonTypedGreen( this ); |
|
27 |
+ |
} |
|
28 |
+ |
|
|
29 |
+ |
public final String getName() { |
|
30 |
+ |
return mName; |
|
31 |
+ |
} |
|
32 |
+ |
|
|
33 |
+ |
@Override |
|
34 |
+ |
public String toString() { |
|
35 |
+ |
return ClassName.simple( this ) + "( " + mName + " )"; |
|
36 |
+ |
} |
|
37 |
+ |
} |