public static class NotifyDescriptor.InputLine extends NotifyDescriptor
NotifyDescriptor.Confirmation, NotifyDescriptor.Exception, NotifyDescriptor.InputLine, NotifyDescriptor.Message| Modifier and Type | Field | Description |
|---|---|---|
protected javax.swing.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 | Description |
|---|---|
InputLine(java.lang.String text,
java.lang.String title) |
Construct dialog with the specified title and label text.
|
InputLine(java.lang.String text,
java.lang.String title,
int optionType,
int messageType) |
Construct dialog with the specified title, label text, option and
message types.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.awt.Component |
createDesign(java.lang.String text) |
Make a component representing the input line.
|
java.lang.String |
getInputText() |
Get the text which the user typed into the input line.
|
void |
setInputText(java.lang.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, setValueprotected javax.swing.JTextField textField
public InputLine(java.lang.String text,
java.lang.String title)
text - label texttitle - title of the dialogpublic InputLine(java.lang.String text,
java.lang.String title,
int optionType,
int messageType)
text - label texttitle - title of the dialogoptionType - option type (ok, cancel, ...)messageType - message type (question, ...)public java.lang.String getInputText()
public void setInputText(java.lang.String text)
text - the new textprotected java.awt.Component createDesign(java.lang.String text)
text - a label for the input lineBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.