public static class NotifyDescriptor.InputLine extends NotifyDescriptor
NotifyDescriptor.ComposedInput, NotifyDescriptor.Confirmation, NotifyDescriptor.Exception, NotifyDescriptor.InputLine, NotifyDescriptor.Message, NotifyDescriptor.PasswordLine, NotifyDescriptor.QuickPick
Modifier and Type | Field and Description |
---|---|
protected JTextField |
textField
The text field used to enter the input.
|
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 |
---|
InputLine(String text,
String title)
Construct dialog with the specified title and label text.
|
InputLine(String text,
String title,
int optionType,
int messageType)
Construct dialog with the specified title, label text, option and
message types.
|
Modifier and Type | Method and Description |
---|---|
protected Component |
createDesign(String text)
Make a component representing the input line.
|
String |
getInputText()
Get the text which the user typed into the input line.
|
void |
setInputText(String text)
Set the text on the input line.
|
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
protected JTextField textField
public InputLine(String text, String title)
text
- label texttitle
- title of the dialogpublic InputLine(String text, String title, int optionType, int messageType)
text
- label texttitle
- title of the dialogoptionType
- option type (ok, cancel, ...)messageType
- message type (question, ...)