litesoft
Diff Revisions
488
vs
489
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/nonpublic/AbstractDialog.java
|
@@ -74,7 +74,8 @@ |
74 |
74 |
|
setBorderRow( zGrid, 2, BOTTOM ); |
75 |
75 |
|
setWidget( zGrid ); |
76 |
76 |
|
|
77 |
|
- |
mOuterPanel.setTitleBar( new CloseableFloaterPanelTitleBar( "Dialog", UtilsGwt.deEmpty( pTitle, mDefaultTitle ), new HideCommand() ) ); |
|
77 |
+ |
HideCommand zCloseCommand = isCancelable() ? new HideCommand() : null; |
|
78 |
+ |
mOuterPanel.setTitleBar( new CloseableFloaterPanelTitleBar( "Dialog", UtilsGwt.deEmpty( pTitle, mDefaultTitle ), zCloseCommand ) ); |
78 |
79 |
|
mOuterPanel.setWidget( createBodyPanel() ); |
79 |
80 |
|
|
80 |
81 |
|
return this; |