@Deprecated public class ChooseDialog extends MessageDialog
DialogWrapper.CancelAction, DialogWrapper.DialogStyle, DialogWrapper.DialogWrapperAction, DialogWrapper.DialogWrapperExitAction, DialogWrapper.DoNotAskOption, DialogWrapper.IdeModalityType, DialogWrapper.OkActionmyDefaultOptionIndex, 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 |
|---|
ChooseDialog(Project project,
java.awt.Component parent,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String[] values,
java.lang.String initialValue)
Deprecated.
|
ChooseDialog(Project project,
java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String [] values,
java.lang.String initialValue,
java.lang.String [] options,
int defaultOption)
Deprecated.
|
ChooseDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String[] values,
java.lang.String initialValue)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.Action [] |
createActions()
Deprecated.
Creates actions for dialog.
|
protected javax.swing.JComponent |
createCenterPanel()
Deprecated.
Factory method.
|
protected javax.swing.JComponent |
createNorthPanel()
Deprecated.
Factory method.
|
protected void |
doOKAction()
Deprecated.
This method is invoked by default implementation of "OK" action.
|
javax.swing.JComboBox |
getComboBox()
Deprecated.
|
java.lang.String |
getInputString()
Deprecated.
|
javax.swing.JComponent |
getPreferredFocusedComponent()
Deprecated.
|
int |
getSelectedIndex()
Deprecated.
|
void |
setValidator(InputValidator validator)
Deprecated.
|
_init, createIconPanel, createMessageComponent, createMessagePanel, 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 ChooseDialog(Project project, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String [] values, java.lang.String initialValue, java.lang.String [] options, int defaultOption)
public ChooseDialog(Project project, java.awt.Component parent, java.lang.String message, java.lang.String title, javax.swing.Icon icon, java.lang.String[] values, java.lang.String initialValue)
public ChooseDialog(java.lang.String message,
java.lang.String title,
javax.swing.Icon icon,
java.lang.String[] values,
java.lang.String initialValue)
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 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 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 DialogWrapperpublic javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent in class DialogWrapperpublic java.lang.String getInputString()
public int getSelectedIndex()
public javax.swing.JComboBox getComboBox()
public void setValidator(InputValidator validator)