Package net.simplace.ui.usermessage
Class FWMessageDialog
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
net.simplace.ui.usermessage.FWMessageDialog
- All Implemented Interfaces:
ActionListener,ImageObserver,MenuContainer,Serializable,Runnable,EventListener,Accessible,RootPaneContainer,WindowConstants
This class serves as replacement for the JOptionpane.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JDialog
JDialog.AccessibleJDialogNested classes/interfaces inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityTypeNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInfinite waiting time for the autodispose-messagepane.static final intRepresents a negative confirm.static final IconIcon for ConfirmDialogs.static final intRepresents a possitive confirm.static final IconIcon for ThrowableDialogs.static final intRepresents File chooser to select existing directory option.static final intRepresents File chooser to select existing file option.static final intRepresents File Chooser with selection option.static final intRepresents File Chooser to select or give File Name option.static final IconIcon for InfoDialogs.static final intRepresents a negative answer to a question.static final IconIcon for InfoDialogs.static final StringTitle for warnings.static final intRepresents a break to a question.static final IconIcon for QuestionDialogs.static final intRepresents a possitive answer to a question.static final intRepresents a negative answer to a question.static final StringTitle for questions.static final intRepresents a possitive answer to a question.static final intRepresents a email send option.static final IconIcon for WarningDialogs.static final StringTitle for warnings.Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPEFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent aActionEvent) Is called after one of the button is pressed.voidpack()Overrides java.awt.Window to recognize minimum-size.voidrun()Waits the autodispose time and closes the dialog, if it isn`t closed manually in the given time.static voidshowAutodisposeInfoDialog(Window aParent, String aInfo, int aAutodisposeWaitingTime) Shows a simple infopanel.static ObjectshowChooserDialog(Window aParent, String aTitle, String aInfo, Collection<Object> aValueCollection) Shows a simple input panel.static ObjectshowChooserDialog(Window aParent, String aTitle, String aInfo, Collection<Object> aValueCollection, Object aDefaultValue) Shows a simple input panel.static intshowConfirmDialog(Window aParent, String aMessage) Shows a dialog which asks the user to either confirm or break a process;static intshowConfirmDialog(Window aParent, String aMessage, String aMessageID) Shows a dialog which asks the user to either confirm or break a process;static intshowCustomDialog(Window aParent, String aTitle, Icon aIcon, String aMessage, int aDefaultButtonIndex) Shows a dialog with the custom settings.static intshowCustomDialog(Window aParent, String aTitle, Icon aIcon, String aMessage, String[] aButtonCaptions) Shows a dialog with the custom settings.static Object[]showDoubleChooserDialog(Window aParent, String aTitle, String aInfo, Collection aSourceValueCollection, Collection aTargetValueCollection) static intshowEmailExceptionDialog(Window aParent, String aMessage, Throwable aThrowable) Shows a dialog, which warns the user, that a Throwable has happened and also the Email functionality button.static voidshowExceptionDialog(Window aParent, String aLocaleBundle, String aLocaleKey, Throwable aThrowable) Shows a dialog, which warns the user, that a Throwable has happened.static voidshowExceptionDialog(Window aParent, String aMessage, Throwable aThrowable) Shows a dialog, which warns the user, that a Throwable has happened.static StringshowFileChooserDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, Integer aFileChooserOption) Shows a simple input panel.static FWObservableshowFormDialog(Window aParent, String aTitle, String aInfo, org.jdom2.Element aFormElement, FWObservable aObservable, boolean aShowCancelButton) static voidshowInfoDialog(Window aParent, String aInfo) Shows a simple infopanel.static voidshowInfoDialog(Window aParent, String aInfo, int aAutodisposeWaitingTime, String aMessageID) Shows a simple infopanel.static voidshowInfoDialog(Window aParent, String aInfo, String aMessageID) Shows a simple infopanel.static StringshowInputDialog(Window aParent, String aTitle, String aInfo) Shows a simple input panel.static StringshowInputDialog(Window aParent, String aTitle, String aInfo, boolean aPasswordField) Shows a simple input panel.static StringshowInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue) Shows a simple input panel.static StringshowInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, boolean aPasswordField) Shows a simple input panel.static StringshowInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, boolean aPasswordField, boolean aShowCancelButton) Shows a simple input panel.static StringshowInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, boolean aPasswordField, boolean aShowCancelButton, Icon aIcon) Shows a simple input panel.static StringshowInputDialog(Window aParent, String aTitle, String aInfo, Icon aIcon) Shows a simple input panel.static StringshowInputDialogWithoutCancelButton(Window aParent, String aTitle, String aInfo) Shows a simple input panel.static voidshowMessage(Window aWindow, FWMessage aMessage) Displays the givenMessageobject.static intshowOptionDialog(Window aParent, String aMessage, String[] aOptions, int aMessageType) Shows a dialog, which asks the user to press either yes, no and perhaps cancel.static intshowOptionPaneDialog(Window aParent, String aMessage, String aTitle, int aIconType, int aButtonType) static intshowQuestionDialog(Window aParent, String aMessage) Shows a dialog, whichs ask the user to press either yes, no.static intshowQuestionDialog(Window aParent, String aQuestion, boolean aShowCancel) Shows a dialog, which asks the user to press either yes, no and perhaps cancel.static intshowQuestionDialog(Window aParent, String aQuestion, boolean aShowCancel, int aDefaultButtonIndex) Shows a dialog, whichs ask the user to press either yes, no and perhaps cancel.static intshowQuestionDialog(Window aParent, String aLocaleBundle, String aLocaleKey) Shows a dialog, whichs ask the user to press either yes, no.static intshowQuestionDialog(Window aParent, String aLocaleBundle, String aLocaleKey, boolean aShowCancel) Shows a dialog, which asks the user to press either yes, no and perhaps cancel.static voidshowWarningDialog(Window aParent, String aWarning) Shows a dialog which warns user of something.static voidshowWarningDialog(Window aParent, String aLocaleBundle, String aLocaleKey) Shows a dialog which warns user of something.static voidshowWarningDialog(Window aParent, String aWarning, String aMessageID, Throwable aThrowable) Shows a dialog which warns user of a minor Throwable.static voidshowWarningDialog(Window aParent, String aWarning, Throwable aThrowable) Shows a dialog which warns user of a minor Throwable.static intshowWarningQuestion(Window aParent, String aQuestion) Shows a dialog which asks the user with warning him/her of the importance.static intshowWarningQuestion(Window aParent, String aQuestion, int aDefaultButtonIndex) Shows a dialog which asks the user with warning him/her of the importance.Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBackMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
INFO_ICON
Icon for InfoDialogs. -
QUESTION_ICON
Icon for QuestionDialogs. -
CONFIRM_ICON
Icon for ConfirmDialogs. -
WARNING_ICON
Icon for WarningDialogs. -
EXCEPTION_ICON
Icon for ThrowableDialogs. -
PROGRESS_ICON
Icon for InfoDialogs. -
QUESTION_TITLE
Title for questions. -
WARNING_TITLE
Title for warnings. -
PROGRESS_TITLE
Title for warnings. -
AUTODISPOSE_INFINITE_WAITING_TIME
public static final int AUTODISPOSE_INFINITE_WAITING_TIMEInfinite waiting time for the autodispose-messagepane.- See Also:
-
QUESTION_YES
public static final int QUESTION_YESRepresents a possitive answer to a question.- See Also:
-
QUESTION_NO
public static final int QUESTION_NORepresents a negative answer to a question.- See Also:
-
QUESTION_CANCEL
public static final int QUESTION_CANCELRepresents a break to a question.- See Also:
-
CONFIRM_OK
public static final int CONFIRM_OKRepresents a possitive confirm.- See Also:
-
CONFIRM_CANCEL
public static final int CONFIRM_CANCELRepresents a negative confirm.- See Also:
-
QUESTION_MESSAGE
public static final int QUESTION_MESSAGERepresents a possitive answer to a question.- See Also:
-
INFO_MESSAGE
public static final int INFO_MESSAGERepresents a negative answer to a question.- See Also:
-
SEND_EMAIL
public static final int SEND_EMAILRepresents a email send option.- See Also:
-
FILE_CHOOSER_MULTISELECT
public static final int FILE_CHOOSER_MULTISELECTRepresents File Chooser with selection option.- See Also:
-
FILE_CHOOSER_SELECT
public static final int FILE_CHOOSER_SELECTRepresents File Chooser to select or give File Name option.- See Also:
-
FILE_CHOOSER_DIR
public static final int FILE_CHOOSER_DIRRepresents File chooser to select existing directory option.- See Also:
-
FILE_CHOOSER_EXISTING
public static final int FILE_CHOOSER_EXISTINGRepresents File chooser to select existing file option.- See Also:
-
-
Method Details
-
pack
public void pack()Overrides java.awt.Window to recognize minimum-size. -
actionPerformed
Is called after one of the button is pressed.- Specified by:
actionPerformedin interfaceActionListener
-
showOptionPaneDialog
public static int showOptionPaneDialog(Window aParent, String aMessage, String aTitle, int aIconType, int aButtonType) - Parameters:
aParent-aMessage-aTitle-aIconType-aButtonType-- Returns:
- int representing the choice user has done.
-
showCustomDialog
public static int showCustomDialog(Window aParent, String aTitle, Icon aIcon, String aMessage, String[] aButtonCaptions) Shows a dialog with the custom settings.- Parameters:
aParent-aTitle-aIcon-aMessage-aButtonCaptions-- Returns:
- index of the clicked Button
-
showCustomDialog
public static int showCustomDialog(Window aParent, String aTitle, Icon aIcon, String aMessage, int aDefaultButtonIndex) Shows a dialog with the custom settings.- Parameters:
aParent-aTitle-aIcon-aMessage-aDefaultButtonIndex-- Returns:
- index of the clicked Button
-
showInfoDialog
Shows a simple infopanel.- Parameters:
aParent-aInfo-
-
showInfoDialog
Shows a simple infopanel.- Parameters:
aParent-aInfo-aMessageID-
-
showAutodisposeInfoDialog
public static void showAutodisposeInfoDialog(Window aParent, String aInfo, int aAutodisposeWaitingTime) Shows a simple infopanel.- Parameters:
aParent-aInfo-aAutodisposeWaitingTime-
-
showInfoDialog
public static void showInfoDialog(Window aParent, String aInfo, int aAutodisposeWaitingTime, String aMessageID) Shows a simple infopanel.- Parameters:
aParent-aInfo-aAutodisposeWaitingTime-aMessageID-
-
showInputDialogWithoutCancelButton
public static String showInputDialogWithoutCancelButton(Window aParent, String aTitle, String aInfo) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-- Returns:
- the input dialog result
-
showInputDialog
Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-- Returns:
- the input dialog result
-
showInputDialog
Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aIcon-- Returns:
- the input dialog result
-
showInputDialog
public static String showInputDialog(Window aParent, String aTitle, String aInfo, boolean aPasswordField) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aPasswordField-- Returns:
- the input dialog result
-
showInputDialog
public static String showInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aDefaultValue-- Returns:
- the input dialog result
-
showInputDialog
public static String showInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, boolean aPasswordField) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aDefaultValue-aPasswordField-- Returns:
- the input dialog result
-
showInputDialog
public static String showInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, boolean aPasswordField, boolean aShowCancelButton) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aDefaultValue-aPasswordField-aShowCancelButton-- Returns:
- the input dialog result
-
showInputDialog
public static String showInputDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, boolean aPasswordField, boolean aShowCancelButton, Icon aIcon) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aDefaultValue-aPasswordField-aShowCancelButton-aIcon-- Returns:
- the input dialog result
-
showFileChooserDialog
public static String showFileChooserDialog(Window aParent, String aTitle, String aInfo, String aDefaultValue, Integer aFileChooserOption) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aDefaultValue-aFileChooserOption-- Returns:
- the input dialog result
-
showChooserDialog
public static Object showChooserDialog(Window aParent, String aTitle, String aInfo, Collection<Object> aValueCollection) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aValueCollection-- Returns:
- the input dialog result
-
showChooserDialog
public static Object showChooserDialog(Window aParent, String aTitle, String aInfo, Collection<Object> aValueCollection, Object aDefaultValue) Shows a simple input panel.- Parameters:
aParent-aTitle-aInfo-aValueCollection-aDefaultValue-- Returns:
- the input dialog result
-
showDoubleChooserDialog
public static Object[] showDoubleChooserDialog(Window aParent, String aTitle, String aInfo, Collection aSourceValueCollection, Collection aTargetValueCollection) - Parameters:
aParent-aTitle-aInfo-aSourceValueCollection-aTargetValueCollection-- Returns:
- the 2 selected values or null if cancel was pressed
-
showQuestionDialog
Shows a dialog, which asks the user to press either yes, no and perhaps cancel.- Parameters:
aParent-aQuestion-aShowCancel-- Returns:
- int representing the choice user has done.
-
showQuestionDialog
public static int showQuestionDialog(Window aParent, String aQuestion, boolean aShowCancel, int aDefaultButtonIndex) Shows a dialog, whichs ask the user to press either yes, no and perhaps cancel.- Parameters:
aParent-aQuestion-aShowCancel-aDefaultButtonIndex-- Returns:
- int representing the choice user has done.
-
showOptionDialog
public static int showOptionDialog(Window aParent, String aMessage, String[] aOptions, int aMessageType) Shows a dialog, which asks the user to press either yes, no and perhaps cancel.- Parameters:
aParent-aMessage-aOptions-aMessageType-- Returns:
- int representing the choice user has done.
-
showFormDialog
public static FWObservable showFormDialog(Window aParent, String aTitle, String aInfo, org.jdom2.Element aFormElement, FWObservable aObservable, boolean aShowCancelButton) - Parameters:
aParent-aTitle-aInfo-aFormElement-aObservable-aShowCancelButton-- Returns:
- the given Observable
-
showQuestionDialog
public static int showQuestionDialog(Window aParent, String aLocaleBundle, String aLocaleKey, boolean aShowCancel) Shows a dialog, which asks the user to press either yes, no and perhaps cancel.- Parameters:
aParent-aLocaleBundle-aLocaleKey-aShowCancel-- Returns:
- int representing the choice user has done.
-
showQuestionDialog
Shows a dialog, whichs ask the user to press either yes, no.- Parameters:
aParent-aMessage-- Returns:
- int representing the choice user has done.
-
showQuestionDialog
Shows a dialog, whichs ask the user to press either yes, no.- Parameters:
aParent-aLocaleBundle-aLocaleKey-- Returns:
- int representing the choice user has done.
-
showConfirmDialog
Shows a dialog which asks the user to either confirm or break a process;- Parameters:
aParent-aMessage-- Returns:
- int representing the choice user has done.
-
showConfirmDialog
Shows a dialog which asks the user to either confirm or break a process;- Parameters:
aParent-aMessage-aMessageID-- Returns:
- int representing the choice user has done.
-
showWarningQuestion
Shows a dialog which asks the user with warning him/her of the importance.- Parameters:
aParent-aQuestion-- Returns:
- int representing the choice user has done.
-
showWarningQuestion
Shows a dialog which asks the user with warning him/her of the importance.- Parameters:
aParent- The parent windowaQuestion- Question to poseaDefaultButtonIndex- 1=NO , 0=YES, -1=DefaultSettings- Returns:
- int representing the choice user has done.
-
showWarningDialog
Shows a dialog which warns user of a minor Throwable.- Parameters:
aParent-aWarning-aThrowable-
-
showWarningDialog
public static void showWarningDialog(Window aParent, String aWarning, String aMessageID, Throwable aThrowable) Shows a dialog which warns user of a minor Throwable.- Parameters:
aParent-aWarning-aMessageID-aThrowable-
-
showWarningDialog
Shows a dialog which warns user of something.- Parameters:
aParent-aWarning-
-
showWarningDialog
Shows a dialog which warns user of something.- Parameters:
aParent-aLocaleBundle-aLocaleKey-
-
showExceptionDialog
Shows a dialog, which warns the user, that a Throwable has happened.- Parameters:
aParent-aMessage-aThrowable-
-
showEmailExceptionDialog
Shows a dialog, which warns the user, that a Throwable has happened and also the Email functionality button. This should be used if a functionality is implemented for email sending.- Parameters:
aParent-aMessage-aThrowable-- Returns:
- int representing the choice user has done.
-
showExceptionDialog
public static void showExceptionDialog(Window aParent, String aLocaleBundle, String aLocaleKey, Throwable aThrowable) Shows a dialog, which warns the user, that a Throwable has happened.- Parameters:
aParent-aLocaleBundle-aLocaleKey-aThrowable-
-
run
public void run()Waits the autodispose time and closes the dialog, if it isn`t closed manually in the given time. -
showMessage
Displays the givenMessageobject.- Parameters:
aWindow-aMessage-
-