com.intellij.openapi.ui
Class Messages.InputDialog
java.lang.Object
com.intellij.openapi.ui.DialogWrapper
com.intellij.openapi.ui.Messages.InputDialog
- Enclosing class:
- Messages
protected static class Messages.InputDialog
- extends DialogWrapper
|
Constructor Summary |
Messages.InputDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
|
Messages.InputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
|
Messages.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)
|
Messages.InputDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
|
| Methods inherited from class com.intellij.openapi.ui.DialogWrapper |
addKeyListener, addMouseListener, addMouseListener, centerRelativeToParent, clickDefaultButton, close, createContentPane, createContentPaneBorder, createDefaultActions, createJButtonForAction, createLeftSideActions, createSouthPanel, createTitlePane, dispose, doHelpAction, doOKAction, getCancelAction, getContentPane, getDimensionKey, getDimensionServiceKey, getExitCode, getHelpAction, getHorizontalStretch, getInitialLocation, getLocation, getOKAction, getOwner, getPreferredSize, getRootPane, getSize, getTitle, getVerticalStretch, getWindow, init, isModalProgress, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isVisible, pack, repaint, setButtonsAlignment, setButtonsMargin, setCancelButtonIcon, setCancelButtonText, setCrossClosesWindow, setHorizontalStretch, setLocation, setLocation, setModal, setOKActionEnabled, setOKButtonIcon, setOKButtonText, setResizable, setSize, setTitle, setUndecorated, setVerticalStretch, shouldCloseOnCross, show, toBack, toFront, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Messages.InputDialog
public Messages.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)
Messages.InputDialog
public Messages.InputDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
Messages.InputDialog
public Messages.InputDialog(java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
Messages.InputDialog
public Messages.InputDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String initialValue,
InputValidator validator)
createActions
protected javax.swing.Action[] createActions()
- Description copied from class:
DialogWrapper
- This is factory method which creates action of dialog. Each action is represented
by
JButton which is created by createJButtonForAction(Action)
method. These buttons are places into panel which is created by createButtonsPanel
method. Therefore you have anough ways to customise the dialog by ovverriding of
createActions(), createButtonsPanel() and
createJButtonForAction(Action) methods. By default the createActions()
method returns "OK" and "Cancel" action.
- See Also:
DialogWrapper.createSouthPanel(),
DialogWrapper.createJButtonForAction(javax.swing.Action)
createNorthPanel
protected javax.swing.JComponent createNorthPanel()
- Description copied from class:
DialogWrapper
- Factory method. It creates the panel located at the
north of the dialog's content pane. The implementation can return
null
value. In this case there will be no input panel.
getTextField
public javax.swing.JTextField getTextField()
getPreferredFocusedComponent
public javax.swing.JComponent getPreferredFocusedComponent()
- Overrides:
getPreferredFocusedComponent in class DialogWrapper
- Returns:
- component which should be focused when the dialog appears
on the screen.
getInputString
public java.lang.String getInputString()