public static final class NotifyDescriptor.ComposedInput extends NotifyDescriptor
Modifier and Type | Class and Description |
---|---|
static interface |
NotifyDescriptor.ComposedInput.Callback
Callback used to lazy create chained inputs.
|
NotifyDescriptor.ComposedInput, NotifyDescriptor.Confirmation, NotifyDescriptor.Exception, NotifyDescriptor.InputLine, NotifyDescriptor.Message, NotifyDescriptor.PasswordLine, NotifyDescriptor.QuickPick
Modifier and Type | Field and Description |
---|---|
static String |
PROP_ESTIMATED_NUMBER_OF_INPUTS
Name of property for the estimated number of chained inputs.
|
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 and Description |
---|
ComposedInput(String title,
int estimatedNumberOfInputs,
NotifyDescriptor.ComposedInput.Callback callback)
Construct dialog with the specified title and chained inputs.
|
Modifier and Type | Method and Description |
---|---|
NotifyDescriptor |
createInput(int number)
Lazy creates chained input of the given ordinal.
|
int |
getEstimatedNumberOfInputs()
Estimated number of chained inputs.
|
NotifyDescriptor[] |
getInputs()
Returns all created chained inputs.
|
Object |
getMessage()
Get the message object.
|
void |
setEstimatedNumberOfInputs(int estimatedNumberOfInputs)
Set estimated number of chained inputs.
|
addPropertyChangeListener, createNotificationLineSupport, firePropertyChange, getAdditionalOptions, getDefaultValue, getMessageType, getNotificationLineSupport, getOptions, getOptionType, getTitle, getTitleForType, getValue, initialize, isNoDefaultClose, isValid, removePropertyChangeListener, setAdditionalOptions, setMessage, setMessageType, setNoDefaultClose, setOptions, setOptionType, setTitle, setValid, setValue
public static final String PROP_ESTIMATED_NUMBER_OF_INPUTS
public ComposedInput(String title, int estimatedNumberOfInputs, NotifyDescriptor.ComposedInput.Callback callback)
title
- title of the dialogestimatedNumberOfInputs
- estimated number of chained inputscallback
- callback used to create chained inputspublic int getEstimatedNumberOfInputs()
public void setEstimatedNumberOfInputs(int estimatedNumberOfInputs)
estimatedNumberOfInputs
- estimated number of chained inputspublic NotifyDescriptor createInput(int number)
number
- input number from interval <1, totalInputs+1>public NotifyDescriptor[] getInputs()
public Object getMessage()
NotifyDescriptor
getMessage
in class NotifyDescriptor
Object
that is to be reportedNotifyDescriptor.setMessage(java.lang.Object)