Class NotifyDescriptor.Confirmation
java.lang.Object
org.openide.NotifyDescriptor
org.openide.NotifyDescriptor.Confirmation
- Direct Known Subclasses:
NotifyDescriptor.Exception
- Enclosing class:
NotifyDescriptor
Provides a description of a possible action and requests confirmation from the user before proceeding.
This should be used to alert the user to a condition
or situation that requires the user's decision before proceeding, such
as an impending action with potentially destructive or irreversible
consequences. It is conventionally in the form of a question: for example,
"Save changes to TestForm?"
-
Nested Class Summary
Nested classes/interfaces inherited from class NotifyDescriptor
NotifyDescriptor.ComposedInput, NotifyDescriptor.Confirmation, NotifyDescriptor.Exception, NotifyDescriptor.InputLine, NotifyDescriptor.Message, NotifyDescriptor.PasswordLine, NotifyDescriptor.QuickPick -
Field Summary
Fields inherited from class NotifyDescriptor
CANCEL_OPTION, CLOSED_OPTION, DEFAULT_OPTION, ERROR_MESSAGE, INFORMATION_MESSAGE, NO_OPTION, OK_CANCEL_OPTION, OK_OPTION, PLAIN_MESSAGE, PROP_DETAIL, PROP_ERROR_NOTIFICATION, PROP_INFO_NOTIFICATION, PROP_MESSAGE, PROP_MESSAGE_TYPE, PROP_NO_DEFAULT_CLOSE, PROP_OPTION_TYPE, PROP_OPTIONS, PROP_TITLE, PROP_VALID, PROP_VALUE, PROP_WARNING_NOTIFICATION, QUESTION_MESSAGE, WARNING_MESSAGE, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION -
Constructor Summary
ConstructorsConstructorDescriptionConfirmation(Object message) Create a yes/no/cancel question with default title.Confirmation(Object message, int optionType) Create a question with default title.Confirmation(Object message, int optionType, int messageType) Create a confirmation with default title.Confirmation(Object message, String title) Create a yes/no/cancel question.Confirmation(Object message, String title, int optionType) Create a question.Confirmation(Object message, String title, int optionType, int messageType) Create a confirmation. -
Method Summary
Methods inherited from class NotifyDescriptor
addPropertyChangeListener, createNotificationLineSupport, firePropertyChange, getAdditionalOptions, getDefaultValue, getMessage, getMessageType, getNotificationLineSupport, getOptions, getOptionType, getTitle, getTitleForType, getValue, initialize, isNoDefaultClose, isValid, removePropertyChangeListener, setAdditionalOptions, setMessage, setMessageType, setNoDefaultClose, setOptions, setOptionType, setTitle, setValid, setValue
-
Constructor Details
-
Confirmation
Create a yes/no/cancel question with default title.- Parameters:
message- the message object- See Also:
-
Confirmation
-
Confirmation
Create a question with default title.- Parameters:
message- the message objectoptionType- the type of options to display to the user- See Also:
-
Confirmation
-
Confirmation
Create a confirmation with default title.- Parameters:
message- the message objectoptionType- the type of options to display to the usermessageType- the type of message to use- See Also:
-
Confirmation
-