com.jstatcom.component
Class StdMessages
- java.lang.Object
-
- com.jstatcom.component.StdMessages
-
public final class StdMessages extends java.lang.ObjectContains a collection of dialogs that could be used to standardize messages of different types throughout an application. All messages are invoked within the event dispatching thread.If the parent is not explicitely specified,
TopFrameReference.getTopFrameRef()is used.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voiderror(java.lang.String msg, java.lang.String title)User notification withmsgthat should be used for arbitrary error messages withtitle.static voiderror(java.lang.String msg, java.lang.String title, java.awt.Dialog parent)User notification withmsgthat should be used for arbitrary error messages withtitle.static voiderror(java.lang.String msg, java.lang.String title, java.awt.Frame parent)User notification withmsgthat should be used for arbitrary error messages withtitle.static voiderrorEngine(java.lang.String msg)User notification withmsgthat should be used if some error with a computational engine occured.static voiderrorEngine(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if some error with a computational engine occured.static voiderrorEngine(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if some error with a computational engine occured.static voiderrorInput(java.lang.String msg)User notification withmsgthat should be used if the user has provided wrong input.static voiderrorInput(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if the user has provided wrong input.static voiderrorInput(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if the user has provided wrong input.static voiderrorSpecification(java.lang.String msg)User notification withmsgthat should be used if the user has provided an inconsistent specification.static voiderrorSpecification(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if the user has provided an inconsistent specification.static voiderrorSpecification(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if the user has provided an inconsistent specification.static voidinfo(java.lang.String msg, java.lang.String title)User notification withmsgthat should be used for arbitrary messages withtitle.static voidinfo(java.lang.String msg, java.lang.String title, java.awt.Dialog parent)User notification withmsgthat should be used for arbitrary messages withtitle.static voidinfo(java.lang.String msg, java.lang.String title, java.awt.Frame parent)User notification withmsgthat should be used for arbitrary messages withtitle.static voidinfoGeneral(java.lang.String msg)User notification withmsgthat should be used for general purpose information messages.static voidinfoGeneral(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used for general purpose information messages.static voidinfoGeneral(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used for general purpose information messages.static voidinfoNothingSelected(java.lang.String msg)User notification withmsgthat should be used if no variable was selected for a computation.static voidinfoNothingSelected(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if no variable was selected for a computation.static voidinfoNothingSelected(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if no variable was selected for a computation.
-
-
-
Method Detail
-
error
public static void error(java.lang.String msg, java.lang.String title)User notification withmsgthat should be used for arbitrary error messages withtitle.- Parameters:
msg- string for user informationtitle- displayed in header
-
error
public static void error(java.lang.String msg, java.lang.String title, java.awt.Frame parent)User notification withmsgthat should be used for arbitrary error messages withtitle.- Parameters:
msg- string for user informationtitle- displayed in headerparent- the parent frame
-
error
public static void error(java.lang.String msg, java.lang.String title, java.awt.Dialog parent)User notification withmsgthat should be used for arbitrary error messages withtitle.- Parameters:
msg- string for user informationtitle- displayed in headerparent- the parent dialog
-
errorEngine
public static void errorEngine(java.lang.String msg)
User notification withmsgthat should be used if some error with a computational engine occured. This is displayed as an error message.- Parameters:
msg- string that should inform the user about the cause of error
-
errorEngine
public static void errorEngine(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if some error with a computational engine occured. This is displayed as an error message.- Parameters:
msg- string that should inform the user about the cause of errorparent- the parent frame
-
errorEngine
public static void errorEngine(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if some error with a computational engine occured. This is displayed as an error message.- Parameters:
msg- string that should inform the user about the cause of errorparent- the parent dialog
-
errorInput
public static void errorInput(java.lang.String msg)
User notification withmsgthat should be used if the user has provided wrong input. This is displayed as an error message.- Parameters:
msg- string that should guide the user to change the wrong input
-
errorInput
public static void errorInput(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if the user has provided wrong input. This is displayed as an error message.- Parameters:
msg- string that should guide the user to change the wrong inputparent- the parent frame
-
errorInput
public static void errorInput(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if the user has provided wrong input. This is displayed as an error message.- Parameters:
msg- string that should guide the user to change the wrong inputparent- the parent dialof
-
errorSpecification
public static void errorSpecification(java.lang.String msg)
User notification withmsgthat should be used if the user has provided an inconsistent specification. This is displayed as an error message.- Parameters:
msg- string that should guide the user to change the wrong spec
-
errorSpecification
public static void errorSpecification(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if the user has provided an inconsistent specification. This is displayed as an error message.- Parameters:
msg- string that should guide the user to change the wrong specparent- the parent frame
-
errorSpecification
public static void errorSpecification(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if the user has provided an inconsistent specification. This is displayed as an error message.- Parameters:
msg- string that should guide the user to change the wrong specparent- the parent dialog
-
info
public static void info(java.lang.String msg, java.lang.String title)User notification withmsgthat should be used for arbitrary messages withtitle.- Parameters:
msg- string for user informationtitle- to be displayed in header
-
info
public static void info(java.lang.String msg, java.lang.String title, java.awt.Frame parent)User notification withmsgthat should be used for arbitrary messages withtitle.- Parameters:
msg- string for user informationtitle- to be displayed in headerparent- the parent frame
-
info
public static void info(java.lang.String msg, java.lang.String title, java.awt.Dialog parent)User notification withmsgthat should be used for arbitrary messages withtitle.- Parameters:
msg- string for user informationtitle- to be displayed in headerparent- the parent dialog
-
infoGeneral
public static void infoGeneral(java.lang.String msg)
User notification withmsgthat should be used for general purpose information messages.- Parameters:
msg- string for user information
-
infoGeneral
public static void infoGeneral(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used for general purpose information messages.- Parameters:
msg- string for user informationparent- the parent frame
-
infoGeneral
public static void infoGeneral(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used for general purpose information messages.- Parameters:
msg- string for user informationparent- the parent dialog
-
infoNothingSelected
public static void infoNothingSelected(java.lang.String msg)
User notification withmsgthat should be used if no variable was selected for a computation. This is displayed as an information message rather than an error.- Parameters:
msg- string that should guide the user to make a selection
-
infoNothingSelected
public static void infoNothingSelected(java.lang.String msg, java.awt.Frame parent)User notification withmsgthat should be used if no variable was selected for a computation. This is displayed as an information message rather than an error.- Parameters:
msg- string that should guide the user to make a selectionparent- the parent frame
-
infoNothingSelected
public static void infoNothingSelected(java.lang.String msg, java.awt.Dialog parent)User notification withmsgthat should be used if no variable was selected for a computation. This is displayed as an information message rather than an error.- Parameters:
msg- string that should guide the user to make a selectionparent- the parent dialog
-
-
DMelt 3.0 © DataMelt by jWork.ORG