public class ConfirmDialog extends ToolDialog
confirm(...) methods
which create a ConfirmDialog for you. Each of them returns true
or false depending on whether the user has confirmed or not.

javax.swing.JDialog.AccessibleJDialogjava.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityTypejava.awt.Window.AccessibleAWTWindow, java.awt.Window.TypeaccessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTCENTER, EAST, NORTH, SOUTH, WEST| Modifier | Constructor and Description |
|---|---|
protected |
ConfirmDialog(boolean isWarning,
java.lang.String msg1) |
protected |
ConfirmDialog(boolean isWarning,
java.lang.String msg1,
java.lang.String msg2) |
protected |
ConfirmDialog(java.awt.Window dialog,
boolean isWarning,
java.lang.String msg1) |
protected |
ConfirmDialog(java.awt.Window hook,
boolean isWarning,
java.lang.String msg1,
java.lang.String msg2) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
confirm(NlsKey msg1) |
static boolean |
confirm(NlsKey msg1,
NlsKey msg2) |
static boolean |
confirm(java.lang.String msg1)
Pops up the dialog attached to the main-frame.
|
static boolean |
confirm(java.lang.String msg1,
NlsKey msg2) |
static boolean |
confirm(java.lang.String msg1,
java.lang.String msg2)
Pops up the dialog attached to the main-frame.
|
static boolean |
confirm(java.awt.Window hook,
NlsKey nls) |
static boolean |
confirm(java.awt.Window hook,
NlsKey msg1,
NlsKey msg2) |
static boolean |
confirm(java.awt.Window hook,
java.lang.String msg)
Pops up a ConfirmDialog with the given message, which should already be translated.
|
static boolean |
confirm(java.awt.Window hook,
java.lang.String msg1,
java.lang.String msg2)
Pops up a ConfirmDialog with the given messages, which should already be translated.
|
protected IconKey |
createHeaderIcon() |
protected NlsKey |
createHeaderText() |
protected void |
doOnApply()
Should be overridden in order to provide an apply action
|
IconKey |
getApplyButtonIcon() |
java.lang.String |
getApplyButtonText() |
boolean |
hasApplyButton()
Defines whether an Apply button should be displayed (default false).
|
boolean |
hasCloseButton()
Defines whether a Close button should be displayed (default false).
|
protected boolean |
isClosedOnApply()
Defines whether the dialog should be closed on apply - default is true
|
boolean |
isConfirmed() |
protected boolean |
isErrorAttachable()
This method defines whether error dialogs may attach to this dialog.
|
static boolean |
warning(java.lang.String msg1) |
static boolean |
warning(java.lang.String msg1,
java.lang.String msg2) |
static boolean |
warning(java.awt.Window hook,
java.lang.String msg) |
static boolean |
warning(java.awt.Window hook,
java.lang.String msg1,
java.lang.String msg2) |
addApplyListener, apply, cancel, clear, close, closeByIcon, createButtonPanel, createWindowAdapter, doOnApplyError, doOnCancel, doOnClose, doOnPopup, getApplicationContext, getApplier, getApplyAndCloseButton, getApplyButton, getButtonPanel, getCaller, getCancelButton, getClearButton, getCloseButton, getLogChannel, getPreferredWindowAlignment, getWindowAdapter, hasApplyAndCloseButton, hasButtonPanel, hasCancelButton, hasClearButton, isLogDebug, isLogVerbose, locate, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, pack, popup, removeApplyListener, setDefaultButton, setLogChannel, setRelocateOnPopup, wasCancelleddispose, getMinimumHeight, getMinimumWidth, isDisposeOnClose, isLocated, isPacked, registerSubDialog, repack, setLocation, setLocationRelativeTo, setLocationRelativeTo, setLocationToCenter, setTitle, setVisible, shiftLocation, toDumpString, toDumpString, toString, toStringaddImpl, 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, updateaddNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBackaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, 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, setLocationByPlatform, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFrontadd, 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, validateTreeaction, 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, getPeer, 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, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRootPanegetLocation, getMinimumHeight, getMinimumWidth, getSize, getTitle, getToolkit, isPacked, setLocation, setLocationRelativeTo, setMinimumSize, setPreferredSize, shiftLocationtoDumpString, toDumpString, toString, toStringprotected ConfirmDialog(java.awt.Window dialog,
boolean isWarning,
java.lang.String msg1)
protected ConfirmDialog(boolean isWarning,
java.lang.String msg1)
protected ConfirmDialog(boolean isWarning,
java.lang.String msg1,
java.lang.String msg2)
protected ConfirmDialog(java.awt.Window hook,
boolean isWarning,
java.lang.String msg1,
java.lang.String msg2)
protected NlsKey createHeaderText()
protected IconKey createHeaderIcon()
public java.lang.String getApplyButtonText()
public IconKey getApplyButtonIcon()
public boolean hasApplyButton()
ToolDialoghasApplyButton in class ToolDialogpublic boolean hasCloseButton()
ToolDialoghasCloseButton in class ToolDialogprotected final boolean isErrorAttachable()
ZDialogisErrorAttachable in class ZDialogprotected void doOnApply()
throws java.lang.Exception
ToolDialogdoOnApply in class ToolDialogjava.lang.Exceptionprotected boolean isClosedOnApply()
ToolDialogisClosedOnApply in class ToolDialogpublic final boolean isConfirmed()
public static boolean confirm(java.awt.Window hook,
java.lang.String msg)
public static boolean confirm(java.awt.Window hook,
NlsKey nls)
public static boolean confirm(java.awt.Window hook,
java.lang.String msg1,
java.lang.String msg2)
public static boolean confirm(java.lang.String msg1,
java.lang.String msg2)
public static boolean confirm(java.lang.String msg1,
NlsKey msg2)
public static boolean confirm(java.lang.String msg1)
public static boolean confirm(NlsKey msg1)
public static boolean warning(java.awt.Window hook,
java.lang.String msg)
public static boolean warning(java.lang.String msg1)
public static boolean warning(java.lang.String msg1,
java.lang.String msg2)
public static boolean warning(java.awt.Window hook,
java.lang.String msg1,
java.lang.String msg2)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.