Backed out changeset 15f628d57e5c - committed modified FDialog by mistake
This commit is contained in:
parent
949a6f400a
commit
58d491495e
|
@ -199,11 +199,6 @@ public class FDialog
|
||||||
error(windowNo, null, adMessage, msg);
|
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.
|
* Display error with error icon.
|
||||||
*
|
*
|
||||||
|
@ -211,14 +206,13 @@ public class FDialog
|
||||||
* @param comp Component (unused)
|
* @param comp Component (unused)
|
||||||
* @param adMessage Message to be translated
|
* @param adMessage Message to be translated
|
||||||
* @param message Additional message
|
* @param message Additional message
|
||||||
* @param title If none then one will be generated
|
|
||||||
*
|
*
|
||||||
* @see #error(int, String)
|
* @see #error(int, String)
|
||||||
* @see #error(int, Component, String)
|
* @see #error(int, Component, String)
|
||||||
* @see #error(int, String, 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();
|
Properties ctx = Env.getCtx();
|
||||||
StringBuffer out = new StringBuffer();
|
StringBuffer out = new StringBuffer();
|
||||||
|
@ -232,19 +226,8 @@ public class FDialog
|
||||||
|
|
||||||
out = constructMessage(adMessage, message);
|
out = constructMessage(adMessage, message);
|
||||||
|
|
||||||
String newTitle;
|
|
||||||
|
|
||||||
if (title == null)
|
|
||||||
{
|
|
||||||
newTitle = AEnv.getDialogHeader(ctx, windowNo);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
newTitle = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
String s = out.toString().replace("\n", "<br>");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -347,10 +330,6 @@ public class FDialog
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void info(int windowNo, Component comp, String adMessage, String message)
|
|
||||||
{
|
|
||||||
info(windowNo, comp, adMessage, message, null);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display information with information icon.
|
* Display information with information icon.
|
||||||
|
@ -359,12 +338,11 @@ public class FDialog
|
||||||
* @param comp Component (unused)
|
* @param comp Component (unused)
|
||||||
* @param adMessage Message to be translated
|
* @param adMessage Message to be translated
|
||||||
* @param message Additional message
|
* @param message Additional message
|
||||||
* @param title If none then one will be generated
|
|
||||||
*
|
*
|
||||||
* @see #info(int, Component, String)
|
* @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();
|
Properties ctx = Env.getCtx();
|
||||||
|
|
||||||
|
@ -379,19 +357,8 @@ public class FDialog
|
||||||
|
|
||||||
out = constructMessage(adMessage, message);
|
out = constructMessage(adMessage, message);
|
||||||
|
|
||||||
String newTitle;
|
|
||||||
|
|
||||||
if (title == null)
|
|
||||||
{
|
|
||||||
newTitle = AEnv.getDialogHeader(ctx, windowNo);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
newTitle = title;
|
|
||||||
}
|
|
||||||
|
|
||||||
String s = out.toString().replace("\n", "<br>");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue