litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/BGImageButton.java
|
@@ -5,31 +5,27 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.event.dom.client.*; |
7 |
7 |
|
|
8 |
|
- |
public abstract class BGImageButton extends OurImage |
9 |
|
- |
{ |
|
8 |
+ |
public abstract class BGImageButton extends OurImage { |
10 |
9 |
|
// external assumptions |
11 |
10 |
|
private static final String CSS_STYLE = "BGImageButton"; |
12 |
11 |
|
|
13 |
12 |
|
protected AbstractCssBackgroundButtonHelper mHelper; |
14 |
13 |
|
|
15 |
|
- |
protected BGImageButton( String pButtonName, int pWidth, int pHeight, String pEnabledToolTip, String pDisabledToolTip, ClickHandler pClickHandler ) |
16 |
|
- |
{ |
|
14 |
+ |
protected BGImageButton( String pButtonName, int pWidth, int pHeight, String pEnabledToolTip, String pDisabledToolTip, ClickHandler pClickHandler ) { |
17 |
15 |
|
mHelper = new CssBackgroundImageButtonHelper( this, CSS_STYLE, pButtonName, pEnabledToolTip, pDisabledToolTip ); |
18 |
16 |
|
|
19 |
17 |
|
setUrl( TransparentImage.URL ); |
20 |
18 |
|
|
21 |
19 |
|
mHelper.updateForm(); |
22 |
20 |
|
|
23 |
|
- |
if ( pClickHandler != null ) |
24 |
|
- |
{ |
|
21 |
+ |
if ( pClickHandler != null ) { |
25 |
22 |
|
addClickHandler( pClickHandler ); |
26 |
23 |
|
} |
27 |
24 |
|
setWidth( pWidth ); |
28 |
25 |
|
setHeight( pHeight ); |
29 |
26 |
|
} |
30 |
27 |
|
|
31 |
|
- |
public void setEnabled( boolean pEnabled ) |
32 |
|
- |
{ |
|
28 |
+ |
public void setEnabled( boolean pEnabled ) { |
33 |
29 |
|
mHelper.setEnabled( pEnabled ); |
34 |
30 |
|
} |
35 |
31 |
|
} |