Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -6,11 +6,23 @@
6 6 public class DefButtonNamed
7 7 {
8 8 public static final String LOGOUT = "Logout";
9 - public static final String SELECT = "Select";
10 9 public static final String UNLOCK = "Unlock";
10 +
11 + public static final String SELECT = "Select";
12 +
11 13 public static final String CLEAR = "Clear";
12 14 public static final String SEARCH = "Search";
13 15
16 + public static final String NEW = "New";
17 + public static final String OK = "OK";
18 +
19 + public static final String CANCEL = "Cancel";
20 +
21 + public static final String NEXT = "Next";
22 +
23 + public static final String SUBMIT = "Submit";
24 + public static final String SUBMIT_TOOL_TIP = "Submit/save/commit the unsaved changes (the yellow fields)";
25 +
14 26 private final String mName;
15 27
16 28 protected DefButtonNamed( String pName )
  @@ -53,29 +65,54 @@
53 65 return new DefButtonNamedTypedBig( this ).text( pText );
54 66 }
55 67
56 - public static DefButtonNamedTypedFactoryText logout()
68 + public static DefButtonNamedTypedFactory logout()
57 69 {
58 70 return textRed( LOGOUT );
59 71 }
60 72
61 - public static DefButtonNamedTypedFactoryText select()
73 + public static DefButtonNamedTypedFactory logoutGreen()
74 + {
75 + return textGreen( LOGOUT );
76 + }
77 +
78 + public static DefButtonNamedTypedFactory select()
62 79 {
63 80 return textGreen( SELECT );
64 81 }
65 82
66 - public static DefButtonNamedTypedFactoryText unlock()
83 + public static DefButtonNamedTypedFactory unlock()
67 84 {
68 85 return textGreen( UNLOCK );
69 86 }
70 87
71 - public static DefButtonNamedTypedFactoryText clear()
88 + public static DefButtonNamedTypedFactory clear()
72 89 {
73 90 return textRed( CLEAR );
74 91 }
75 92
76 - public static DefButtonNamedTypedFactoryText search()
93 + public static DefButtonNamedTypedFactory search()
94 + {
95 + return textRegular( SEARCH );
96 + }
97 +
98 + public static DefButtonNamedTypedFactory newReg()
99 + {
100 + return textRegular( NEW );
101 + }
102 +
103 + public static DefButtonNamedTypedFactory OK()
104 + {
105 + return textGreen( OK );
106 + }
107 +
108 + public static DefButtonNamedTypedFactory submit()
109 + {
110 + return textGreen( SUBMIT ).enabledToolTip( SUBMIT_TOOL_TIP );
111 + }
112 +
113 + public static DefButtonNamedTypedFactory next()
77 114 {
78 - return textRed( SEARCH );
115 + return textGreen( NEXT ).postImageWidth( 12 ).customStyle( NEXT );
79 116 }
80 117
81 118 private static DefButtonNamedTypedFactoryText textRegular( String pName )