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 |
---|---|
static String |
PROP_INPUT_TEXT
Property whose value is the input text, an event is fired
when the input text's value changes,
if enabled using
NotifyDescriptor.InputLine.setInputTextEventEnabled(boolean) . |
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.
|
void |
setInputTextEventEnabled(boolean value)
Enable the
NotifyDescriptor.InputLine.PROP_INPUT_TEXT when the input text is changed. |
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
public static final String PROP_INPUT_TEXT
NotifyDescriptor.InputLine.setInputTextEventEnabled(boolean)
.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, ...)public String getInputText()
public void setInputText(String text)
text
- the new textpublic void setInputTextEventEnabled(boolean value)
NotifyDescriptor.InputLine.PROP_INPUT_TEXT
when the input text is changed.value
- true
if the PROP_INPUT_TEXT
even should be fired
when the input text is modified, false
otherwise.