litesoft
Diff Revisions
949
vs
950
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/ClearButton.java
|
@@ -1,24 +1,24 @@ |
1 |
|
- |
// This Source Code is in the Public Domain per: http://unlicense.org |
2 |
|
- |
package org.litesoft.GWT.client.widgets; |
3 |
|
- |
|
4 |
|
- |
import com.google.gwt.event.dom.client.*; |
5 |
|
- |
|
6 |
|
- |
public class ClearButton extends BGImage16x16Button implements ButtonFactory { |
7 |
|
- |
private static final String NAME = "Clear"; |
8 |
|
- |
|
9 |
|
- |
public static DefButtonNamedTypedFactory factory() { |
10 |
|
- |
return new DefButtonNamed( NAME ).red().text(); |
11 |
|
- |
} |
12 |
|
- |
|
13 |
|
- |
public ClearButton() { |
14 |
|
- |
this( NAME, null ); |
15 |
|
- |
} |
16 |
|
- |
|
17 |
|
- |
public ClearButton( String pTooltip ) { |
18 |
|
- |
this( pTooltip, null ); |
19 |
|
- |
} |
20 |
|
- |
|
21 |
|
- |
public ClearButton( String pTooltip, ClickHandler pClickHandler ) { |
22 |
|
- |
super( "Trash", pTooltip, "", pClickHandler ); |
23 |
|
- |
} |
24 |
|
- |
} |
|
1 |
+ |
// This Source Code is in the Public Domain per: http://unlicense.org |
|
2 |
+ |
package org.litesoft.GWT.client.widgets; |
|
3 |
+ |
|
|
4 |
+ |
import com.google.gwt.event.dom.client.*; |
|
5 |
+ |
|
|
6 |
+ |
public class ClearButton extends BGImage16x16Button implements ButtonFactory { |
|
7 |
+ |
private static final String NAME = "Clear"; |
|
8 |
+ |
|
|
9 |
+ |
public static DefButtonNamedTypedFactory factory() { |
|
10 |
+ |
return new DefButtonNamed( NAME ).red().text(); |
|
11 |
+ |
} |
|
12 |
+ |
|
|
13 |
+ |
public ClearButton() { |
|
14 |
+ |
this( NAME, null ); |
|
15 |
+ |
} |
|
16 |
+ |
|
|
17 |
+ |
public ClearButton( String pTooltip ) { |
|
18 |
+ |
this( pTooltip, null ); |
|
19 |
+ |
} |
|
20 |
+ |
|
|
21 |
+ |
public ClearButton( String pTooltip, ClickHandler pClickHandler ) { |
|
22 |
+ |
super( "Trash", pTooltip, "", pClickHandler ); |
|
23 |
+ |
} |
|
24 |
+ |
} |