litesoft
Diff Revisions
131
vs
132
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/DefButtonNamed.java
|
@@ -8,6 +8,8 @@ |
8 |
8 |
|
public static final String LOGOUT = "Logout"; |
9 |
9 |
|
public static final String SELECT = "Select"; |
10 |
10 |
|
public static final String UNLOCK = "Unlock"; |
|
11 |
+ |
public static final String CLEAR = "Clear"; |
|
12 |
+ |
public static final String SEARCH = "Search"; |
11 |
13 |
|
|
12 |
14 |
|
private final String mName; |
13 |
15 |
|
|
|
@@ -53,7 +55,7 @@ |
53 |
55 |
|
|
54 |
56 |
|
public static DefButtonNamedTypedFactoryText logout() |
55 |
57 |
|
{ |
56 |
|
- |
return new DefButtonNamed( LOGOUT ).red().text(); |
|
58 |
+ |
return textRed( LOGOUT ); |
57 |
59 |
|
} |
58 |
60 |
|
|
59 |
61 |
|
public static DefButtonNamedTypedFactoryText select() |
|
@@ -66,6 +68,26 @@ |
66 |
68 |
|
return textGreen( UNLOCK ); |
67 |
69 |
|
} |
68 |
70 |
|
|
|
71 |
+ |
public static DefButtonNamedTypedFactoryText clear() |
|
72 |
+ |
{ |
|
73 |
+ |
return textRed( CLEAR ); |
|
74 |
+ |
} |
|
75 |
+ |
|
|
76 |
+ |
public static DefButtonNamedTypedFactoryText search() |
|
77 |
+ |
{ |
|
78 |
+ |
return textRed( SEARCH ); |
|
79 |
+ |
} |
|
80 |
+ |
|
|
81 |
+ |
private static DefButtonNamedTypedFactoryText textRegular( String pName ) |
|
82 |
+ |
{ |
|
83 |
+ |
return new DefButtonNamed( pName ).regular().text(); |
|
84 |
+ |
} |
|
85 |
+ |
|
|
86 |
+ |
private static DefButtonNamedTypedFactoryText textRed( String pName ) |
|
87 |
+ |
{ |
|
88 |
+ |
return new DefButtonNamed( pName ).red().text(); |
|
89 |
+ |
} |
|
90 |
+ |
|
69 |
91 |
|
private static DefButtonNamedTypedFactoryText textGreen( String pName ) |
70 |
92 |
|
{ |
71 |
93 |
|
return new DefButtonNamed( pName ).green().text(); |