com.intellij.openapi.util
Class PasswordPromptDialog

java.lang.Object
  extended by com.intellij.openapi.ui.DialogWrapper
      extended by com.intellij.openapi.util.PasswordPromptDialog

public class PasswordPromptDialog
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
PasswordPromptDialog(java.lang.String prompt, java.lang.String title, java.lang.String defaultValue)
           
 
Method Summary
protected  javax.swing.JComponent createCenterPanel()
          Factory method.
protected  javax.swing.JComponent createNorthPanel()
          Factory method.
 java.lang.String getPassword()
           
 javax.swing.JComponent getPreferredFocusedComponent()
           
 
Methods inherited from class com.intellij.openapi.ui.DialogWrapper
addKeyListener, addMouseListener, addMouseListener, centerRelativeToParent, clickDefaultButton, close, createActions, createContentPane, createContentPaneBorder, createDefaultActions, createJButtonForAction, createLeftSideActions, createSouthPanel, createTitlePane, dispose, doCancelAction, 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

PasswordPromptDialog

public PasswordPromptDialog(java.lang.String prompt,
                            java.lang.String title,
                            @Nullable
                            java.lang.String defaultValue)
Method Detail

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.

Overrides:
createNorthPanel in class DialogWrapper

createCenterPanel

protected javax.swing.JComponent createCenterPanel()
Description copied from class: DialogWrapper
Factory method. It creates panel with dialog options. Options panel is located at the center of the dialog's content pane. The implementation can return null value. In this case there will be no options panel.

Specified by:
createCenterPanel in class DialogWrapper

getPreferredFocusedComponent

public javax.swing.JComponent getPreferredFocusedComponent()
Overrides:
getPreferredFocusedComponent in class DialogWrapper
Returns:
component which should be focused when the dialog appears on the screen.

getPassword

public java.lang.String getPassword()