public abstract class DialogWrapper
extends java.lang.Object
EventQueue.invokeLater(Runnable)
or EventQueue.invokeAndWait(Runnable)
.Modifier and Type | Class and Description |
---|---|
protected class |
DialogWrapper.CancelAction |
static class |
DialogWrapper.DialogStyle |
protected class |
DialogWrapper.DialogWrapperAction
Base class for dialog wrapper actions that need to ensure that only
one action for the dialog is running.
|
protected class |
DialogWrapper.DialogWrapperExitAction
The action that just closes dialog with the specified exit code
(like the default behavior of the actions "Ok" and "Cancel").
|
static interface |
DialogWrapper.DoNotAskOption |
static class |
DialogWrapper.IdeModalityType |
protected class |
DialogWrapper.OkAction |
Modifier and Type | Field and Description |
---|---|
static int |
CANCEL_EXIT_CODE
The default exit code for "Cancel" action.
|
static int |
CLOSE_EXIT_CODE
The default exit code for "Close" action.
|
static java.lang.String |
DEFAULT_ACTION
If your action returned by
createActions method has non
null value for this key, then the button that corresponds to the action will be the
default button for the dialog. |
static java.lang.Object |
DIALOG_CONTENT_PANEL_PROPERTY |
static java.awt.Color |
ERROR_FOREGROUND_COLOR |
static java.lang.String |
FOCUSED_ACTION |
static java.lang.String |
IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY |
protected javax.swing.Action |
myCancelAction |
protected javax.swing.JCheckBox |
myCheckBoxDoNotShowDialog |
protected Disposable |
myDisposable |
protected javax.swing.Action |
myHelpAction |
protected javax.swing.Action |
myOKAction |
protected boolean |
myPerformAction |
protected javax.swing.JComponent |
myPreferredFocusedComponent |
static int |
NEXT_USER_EXIT_CODE
If you use your own custom exit codes you have to start them with this constant.
|
static int |
OK_EXIT_CODE
The default exit code for "OK" action.
|
Modifier | Constructor and Description |
---|---|
protected |
DialogWrapper(boolean canBeParent)
Creates modal
DialogWrapper . |
protected |
DialogWrapper(boolean canBeParent,
boolean applicationModalIfPossible)
Deprecated.
|
protected |
DialogWrapper(java.awt.Component parent,
boolean canBeParent) |
protected |
DialogWrapper(Project project)
Creates modal
DialogWrapper that can be parent for other windows. |
protected |
DialogWrapper(Project project,
boolean canBeParent)
Creates modal
DialogWrapper . |
protected |
DialogWrapper(Project project,
boolean canBeParent,
boolean applicationModalIfPossible) |
protected |
DialogWrapper(Project project,
boolean canBeParent,
DialogWrapper.IdeModalityType ideModalityType) |
protected |
DialogWrapper(Project project,
java.awt.Component parentComponent,
boolean canBeParent,
DialogWrapper.IdeModalityType ideModalityType) |
protected |
DialogWrapper(Project project,
java.awt.Component parentComponent,
boolean canBeParent,
DialogWrapper.IdeModalityType ideModalityType,
boolean createSouth) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyListener(java.awt.event.KeyListener listener) |
void |
addMouseListener(java.awt.event.MouseListener listener) |
void |
addMouseListener(java.awt.event.MouseMotionListener listener) |
protected boolean |
canRecordDialogId()
If dialog open/close events should be recorded in user event log, it can be used to understand how often this dialog is used.
|
void |
centerRelativeToParent() |
static void |
cleanupRootPane(javax.swing.JRootPane rootPane) |
static void |
cleanupWindowListeners(java.awt.Window window) |
void |
clickDefaultButton()
Programmatically perform a "click" of default dialog's button.
|
void |
close(int exitCode) |
void |
close(int exitCode,
boolean isOk)
Closes and disposes the dialog and sets the specified exit code.
|
protected javax.swing.Action [] |
createActions()
Creates actions for dialog.
|
protected javax.swing.JPanel |
createButtonsPanel(java.util.List<? extends javax.swing.JButton> buttons) |
protected java.awt.event.ActionListener |
createCancelAction()
Return
null if we should ignore |
protected abstract javax.swing.JComponent |
createCenterPanel()
Factory method.
|
protected javax.swing.JComponent |
createContentPane() |
protected javax.swing.border.Border |
createContentPaneBorder()
Creates border for dialog's content pane.
|
protected void |
createDefaultActions() |
static javax.swing.border.Border |
createDefaultBorder()
The shared instance of default border for dialog's content pane.
|
protected javax.swing.JComponent |
createDoNotAskCheckbox() |
protected javax.swing.JButton |
createHelpButton(java.awt.Insets insets) |
protected javax.swing.JButton |
createJButtonForAction(javax.swing.Action action)
Creates
JButton for the specified action. |
static javax.swing.JButton |
createJButtonForAction(javax.swing.Action action,
javax.swing.JRootPane rootPane) |
protected javax.swing.Action [] |
createLeftSideActions() |
protected javax.swing.JComponent |
createNorthPanel()
Factory method.
|
protected DialogWrapperPeer |
createPeer(boolean canBeParent,
boolean applicationModalIfPossible)
Deprecated.
Dialogs with no parents are discouraged.
|
protected DialogWrapperPeer |
createPeer(java.awt.Component parent,
boolean canBeParent) |
protected DialogWrapperPeer |
createPeer(Project project,
boolean canBeParent) |
protected DialogWrapperPeer |
createPeer(Project project,
boolean canBeParent,
DialogWrapper.IdeModalityType ideModalityType) |
protected DialogWrapperPeer |
createPeer(java.awt.Window owner,
boolean canBeParent,
boolean applicationModalIfPossible) |
protected DialogWrapperPeer |
createPeer(java.awt.Window owner,
boolean canBeParent,
DialogWrapper.IdeModalityType ideModalityType) |
protected java.awt.LayoutManager |
createRootLayout() |
protected javax.swing.JPanel |
createSouthAdditionalPanel()
Additional panel in the lower left part of dialog to the left from additional buttons
|
protected javax.swing.JComponent |
createSouthPanel()
Creates panel located at the south of the content pane.
|
protected javax.swing.JComponent |
createTitlePane() |
protected void |
dispose()
Dispose the wrapped and releases all resources allocated be the wrapper to help
more efficient garbage collection.
|
void |
disposeIfNeeded() |
void |
doCancelAction()
This method is invoked by default implementation of "Cancel" action.
|
void |
doCancelAction(java.awt.AWTEvent source)
You can use this method if you want to know by which event this actions got triggered.
|
protected void |
doHelpAction() |
protected void |
doOKAction()
This method is invoked by default implementation of "OK" action.
|
protected ValidationInfo |
doValidate()
Validates user input and returns
null if everything is fine
or validation description with component where problem has been found. |
protected java.util.List<ValidationInfo> |
doValidateAll()
Validates user input and returns
List<ValidationInfo> . |
static Pair<java.lang.Integer,java.lang.String> |
extractMnemonic(java.lang.String text) |
static DialogWrapper |
findInstance(java.awt.Component c) |
static DialogWrapper |
findInstanceFromFocus() |
protected javax.swing.JButton |
getButton(javax.swing.Action action) |
protected javax.swing.Action |
getCancelAction() |
java.awt.Container |
getContentPane()
Returns content pane
|
javax.swing.JComponent |
getContentPanel() |
java.lang.String |
getDimensionKey() |
protected java.lang.String |
getDimensionServiceKey()
Returns key for persisting dialog dimensions.
|
Disposable |
getDisposable() |
protected java.lang.String |
getDoNotShowMessage() |
protected int |
getErrorTextAlignment() |
int |
getExitCode() |
protected javax.swing.Action |
getHelpAction() |
protected java.lang.String |
getHelpId()
Returns the help identifier, or
null if no help is available. |
float |
getHorizontalStretch() |
java.awt.Point |
getInitialLocation() |
java.awt.Point |
getLocation() |
protected javax.swing.Action |
getOKAction() |
java.awt.Window |
getOwner() |
DialogWrapperPeer |
getPeer() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
java.awt.Dimension |
getPreferredSize() |
javax.swing.JRootPane |
getRootPane() |
java.awt.Dimension |
getSize() |
protected DialogWrapper.DialogStyle |
getStyle() |
java.lang.String |
getTitle() |
long |
getTypeAheadTimeoutMs() |
protected Alarm.ThreadToUse |
getValidationThreadToUse() |
float |
getVerticalStretch() |
java.awt.Window |
getWindow() |
protected boolean |
hasErrors(javax.swing.JComponent component)
Check if component is in error state validation-wise
|
protected void |
init() |
protected void |
initValidation() |
boolean |
isAutoAdjustable() |
protected boolean |
isCenterStrictedToPreferredSize()
Deprecated.
unused
|
boolean |
isDisposed() |
boolean |
isModal() |
boolean |
isModalProgress() |
protected static boolean |
isMoveHelpButtonLeft() |
protected boolean |
isNorthStrictedToPreferredSize()
Deprecated.
unused
|
boolean |
isOK() |
boolean |
isOKActionEnabled() |
protected boolean |
isProgressDialog() |
void |
isResizable() |
boolean |
isShowing() |
protected boolean |
isSouthStrictedToPreferredSize()
Deprecated.
unused
|
boolean |
isToDispatchTypeAhead()
Deprecated.
unused (equals
isOK() ) |
boolean |
isTypeAheadEnabled() |
boolean |
isVisible() |
static javax.swing.JPanel |
layoutButtonsPanel(java.util.List<? extends javax.swing.JButton> buttons) |
void |
pack() |
protected boolean |
postponeValidation()
Allows to postpone first start of validation
|
protected void |
processDoNotAskOnOk(int exitCode) |
void |
repaint() |
protected boolean |
setAutoAdjustable(boolean autoAdjustable) |
protected void |
setButtonsAlignment(int alignment)
Sets horizontal alignment of dialog's buttons.
|
void |
setButtonsMargin(java.awt.Insets insets)
Deprecated.
button margins aren't used anymore. Button style is standardized.
|
protected void |
setCancelButtonIcon(javax.swing.Icon icon)
Deprecated.
button icons aren't used anymore (except "OK" action). Button style is standardized.
|
protected void |
setCancelButtonText(java.lang.String text) |
void |
setCrossClosesWindow(boolean crossClosesWindow) |
void |
setDoNotAskOption(DialogWrapper.DoNotAskOption doNotAsk) |
protected void |
setErrorInfoAll(java.util.List<ValidationInfo> info) |
protected void |
setErrorText(java.lang.String text)
Don't override this method.
|
protected void |
setErrorText(java.lang.String text,
javax.swing.JComponent component) |
protected void |
setHelpTooltip(javax.swing.JButton helpButton) |
protected void |
setHorizontalStretch(float hStretch) |
void |
setInitialLocationCallback(Computable<? extends java.awt.Point> callback) |
void |
setLocation(int x,
int y) |
void |
setLocation(java.awt.Point p) |
void |
setModal(boolean modal) |
void |
setOKActionEnabled(boolean isEnabled) |
protected void |
setOKButtonIcon(javax.swing.Icon icon) |
protected void |
setOKButtonMnemonic(int c) |
protected void |
setOKButtonText(java.lang.String text) |
protected void |
setOKButtonTooltip(java.lang.String text) |
void |
setResizable(boolean resizable) |
void |
setSize(int width,
int height) |
void |
setTitle(java.lang.String title) |
void |
setUndecorated(boolean undecorated) |
void |
setValidationDelay(int delay) |
protected void |
setVerticalStretch(float vStretch) |
protected boolean |
shouldAddErrorNearButtons() |
boolean |
shouldCloseOnCross() |
void |
show()
Show the dialog.
|
boolean |
showAndGet()
Show the modal dialog and check if it was closed with OK.
|
<any> |
showAndGetOk()
Deprecated.
override
doOKAction() / doCancelAction() or hook on myDisposable |
protected void |
startTrackingValidation() |
void |
toBack() |
protected boolean |
toBeShown() |
void |
toFront() |
static void |
unregisterKeyboardActions(java.awt.Component rootPane) |
protected void |
updateErrorInfo(java.util.List<ValidationInfo> info) |
void |
validate() |
public static final java.lang.String IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY
public static final int OK_EXIT_CODE
public static final int CANCEL_EXIT_CODE
public static final int CLOSE_EXIT_CODE
public static final int NEXT_USER_EXIT_CODE
public static final java.lang.String DEFAULT_ACTION
createActions
method has non
null
value for this key, then the button that corresponds to the action will be the
default button for the dialog. It's true if you don't change this behaviour
of createJButtonForAction(Action)
method.public static final java.lang.String FOCUSED_ACTION
public static final java.lang.Object DIALOG_CONTENT_PANEL_PROPERTY
public static final java.awt.Color ERROR_FOREGROUND_COLOR
protected final Disposable myDisposable
protected javax.swing.Action myOKAction
protected javax.swing.Action myCancelAction
protected javax.swing.Action myHelpAction
protected boolean myPerformAction
protected javax.swing.JCheckBox myCheckBoxDoNotShowDialog
protected javax.swing.JComponent myPreferredFocusedComponent
protected DialogWrapper(Project project, boolean canBeParent)
DialogWrapper
. The currently active window will be the dialog's parent.project
- parent window for the dialog will be calculated based on focused window for the
specified project
. This parameter can be null
. In this case parent window
will be suggested based on current focused window.canBeParent
- specifies whether the dialog can be parent for other windows. This parameter is used
by WindowManager
.java.lang.IllegalStateException
- if the dialog is invoked not on the event dispatch threadprotected DialogWrapper(Project project, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType)
protected DialogWrapper(Project project, java.awt.Component parentComponent, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType)
protected DialogWrapper(Project project, java.awt.Component parentComponent, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType, boolean createSouth)
protected DialogWrapper(Project project)
DialogWrapper
that can be parent for other windows.
The currently active window will be the dialog's parent.project
- parent window for the dialog will be calculated based on focused window for the
specified project
. This parameter can be null
. In this case parent window
will be suggested based on current focused window.java.lang.IllegalStateException
- if the dialog is invoked not on the event dispatch threadDialogWrapper(Project, boolean)
protected DialogWrapper(boolean canBeParent)
DialogWrapper
. The currently active window will be the dialog's parent.canBeParent
- specifies whether the dialog can be parent for other windows. This parameter is used
by WindowManager
.java.lang.IllegalStateException
- if the dialog is invoked not on the event dispatch thread@Deprecated protected DialogWrapper(boolean canBeParent, boolean applicationModalIfPossible)
DialogWrapper(Project, boolean, boolean)
WindowManager.suggestParentWindow(com.intellij.openapi.project.Project)
method to find out the best parent for your dialog. Exceptions are cases
when we do not have a project to figure out which window
is more suitable as an owner for the dialog.
protected DialogWrapper(Project project, boolean canBeParent, boolean applicationModalIfPossible)
protected DialogWrapper(java.awt.Component parent, boolean canBeParent)
parent
- parent component which is used to calculate heavy weight window ancestor.
parent
cannot be null
and must be showing.canBeParent
- can be parentjava.lang.IllegalStateException
- if the dialog is invoked not on the event dispatch threadpublic static javax.swing.border.Border createDefaultBorder()
protected java.lang.String getDoNotShowMessage()
public void setDoNotAskOption(DialogWrapper.DoNotAskOption doNotAsk)
protected Alarm.ThreadToUse getValidationThreadToUse()
protected boolean postponeValidation()
false
if start validation in init()
methodprotected ValidationInfo doValidate()
null
if everything is fine
or validation description with component where problem has been found.null
if everything is OK or validation descriptorprotected java.util.List<ValidationInfo> doValidateAll()
List<ValidationInfo>
.
If everything is fine the returned list is empty otherwise
the list contains all invalid fields with error messages.
This method should preferably be used when validating forms with multiply
fields that require validation.List<ValidationInfo>
of invalid fields. List
is empty if no errors found.public void setValidationDelay(int delay)
protected void updateErrorInfo(java.util.List<ValidationInfo> info)
protected void createDefaultActions()
public void setUndecorated(boolean undecorated)
public final void addMouseListener(java.awt.event.MouseListener listener)
public final void addMouseListener(java.awt.event.MouseMotionListener listener)
public final void addKeyListener(java.awt.event.KeyListener listener)
public final void close(int exitCode, boolean isOk)
exitCode
- exit codeisOk
- is OKjava.lang.IllegalStateException
- if the dialog is invoked not on the event dispatch threadpublic final void close(int exitCode)
protected javax.swing.border.Border createContentPaneBorder()
(8,12,8,12)
insets. Subclasses can
return null
for no border.protected static boolean isMoveHelpButtonLeft()
protected javax.swing.JComponent createSouthPanel()
createActions()
and createJButtonForAction(Action)
methods to construct the panel.protected javax.swing.JButton createHelpButton(java.awt.Insets insets)
protected void setHelpTooltip(javax.swing.JButton helpButton)
protected boolean shouldAddErrorNearButtons()
protected DialogWrapper.DialogStyle getStyle()
protected boolean toBeShown()
public boolean isTypeAheadEnabled()
protected javax.swing.JComponent createDoNotAskCheckbox()
protected javax.swing.JPanel createButtonsPanel(java.util.List<? extends javax.swing.JButton> buttons)
public static javax.swing.JPanel layoutButtonsPanel(java.util.List<? extends javax.swing.JButton> buttons)
protected javax.swing.JPanel createSouthAdditionalPanel()
protected javax.swing.JButton getButton(javax.swing.Action action)
action
- should be registered to find corresponding JButtonprotected javax.swing.JButton createJButtonForAction(javax.swing.Action action)
JButton
for the specified action. If the button has not null
value for DialogWrapper.DEFAULT_ACTION
key then the created button will be the
default one for the dialog.action
- action for the buttonDEFAULT_ACTION
public static javax.swing.JButton createJButtonForAction(javax.swing.Action action, javax.swing.JRootPane rootPane)
public static Pair<java.lang.Integer,java.lang.String> extractMnemonic(java.lang.String text)
protected DialogWrapperPeer createPeer(java.awt.Component parent, boolean canBeParent)
@Deprecated protected DialogWrapperPeer createPeer(boolean canBeParent, boolean applicationModalIfPossible)
protected DialogWrapperPeer createPeer(java.awt.Window owner, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType)
protected DialogWrapperPeer createPeer(java.awt.Window owner, boolean canBeParent, boolean applicationModalIfPossible)
protected DialogWrapperPeer createPeer(Project project, boolean canBeParent, DialogWrapper.IdeModalityType ideModalityType)
protected DialogWrapperPeer createPeer(Project project, boolean canBeParent)
protected javax.swing.JComponent createTitlePane()
protected javax.swing.JComponent createNorthPanel()
null
value. In this case there will be no input panel.protected abstract javax.swing.JComponent createCenterPanel()
null
value. In this case there will be no options panel.public void toFront()
Window.toFront()
public void toBack()
Window.toBack()
protected boolean setAutoAdjustable(boolean autoAdjustable)
public boolean isAutoAdjustable()
protected void dispose()
dispose
.java.lang.IllegalStateException
- if the dialog is disposed not on the event dispatch threadpublic static void cleanupRootPane(javax.swing.JRootPane rootPane)
public static void unregisterKeyboardActions(java.awt.Component rootPane)
public static void cleanupWindowListeners(java.awt.Window window)
public void doCancelAction()
CANCEL_EXIT_CODE
. This is convenient place to override functionality of "Cancel" action.
Note that the method does nothing if "Cancel" action isn't enabled.public void doCancelAction(java.awt.AWTEvent source)
doCancelAction
is called otherwise.source
- AWT eventdoCancelAction()
public void clickDefaultButton()
protected void doOKAction()
OK_EXIT_CODE
. This is convenient place to override functionality of "OK" action.
Note that the method does nothing if "OK" action isn't enabled.protected void processDoNotAskOnOk(int exitCode)
public boolean shouldCloseOnCross()
true
means that cross performs hide or dispose of the dialog.protected javax.swing.Action [] createActions()
getHelpId()
returns non-null value.
Each action is represented by JButton
created by createJButtonForAction(Action)
.
These buttons are then placed into south panel
of dialog.createSouthPanel()
,
createJButtonForAction(javax.swing.Action)
protected javax.swing.Action [] createLeftSideActions()
protected javax.swing.Action getOKAction()
doOKAction()
method.doOKAction()
protected javax.swing.Action getCancelAction()
doCancelAction()
method.doCancelAction()
protected javax.swing.Action getHelpAction()
doHelpAction()
method.doHelpAction()
protected boolean isProgressDialog()
public final boolean isModalProgress()
public java.awt.Container getContentPane()
JDialog.getContentPane()
public void validate()
Container.validate()
public void repaint()
JDialog.repaint(long, int, int, int, int)
protected java.lang.String getDimensionServiceKey()
null
(no persisting).public final java.lang.String getDimensionKey()
public int getExitCode()
public javax.swing.JComponent getPreferredFocusedComponent()
public final float getHorizontalStretch()
1.0f
public final float getVerticalStretch()
1.0f
protected final void setHorizontalStretch(float hStretch)
protected final void setVerticalStretch(float vStretch)
public java.awt.Window getOwner()
Window.getOwner()
public java.awt.Window getWindow()
public javax.swing.JComponent getContentPanel()
public javax.swing.JRootPane getRootPane()
JDialog.getRootPane()
public java.awt.Dimension getSize()
Component.getSize()
public java.lang.String getTitle()
Dialog.getTitle()
protected void init()
protected int getErrorTextAlignment()
protected java.awt.LayoutManager createRootLayout()
protected void startTrackingValidation()
protected final void initValidation()
@Deprecated protected boolean isNorthStrictedToPreferredSize()
@Deprecated protected boolean isCenterStrictedToPreferredSize()
@Deprecated protected boolean isSouthStrictedToPreferredSize()
protected javax.swing.JComponent createContentPane()
public void pack()
Window.pack()
public java.awt.Dimension getPreferredSize()
protected final void setButtonsAlignment(int alignment)
alignment
- alignment of the buttons. Acceptable values are
SwingConstants.CENTER
and SwingConstants.RIGHT
.
The SwingConstants.RIGHT
is the default value.java.lang.IllegalArgumentException
- if alignment
isn't acceptable@Deprecated public final void setButtonsMargin(java.awt.Insets insets)
public final void setCrossClosesWindow(boolean crossClosesWindow)
@Deprecated protected final void setCancelButtonIcon(javax.swing.Icon icon)
protected final void setCancelButtonText(java.lang.String text)
public void setModal(boolean modal)
public boolean isModal()
public boolean isOKActionEnabled()
public void setOKActionEnabled(boolean isEnabled)
protected final void setOKButtonIcon(javax.swing.Icon icon)
protected final void setOKButtonText(java.lang.String text)
text
- action without mnemonic. If mnemonic is set, presentation would be shifted by one to the left
AbstractButton.setText(String)
AbstractButton.updateDisplayedMnemonicIndex(String, int)
protected final void setOKButtonMnemonic(int c)
protected final void setOKButtonTooltip(java.lang.String text)
protected java.lang.String getHelpId()
null
if no help is available.protected void doHelpAction()
public boolean isOK()
public boolean isVisible()
true
if and only if visibleComponent.isVisible()
public boolean isShowing()
true
if and only if showingWindow.isShowing()
public void setSize(int width, int height)
width
- widthheight
- heightWindow.setSize(java.awt.Dimension)
public void setTitle(java.lang.String title)
title
- titleDialog.setTitle(java.lang.String)
public void isResizable()
Dialog.isResizable()
public void setResizable(boolean resizable)
resizable
- is resizableDialog.setResizable(boolean)
public java.awt.Point getLocation()
Component.getLocation()
public void setLocation(java.awt.Point p)
p
- new dialog locationWindow.setLocation(Point)
public void setLocation(int x, int y)
x
- xy
- yWindow.setLocation(int, int)
public void centerRelativeToParent()
public void show()
java.lang.IllegalStateException
- if the method is invoked not on the event dispatch threadshowAndGet()
public boolean showAndGet()
exit code
is OK_EXIT_CODE
.java.lang.IllegalStateException
- if the dialog is non-modal, or if the method is invoked not on the EDT.show()
@Deprecated public <any> showAndGetOk()
doOKAction()
/ doCancelAction()
or hook on myDisposable
public java.awt.Point getInitialLocation()
public void setInitialLocationCallback(Computable<? extends java.awt.Point> callback)
protected java.awt.event.ActionListener createCancelAction()
null
if we should ignore public long getTypeAheadTimeoutMs()
@Deprecated public boolean isToDispatchTypeAhead()
isOK()
)protected boolean canRecordDialogId()
protected void setErrorText(java.lang.String text)
setErrorText(String, JComponent)
method.text
- the error text to displayprotected void setErrorText(java.lang.String text, javax.swing.JComponent component)
protected void setErrorInfoAll(java.util.List<ValidationInfo> info)
protected boolean hasErrors(javax.swing.JComponent component)
public static DialogWrapper findInstance(java.awt.Component c)
public static DialogWrapper findInstanceFromFocus()
public final DialogWrapperPeer getPeer()
public final Disposable getDisposable()
public boolean isDisposed()
public void disposeIfNeeded()