litesoft
Diff Revisions
49
vs
133
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/nonpublic/AbstractMessageDialog.java
|
@@ -3,6 +3,7 @@ |
3 |
3 |
|
|
4 |
4 |
|
import org.litesoft.GWT.client.*; |
5 |
5 |
|
import org.litesoft.GWT.client.widgets.*; |
|
6 |
+ |
import org.litesoft.GWT.client.widgets.Button; |
6 |
7 |
|
import org.litesoft.GWT.forms.client.components.nonpublic.*; |
7 |
8 |
|
|
8 |
9 |
|
import com.google.gwt.user.client.ui.*; |
|
@@ -14,7 +15,7 @@ |
14 |
15 |
|
protected String mBodyPanelMessageHtmlStyle; |
15 |
16 |
|
protected String mDialogIconReference; |
16 |
17 |
|
protected String mButtonBarStyle; |
17 |
|
- |
private TextCellButton[] mButtons; |
|
18 |
+ |
private Button[] mButtons; |
18 |
19 |
|
|
19 |
20 |
|
protected AbstractMessageDialog( String pDefaultTitle, String pMainPanelStyle, // |
20 |
21 |
|
String pBodyPanelStyle, String pBodyPanelMessageHtmlStyle, String pButtonBarStyle, String pDialogIconReference ) |
|
@@ -81,9 +82,9 @@ |
81 |
82 |
|
return zPanel.style( mButtonBarStyle ); |
82 |
83 |
|
} |
83 |
84 |
|
|
84 |
|
- |
protected TextCellButton[] createButtons() |
|
85 |
+ |
protected Button[] createButtons() |
85 |
86 |
|
{ |
86 |
|
- |
return new TextCellButton[]{new GreenButton( "OK", new HideCommand() )}; |
|
87 |
+ |
return new Button[]{DefButtonNamed.OK().add( new HideCommand() ).create()}; |
87 |
88 |
|
} |
88 |
89 |
|
|
89 |
90 |
|
private Widget wrapWithSizeable( Widget pWidget ) |