com.intellij.openapi.ui
Class Messages.InputDialog

java.lang.Object
  extended by com.intellij.openapi.ui.DialogWrapper
      extended by com.intellij.openapi.ui.Messages.InputDialog
Enclosing class:
Messages

protected static class Messages.InputDialog
extends DialogWrapper


Field Summary
 
Fields inherited from class com.intellij.openapi.ui.DialogWrapper
CANCEL_EXIT_CODE, DEFAULT_ACTION, NEXT_USER_EXIT_CODE, OK_EXIT_CODE
 
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)
           
 
Method Summary
protected  javax.swing.Action[] createActions()
          This is factory method which creates action of dialog.
protected  javax.swing.JComponent createNorthPanel()
          Factory method.
 java.lang.String getInputString()
           
 javax.swing.JComponent getPreferredFocusedComponent()
           
 javax.swing.JTextField getTextField()
           
 
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
 

Constructor Detail

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)
Method Detail

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()