Backed out changeset 15f628d57e5c - committed modified FDialog by mistake

This commit is contained in:
Carlos Ruiz 2013-05-29 09:52:23 -05:00
parent 949a6f400a
commit 58d491495e
1 changed files with 6 additions and 39 deletions

View File

@ -199,26 +199,20 @@ public class FDialog
error(windowNo, null, adMessage, msg);
}
public static void error(int windowNo, Component comp, String adMessage, String message)
{
error(windowNo, comp, adMessage, message, null);
}
/**
/**
* Display error with error icon.
*
* @param windowNo Number of Window
* @param comp Component (unused)
* @param adMessage Message to be translated
* @param message Additional message
* @param title If none then one will be generated
*
* @see #error(int, String)
* @see #error(int, Component, String)
* @see #error(int, String, String)
*/
public static void error(int windowNo, Component comp, String adMessage, String message, String title)
public static void error(int windowNo, Component comp, String adMessage, String message)
{
Properties ctx = Env.getCtx();
StringBuffer out = new StringBuffer();
@ -232,19 +226,8 @@ public class FDialog
out = constructMessage(adMessage, message);
String newTitle;
if (title == null)
{
newTitle = AEnv.getDialogHeader(ctx, windowNo);
}
else
{
newTitle = title;
}
String s = out.toString().replace("\n", "<br>");
Messagebox.showDialog(s, newTitle, Messagebox.OK, Messagebox.ERROR);
Messagebox.showDialog(s, AEnv.getDialogHeader(ctx, windowNo), Messagebox.OK, Messagebox.ERROR);
return;
}
@ -347,11 +330,7 @@ public class FDialog
return;
}
public static void info(int windowNo, Component comp, String adMessage, String message)
{
info(windowNo, comp, adMessage, message, null);
}
/**
* Display information with information icon.
*
@ -359,12 +338,11 @@ public class FDialog
* @param comp Component (unused)
* @param adMessage Message to be translated
* @param message Additional message
* @param title If none then one will be generated
*
* @see #info(int, Component, String)
*/
public static void info(int windowNo, Component comp, String adMessage, String message, String title)
public static void info(int windowNo, Component comp, String adMessage, String message)
{
Properties ctx = Env.getCtx();
@ -379,19 +357,8 @@ public class FDialog
out = constructMessage(adMessage, message);
String newTitle;
if (title == null)
{
newTitle = AEnv.getDialogHeader(ctx, windowNo);
}
else
{
newTitle = title;
}
String s = out.toString().replace("\n", "<br>");
Messagebox.showDialog(s, newTitle, Messagebox.OK, Messagebox.INFORMATION);
Messagebox.showDialog(s, AEnv.getDialogHeader(ctx, windowNo), Messagebox.OK, Messagebox.INFORMATION);
return;
}