Class NotifyDescriptor.InputLine
java.lang.Object
org.openide.NotifyDescriptor
org.openide.NotifyDescriptor.InputLine
- Direct Known Subclasses:
NotifyDescriptor.PasswordLine
- Enclosing class:
NotifyDescriptor
Notification providing for a line of text input.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openide.NotifyDescriptor
NotifyDescriptor.ComposedInput, NotifyDescriptor.Confirmation, NotifyDescriptor.Exception, NotifyDescriptor.InputLine, NotifyDescriptor.Message, NotifyDescriptor.PasswordLine, NotifyDescriptor.QuickPick
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Property whose value is the input text, an event is fired when the input text's value changes, if enabled usingsetInputTextEventEnabled(boolean)
.protected JTextField
The text field used to enter the input.Fields inherited from class org.openide.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Component
createDesign
(String text) Make a component representing the input line.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 thePROP_INPUT_TEXT
when the input text is changed.Methods inherited from class org.openide.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
-
Field Details
-
PROP_INPUT_TEXT
Property whose value is the input text, an event is fired when the input text's value changes, if enabled usingsetInputTextEventEnabled(boolean)
.- Since:
- 7.70
- See Also:
-
textField
The text field used to enter the input.
-
-
Constructor Details
-
InputLine
-
InputLine
Construct dialog with the specified title, label text, option and message types.- Parameters:
text
- label texttitle
- title of the dialogoptionType
- option type (ok, cancel, ...)messageType
- message type (question, ...)
-
-
Method Details
-
getInputText
Get the text which the user typed into the input line.- Returns:
- the text entered by the user
-
setInputText
Set the text on the input line.- Parameters:
text
- the new text
-
setInputTextEventEnabled
public void setInputTextEventEnabled(boolean value) Enable thePROP_INPUT_TEXT
when the input text is changed.- Parameters:
value
-true
if thePROP_INPUT_TEXT
even should be fired when the input text is modified,false
otherwise.- Since:
- 7.70
-
createDesign
-