| javax.swing.JDialog org.java.plugin.boot.ErrorDialog
ErrorDialog | public class ErrorDialog extends JDialog (Code) | | Helper class to display detailed message about application error.
version: $Id$ |
Method Summary | |
public static String | getErrorDetails(Throwable t) Utility method to get detailed error report. | public static void | printError(Throwable t, String header, StringBuilder sb) Prints detailed stack trace to the given buffer. | public static void | showError(Component parentComponent, String title, String message) Displays error dialogue to the user. | public static void | showError(Component parentComponent, String title, String message, Object data) Displays error dialogue to the user. | public static void | showError(Component parentComponent, String title, Object data, Throwable error) Displays error dialogue to the user. | public static void | showError(Component parentComponent, String title, Throwable error) Displays error dialogue to the user. | public static void | showError(Component parentComponent, String title, String message, Throwable error) Displays error dialogue to the user. | public static void | showError(Component parentComponent, String title, String message, Object data, Throwable error) Displays error dialogue to the user. | public static boolean | showWarning(Component parentComponent, String title, String message) Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. | public static boolean | showWarning(Component parentComponent, String title, String message, Object data) Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. | public static boolean | showWarning(Component parentComponent, String title, String message, Throwable error) Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. | public static boolean | showWarning(Component parentComponent, String title, String message, Object data, Throwable error) Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. |
yesBtnPressed | boolean yesBtnPressed(Code) | | |
getErrorDetails | public static String getErrorDetails(Throwable t)(Code) | | Utility method to get detailed error report.
Parameters: t - exception instance, may be null detailed error message with most important system informationincluded |
printError | public static void printError(Throwable t, String header, StringBuilder sb)(Code) | | Prints detailed stack trace to the given buffer.
Parameters: t - exception instance, may be null Parameters: header - stack trace caption Parameters: sb - output text buffer |
showError | public static void showError(Component parentComponent, String title, String message)(Code) | | Displays error dialogue to the user.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message |
showError | public static void showError(Component parentComponent, String title, String message, Object data)(Code) | | Displays error dialogue to the user.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message Parameters: data - error data, Collection collections and arrays arehandled specially, all other objects are shown usingtoString() method |
showError | public static void showError(Component parentComponent, String title, Object data, Throwable error)(Code) | | Displays error dialogue to the user.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: data - error data, Collection collections and arrays arehandled specially, all other objects are shown usingtoString() method Parameters: error - an error to be shown in details section |
showError | public static void showError(Component parentComponent, String title, Throwable error)(Code) | | Displays error dialogue to the user.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: error - an error to be shown in details section |
showError | public static void showError(Component parentComponent, String title, String message, Throwable error)(Code) | | Displays error dialogue to the user.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message Parameters: error - an error to be shown in details section |
showError | public static void showError(Component parentComponent, String title, String message, Object data, Throwable error)(Code) | | Displays error dialogue to the user.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message Parameters: data - error data, Collection collections and arrays arehandled specially, all other objects are shown usingtoString() method Parameters: error - an error to be shown in details section |
showWarning | public static boolean showWarning(Component parentComponent, String title, String message)(Code) | | Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. The question should be in the given message.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message true if user chooses "Yes" answer |
showWarning | public static boolean showWarning(Component parentComponent, String title, String message, Object data)(Code) | | Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. The question should be in the given message.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message Parameters: data - error data, Collection collections and arrays arehandled specially, all other objects are shown usingtoString() method true if user chooses "Yes" answer |
showWarning | public static boolean showWarning(Component parentComponent, String title, String message, Throwable error)(Code) | | Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. The question should be in the given message.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message Parameters: error - an error to be shown in details section true if user chooses "Yes" answer |
showWarning | public static boolean showWarning(Component parentComponent, String title, String message, Object data, Throwable error)(Code) | | Displays error dialogue to the user and lets him to make a decision with
"Yes" and "No" buttons. The question should be in the given message.
Parameters: parentComponent - parent component, may be null Parameters: title - window title Parameters: message - error message Parameters: data - error data, Collection collections and arrays arehandled specially, all other objects are shown usingtoString() method Parameters: error - an error to be shown in details section true if user chooses "Yes" answer |
|
|