public abstract static class DialogWrapper.DoNotAskOption.Adapter extends java.lang.Object implements DialogWrapper.DoNotAskOption
DialogWrapper.DoNotAskOption.Adapter| Constructor and Description |
|---|
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeHidden() |
java.lang.String |
getDoNotShowMessage() |
boolean |
isSelectedByDefault()
Tells whether the checkbox should be selected by default or not.
|
boolean |
isToBeShown() |
abstract void |
rememberChoice(boolean isSelected,
int exitCode)
Save the state of the checkbox in the settings, or perform some other related action.
|
void |
setToBeShown(boolean toBeShown,
int exitCode) |
boolean |
shouldSaveOptionsOnCancel() |
public abstract void rememberChoice(boolean isSelected,
int exitCode)
closed.
Cancel
if saving the choice on cancel is disabled (which is by default).isSelected - true if user selected "don't show again".exitCode - the exit code of the dialog.shouldSaveOptionsOnCancel()public boolean isSelectedByDefault()
public boolean shouldSaveOptionsOnCancel()
shouldSaveOptionsOnCancel in interface DialogWrapper.DoNotAskOptionpublic java.lang.String getDoNotShowMessage()
getDoNotShowMessage in interface DialogWrapper.DoNotAskOptionpublic final boolean isToBeShown()
isToBeShown in interface DialogWrapper.DoNotAskOptionpublic final void setToBeShown(boolean toBeShown,
int exitCode)
setToBeShown in interface DialogWrapper.DoNotAskOptiontoBeShown - - if dialog should be shown next time (checkbox selected -> false)exitCode - of corresponding DialogWrapperpublic final boolean canBeHidden()
canBeHidden in interface DialogWrapper.DoNotAskOption