* miss this class in previous commit.

This commit is contained in:
Heng Sin Low 2008-07-24 09:46:55 +00:00
parent b1e41cdaf1
commit c1f899f624
1 changed files with 20 additions and 1 deletions

View File

@ -250,7 +250,7 @@ public class FDialog
return;
}
/**************************************************************************
/**************************************************************************
* Ask Question with question icon and (OK) (Cancel) buttons
*
* @param WindowNo Number of Window
@ -259,6 +259,25 @@ public class FDialog
* @param msg Additional clear text message
*
* @return true, if OK
*/
public static boolean ask(int windowNo, Component comp, String adMessage, String msg)
{
StringBuffer out = new StringBuffer();
if (adMessage != null && !adMessage.equals(""))
out.append(Msg.getMsg(Env.getCtx(), adMessage));
if (msg != null && msg.length() > 0)
out.append("\n").append(msg);
return ask(windowNo, comp, out.toString());
}
/**************************************************************************
* Ask Question with question icon and (OK) (Cancel) buttons
*
* @param WindowNo Number of Window
* @param c Container (owner)
* @param AD_Message Message to be translated
*
* @return true, if OK
*/
public static boolean ask(int windowNo, Component comp, String adMessage)