Message box enhancement:

* Use shorter title text ( forgot to commit this at revision 11861 )



Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2979504
This commit is contained in:
Heng Sin Low 2010-03-31 03:54:35 +00:00
parent befe1e6ebe
commit e2bb7765dd
1 changed files with 4 additions and 11 deletions

View File

@ -41,13 +41,6 @@ public class FDialog
/** Logger */ /** Logger */
private static final CLogger logger = CLogger.getCLogger(FDialog.class); private static final CLogger logger = CLogger.getCLogger(FDialog.class);
// TODO info
// TODO ask
// TODO clear
/** /**
* Construct a message from the AD_Message and the additional message * Construct a message from the AD_Message and the additional message
* *
@ -133,7 +126,7 @@ public class FDialog
if (title == null) if (title == null)
{ {
newTitle = windowNo > 0 ? AEnv.getWindowHeader(ctx, windowNo) : null; newTitle = AEnv.getDialogHeader(ctx, windowNo);
} }
else else
{ {
@ -242,7 +235,7 @@ public class FDialog
try try
{ {
String s = out.toString().replace("\n", "<br>"); String s = out.toString().replace("\n", "<br>");
Messagebox.showDialog(s, (windowNo > 0 ? AEnv.getWindowHeader(ctx, windowNo) : null), Messagebox.OK, Messagebox.ERROR); Messagebox.showDialog(s, AEnv.getDialogHeader(ctx, windowNo), Messagebox.OK, Messagebox.ERROR);
} }
catch (InterruptedException exception) catch (InterruptedException exception)
{ {
@ -289,7 +282,7 @@ public class FDialog
try try
{ {
String s = Msg.getMsg(Env.getCtx(), adMessage).replace("\n", "<br>"); String s = Msg.getMsg(Env.getCtx(), adMessage).replace("\n", "<br>");
int response = Messagebox.showDialog(s, Env.getHeader(Env.getCtx(), windowNo), Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION); int response = Messagebox.showDialog(s, AEnv.getDialogHeader(Env.getCtx(), windowNo), Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION);
return (response == Messagebox.OK); return (response == Messagebox.OK);
} }
@ -349,7 +342,7 @@ public class FDialog
try try
{ {
String s = out.toString().replace("\n", "<br>"); String s = out.toString().replace("\n", "<br>");
Messagebox.showDialog(s, AEnv.getWindowHeader(ctx, windowNo), Messagebox.OK, Messagebox.INFORMATION); Messagebox.showDialog(s, AEnv.getDialogHeader(ctx, windowNo), Messagebox.OK, Messagebox.INFORMATION);
} }
catch (InterruptedException exception) catch (InterruptedException exception)
{ {