litesoft
Diff Revisions
125
vs
131
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/DefButtonNamed.java
|
@@ -5,6 +5,10 @@ |
5 |
5 |
|
|
6 |
6 |
|
public class DefButtonNamed |
7 |
7 |
|
{ |
|
8 |
+ |
public static final String LOGOUT = "Logout"; |
|
9 |
+ |
public static final String SELECT = "Select"; |
|
10 |
+ |
public static final String UNLOCK = "Unlock"; |
|
11 |
+ |
|
8 |
12 |
|
private final String mName; |
9 |
13 |
|
|
10 |
14 |
|
protected DefButtonNamed( String pName ) |
|
@@ -19,7 +23,7 @@ |
19 |
23 |
|
|
20 |
24 |
|
public final DefButtonNamedTypedFactoryIcon picker( String pButtonImageRef ) |
21 |
25 |
|
{ |
22 |
|
- |
return new DefButtonNamedTypedFactoryIcon( new DefButtonNamedTypedPicker( this ), pButtonImageRef ); |
|
26 |
+ |
return new DefButtonNamedTypedPicker( this ).icon( pButtonImageRef ); |
23 |
27 |
|
} |
24 |
28 |
|
|
25 |
29 |
|
public final DefButtonNamedTypedRegular regular() |
|
@@ -44,7 +48,27 @@ |
44 |
48 |
|
|
45 |
49 |
|
public final DefButtonNamedTypedFactoryText big( String pText ) |
46 |
50 |
|
{ |
47 |
|
- |
return new DefButtonNamedTypedFactoryText( new DefButtonNamedTypedBig( this ), pText ); |
|
51 |
+ |
return new DefButtonNamedTypedBig( this ).text( pText ); |
|
52 |
+ |
} |
|
53 |
+ |
|
|
54 |
+ |
public static DefButtonNamedTypedFactoryText logout() |
|
55 |
+ |
{ |
|
56 |
+ |
return new DefButtonNamed( LOGOUT ).red().text(); |
|
57 |
+ |
} |
|
58 |
+ |
|
|
59 |
+ |
public static DefButtonNamedTypedFactoryText select() |
|
60 |
+ |
{ |
|
61 |
+ |
return textGreen( SELECT ); |
|
62 |
+ |
} |
|
63 |
+ |
|
|
64 |
+ |
public static DefButtonNamedTypedFactoryText unlock() |
|
65 |
+ |
{ |
|
66 |
+ |
return textGreen( UNLOCK ); |
|
67 |
+ |
} |
|
68 |
+ |
|
|
69 |
+ |
private static DefButtonNamedTypedFactoryText textGreen( String pName ) |
|
70 |
+ |
{ |
|
71 |
+ |
return new DefButtonNamed( pName ).green().text(); |
48 |
72 |
|
} |
49 |
73 |
|
|
50 |
74 |
|
public final String getName() |