Subversion Repository Public Repository

litesoft

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

Diff revisions: vs.
  @@ -6,23 +6,9 @@
6 6 public class DefButtonNamed
7 7 {
8 8 public static final String LOGOUT = "Logout";
9 - public static final String UNLOCK = "Unlock";
10 -
11 - public static final String SELECT = "Select";
12 -
13 - public static final String CLEAR = "Clear";
14 - public static final String SEARCH = "Search";
15 -
16 - public static final String NEW = "New";
17 - public static final String OK = "OK";
18 9
19 10 public static final String CANCEL = "Cancel";
20 11
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 -
26 12 private final String mName;
27 13
28 14 protected DefButtonNamed( String pName )
  @@ -55,81 +41,6 @@
55 41 return new DefButtonNamedTypedGreen( this );
56 42 }
57 43
58 - public final DefButtonNamedTypedFactoryText big()
59 - {
60 - return big( null );
61 - }
62 -
63 - public final DefButtonNamedTypedFactoryText big( String pText )
64 - {
65 - return new DefButtonNamedTypedBig( this ).text( pText );
66 - }
67 -
68 - public static DefButtonNamedTypedFactory logout()
69 - {
70 - return textRed( LOGOUT );
71 - }
72 -
73 - public static DefButtonNamedTypedFactory logoutGreen()
74 - {
75 - return textGreen( LOGOUT );
76 - }
77 -
78 - public static DefButtonNamedTypedFactory select()
79 - {
80 - return textGreen( SELECT );
81 - }
82 -
83 - public static DefButtonNamedTypedFactory unlock()
84 - {
85 - return textGreen( UNLOCK );
86 - }
87 -
88 - public static DefButtonNamedTypedFactory clear()
89 - {
90 - return textRed( CLEAR );
91 - }
92 -
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()
114 - {
115 - return textGreen( NEXT ).postImageWidth( 12 ).customStyle( NEXT );
116 - }
117 -
118 - private static DefButtonNamedTypedFactoryText textRegular( String pName )
119 - {
120 - return new DefButtonNamed( pName ).regular().text();
121 - }
122 -
123 - private static DefButtonNamedTypedFactoryText textRed( String pName )
124 - {
125 - return new DefButtonNamed( pName ).red().text();
126 - }
127 -
128 - private static DefButtonNamedTypedFactoryText textGreen( String pName )
129 - {
130 - return new DefButtonNamed( pName ).green().text();
131 - }
132 -
133 44 public final String getName()
134 45 {
135 46 return mName;