public static class Messages.InputDialog extends MessageDialog
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkAction| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.text.JTextComponent |
myField |
myDefaultOptionIndex, myFocusedOptionIndex, myIcon, myMessage, myOptionsCANCEL_EXIT_CODE, CLOSE_EXIT_CODE, DEFAULT_ACTION, DIALOG_CONTENT_PANEL_PROPERTY, ERROR_FOREGROUND_COLOR, FOCUSED_ACTION, IS_VISUAL_PADDING_COMPENSATED_ON_COMPONENT_LEVEL_KEY, myCancelAction, myCheckBoxDoNotShowDialog, myDisposable, myHelpAction, myOKAction, myPerformAction, myPreferredFocusedComponent, NEXT_USER_EXIT_CODE, OK_EXIT_CODE| Constructor and Description |
|---|
InputDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator) |
InputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator) |
InputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator,
java.lang.String [] options,
int defaultOption) |
InputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator,
java.lang.String [] options,
int defaultOption,
java.lang.String comment) |
InputDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.Action [] |
createActions()
Creates actions for dialog.
|
protected javax.swing.JComponent |
createCenterPanel()
Factory method.
|
protected javax.swing.JPanel |
createMessagePanel() |
protected javax.swing.JComponent |
createNorthPanel()
Factory method.
|
protected javax.swing.JComponent |
createScrollableTextComponent() |
protected javax.swing.JComponent |
createTextComponent() |
protected javax.swing.text.JTextComponent |
createTextFieldComponent() |
protected void |
doOKAction()
This method is invoked by default implementation of "OK" action.
|
java.lang.String |
getInputString() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
javax.swing.text.JTextComponent |
getTextField() |
_init, createIconPanel, createMessageComponent, createRootLayout, dispose, doCancelAction, doCreateCenterPanel, doHelpAction, showaddKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultActions, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, createPeer, createPeer, createPeer, createPeer, createPeer, createPeer, createSouthAdditionalPanel, createSouthPanel, createTitlePane, disposeIfNeeded, doCancelAction, doValidate, doValidateAll, extractMnemonic, findInstance, findInstanceFromFocus, getButton, getCancelAction, getContentPane, getContentPanel, getDimensionKey, getDimensionServiceKey, getDisposable, getDoNotShowMessage, getErrorTextAlignment, getExitCode, getHelpAction, getHelpId, getHorizontalStretch, getInitialLocation, getLocation, getOKAction, getOwner, getPeer, getPreferredSize, getRootPane, getSize, getStyle, getTitle, getTypeAheadTimeoutMs, getValidationThreadToUse, getVerticalStretch, getWindow, hasErrors, init, initValidation, isAutoAdjustable, isCenterStrictedToPreferredSize, isDisposed, isModal, isModalProgress, isMoveHelpButtonLeft, isNorthStrictedToPreferredSize, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isSouthStrictedToPreferredSize, isToDispatchTypeAhead, isTypeAheadEnabled, isVisible, layoutButtonsPanel, pack, postponeValidation, processDoNotAskOnOk, repaint, setAutoAdjustable, setButtonsAlignment, setButtonsMargin, setCancelButtonIcon, setCancelButtonText, setCrossClosesWindow, setDoNotAskOption, setErrorInfoAll, setErrorText, setErrorText, setHelpTooltip, setHorizontalStretch, setInitialLocationCallback, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonMnemonic, setOKButtonText, setOKButtonTooltip, setResizable, setSize, setTitle, setUndecorated, setValidationDelay, setVerticalStretch, shouldAddErrorNearButtons, shouldCloseOnCross, showAndGet, showAndGetOk, startTrackingValidation, toBack, toBeShown, toFront, unregisterKeyboardActions, updateErrorInfo, validatepublic InputDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator, java.lang.String [] options, int defaultOption, java.lang.String comment)
public InputDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator, java.lang.String [] options, int defaultOption)
public InputDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String initialValue, InputValidator validator)
public InputDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
public InputDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
protected javax.swing.Action [] createActions()
DialogWrapperDialogWrapper.getHelpId() returns non-null value.
Each action is represented by JButton created by DialogWrapper.createJButtonForAction(Action).
These buttons are then placed into south panel of dialog.createActions in class MessageDialogDialogWrapper.createSouthPanel(),
DialogWrapper.createJButtonForAction(javax.swing.Action)protected void doOKAction()
DialogWrapperOK_EXIT_CODE. This is convenient place to override functionality of "OK" action.
Note that the method does nothing if "OK" action isn't enabled.doOKAction in class DialogWrapperprotected javax.swing.JComponent createCenterPanel()
DialogWrappernull
value. In this case there will be no options panel.createCenterPanel in class MessageDialogprotected javax.swing.JComponent createNorthPanel()
DialogWrappernull
value. In this case there will be no input panel.createNorthPanel in class DialogWrapperprotected javax.swing.JPanel createMessagePanel()
createMessagePanel in class MessageDialogprotected javax.swing.JComponent createScrollableTextComponent()
protected javax.swing.JComponent createTextComponent()
public javax.swing.text.JTextComponent getTextField()
protected javax.swing.text.JTextComponent createTextFieldComponent()
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent in class DialogWrapperpublic java.lang.String getInputString()