Class InputDialogWithCheckbox
- java.lang.Object
-
- com.intellij.openapi.ui.DialogWrapper
-
- com.intellij.openapi.ui.messages.MessageDialog
-
- com.intellij.openapi.ui.Messages.InputDialog
-
- com.redhat.devtools.intellij.common.ui.InputDialogWithCheckbox
-
public class InputDialogWithCheckbox extends com.intellij.openapi.ui.Messages.InputDialogThis class is a copy of the private Jetbrains class InputDialogWithCheckbox The difference is that this class allows to customize the behavior of the textfield based on the checkbox state (enable/disable it when the checkbox is selected)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.intellij.openapi.ui.DialogWrapper
com.intellij.openapi.ui.DialogWrapper.CancelAction, com.intellij.openapi.ui.DialogWrapper.DialogStyle, com.intellij.openapi.ui.DialogWrapper.DialogWrapperAction, com.intellij.openapi.ui.DialogWrapper.DialogWrapperExitAction, com.intellij.openapi.ui.DialogWrapper.DoNotAskOption, com.intellij.openapi.ui.DialogWrapper.IdeModalityType, com.intellij.openapi.ui.DialogWrapper.OkAction
-
-
Field Summary
-
Fields inherited from class com.intellij.openapi.ui.messages.MessageDialog
myDefaultOptionIndex, myFocusedOptionIndex, myIcon, myMessage, myOptions
-
Fields inherited from class com.intellij.openapi.ui.DialogWrapper
CANCEL_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 Summary
Constructors Constructor Description InputDialogWithCheckbox(java.lang.String message, java.lang.String title, java.lang.String checkboxText, boolean checked, boolean checkboxEnabled, @Nullable javax.swing.Icon icon, @Nullable @NlsSafe java.lang.String initialValue, @Nullable com.intellij.openapi.ui.InputValidator validator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull javax.swing.JPanelcreateMessagePanel()javax.swing.JCheckBoxgetMyCheckBox()java.lang.BooleanisChecked()voidsetDisableTextPanelWithCheckbox()Disable the textbox field when the checkbox is checkedvoidsetEnableTextPanelWithCheckbox()Enable the textbox field when the checkbox is checked-
Methods inherited from class com.intellij.openapi.ui.Messages.InputDialog
createActions, createCenterPanel, createNorthPanel, createScrollableTextComponent, createTextComponent, createTextFieldComponent, doOKAction, getInputString, getPreferredFocusedComponent, getTextField
-
Methods inherited from class com.intellij.openapi.ui.messages.MessageDialog
_init, createIconPanel, createMessageComponent, createRootLayout, dispose, doCancelAction, doCreateCenterPanel, doHelpAction, show
-
Methods inherited from class com.intellij.openapi.ui.DialogWrapper
addKeyListener, addMouseListener, addMouseListener, canRecordDialogId, centerRelativeToParent, cleanupRootPane, cleanupWindowListeners, clickDefaultButton, close, close, continuousValidation, createButtonsPanel, createCancelAction, createContentPane, createContentPaneBorder, createDefaultActions, createDefaultBorder, createDoNotAskCheckbox, createHelpButton, createJButtonForAction, createJButtonForAction, createLeftSideActions, 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, getInitialSize, getLocation, getOKAction, getOwner, getPeer, getPreferredSize, getRootPane, getSize, getStyle, getTitle, getValidationThreadToUse, getVerticalStretch, getWindow, hasErrors, init, initValidation, isAutoAdjustable, isDisposed, isModal, isModalProgress, isMoveHelpButtonLeft, isOK, isOKActionEnabled, isProgressDialog, isResizable, isShowing, isTypeAheadEnabled, isVisible, layoutButtonsPanel, pack, performOKAction, 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, validate
-
-
-
-
Constructor Detail
-
InputDialogWithCheckbox
public InputDialogWithCheckbox(java.lang.String message, java.lang.String title, java.lang.String checkboxText, boolean checked, boolean checkboxEnabled, @Nullable @Nullable javax.swing.Icon icon, @Nullable @NlsSafe @Nullable @NlsSafe java.lang.String initialValue, @Nullable @Nullable com.intellij.openapi.ui.InputValidator validator)
-
-
Method Detail
-
createMessagePanel
@NotNull protected @NotNull javax.swing.JPanel createMessagePanel()
- Overrides:
createMessagePanelin classcom.intellij.openapi.ui.Messages.InputDialog
-
getMyCheckBox
public javax.swing.JCheckBox getMyCheckBox()
-
setEnableTextPanelWithCheckbox
public void setEnableTextPanelWithCheckbox()
Enable the textbox field when the checkbox is checked
-
setDisableTextPanelWithCheckbox
public void setDisableTextPanelWithCheckbox()
Disable the textbox field when the checkbox is checked
-
isChecked
public java.lang.Boolean isChecked()
-
-