|
||||||||||
| 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.FormInfo
public class FormInfo
An Info 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 | |
|---|---|
FormInfo()
Creates an info dialog with a default message component. |
|
| Method Summary | |
|---|---|
Component |
getMessageComponent()
Gets the message component |
static void |
print(String message)
Creates an info dialog, shows a message and waits for user's ok. |
static void |
print(String message,
boolean log)
Creates an info dialog, shows a message and waits for user's ok. |
static void |
print(String message,
boolean log,
long timeout)
Creates an info dialog, shows a message and waits for user's ok. |
static void |
print(String message,
Logger logger)
Creates an info dialog, shows a message and waits for user's ok. |
static void |
print(String message,
Logger logger,
long timeout)
Creates an info dialog, shows a message and waits for user's ok. |
static void |
print(String message,
long timeout)
Creates an info dialog, shows a message and waits for user's ok. |
void |
setMessageComponent(Component comp)
Sets the message component. Replaces the center panel with some other component. |
void |
showDialog()
Shows the modal info dialog and waits for user's "ok". |
void |
showDialog(String message,
String title,
long timeout)
Shows the info 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 FormInfo()
| Method Detail |
|---|
public void showDialog(String message,
String title,
long timeout)
message - the message to display (may contain newlines).title - the window title, null for default titletimeout - the timeout in milliseconds for the dialog to disappear automatically. Also sets this
dialog to non-modal.public void showDialog()
public void setMessageComponent(Component comp)
comp - the message componentpublic Component getMessageComponent()
public static void print(String message,
Logger logger,
long timeout)
message - the error messagelogger - the logger, null if nonetimeout - the timeout in milliseconds for the dialog to disappear automatically. Also sets this
dialog to non-modal.
public static void print(String message,
Logger logger)
message - the error messagelogger - the logger, null if none
public static void print(String message,
boolean log,
long timeout)
message - the error messagelog - true if log the message via the default loggertimeout - the timeout in milliseconds for the dialog to disappear automatically. Also sets this
dialog to non-modal.
public static void print(String message,
boolean log)
message - the error messagelog - true if log the message via the default logger
public static void print(String message,
long timeout)
message - the error messagetimeout - the timeout in milliseconds for the dialog to disappear automatically. Also sets this
dialog to non-modal.public static void print(String message)
message - the error message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||