|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.tentackle.ui.FormDialog
org.tentackle.ui.FormError
public class FormError
An Error Dialog.
Replacement for JOptionDialog providing multiline messages (without
HTML-hacks) and improved keyboard handling.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FormError()
Creates an error dialog with a default message component. |
|
| Method Summary | |
|---|---|
Component |
getMessageComponent()
Gets the message component |
static void |
print(String message)
Creates an error dialog, shows a message and waits for user's ok. |
static void |
print(String message,
boolean abort)
Creates an error dialog, shows a message and waits for user's ok. |
static void |
print(String message,
boolean abort,
Logger logger)
Creates an error dialog, shows a message and waits for user's ok. |
static void |
printException(Exception ex)
Prints an exception using the default logger, no abort, default message |
static void |
printException(Exception ex,
boolean abort)
Prints an exception using the default logger, default message. |
static void |
printException(String message,
Exception ex)
Prints an exception using the default logger, no abort |
static void |
printException(String message,
Exception ex,
boolean abort)
Prints an exception using the default logger. |
static void |
printException(String message,
Exception ex,
boolean abort,
Logger logger)
Prints an exception. The method checks for headless and does not show a dialog, just logs, as apps sometimes contain shared error handling code between GUI- and daemons. |
void |
setMessageComponent(Component comp)
Sets the message component. Replaces the center panel with some other component. |
void |
showDialog()
Shows the modal error dialog and waits for user's "ok". |
void |
showDialog(String message,
String title)
Shows the modal error dialog and waits for user's "ok". |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.tentackle.ui.FormContainer |
|---|
getTitle, setTitle |
| Constructor Detail |
|---|
public FormError()
| Method Detail |
|---|
public void showDialog(String message,
String title)
message - the message to display (may contain newlines).title - the window title, null for default titlepublic void showDialog()
public void setMessageComponent(Component comp)
comp - the message componentpublic Component getMessageComponent()
public static void print(String message,
boolean abort,
Logger logger)
message - the error messageabort - true if abort applicationlogger - the logger, null if none
public static void print(String message,
boolean abort)
message - the error messageabort - true if abort applicationpublic static void print(String message)
message - the error message
public static void printException(String message,
Exception ex,
boolean abort,
Logger logger)
message - the error message, null if ReflectionHelper.getApplicationInvocationString()ex - the exception, null if noneabort - true if abort applicationlogger - the logger
public static void printException(String message,
Exception ex,
boolean abort)
message - the error message, null if ReflectionHelper.getApplicationInvocationString()ex - the exception, null if noneabort - true if abort application
public static void printException(String message,
Exception ex)
message - the error message, null if ReflectionHelper.getApplicationInvocationString()ex - the exception, null if none
public static void printException(Exception ex,
boolean abort)
ex - the exception, null if noneabort - true if abort applicationpublic static void printException(Exception ex)
ex - the exception, null if none
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||