Class NotifyDescriptor.InputLine

java.lang.Object
org.openide.NotifyDescriptor
org.openide.NotifyDescriptor.InputLine
Direct Known Subclasses:
NotifyDescriptor.PasswordLine
Enclosing class:
NotifyDescriptor

public static class NotifyDescriptor.InputLine extends NotifyDescriptor
Notification providing for a line of text input.
  • Field Details

  • Constructor Details

    • InputLine

      public InputLine(String text, String title)
      Construct dialog with the specified title and label text.
      Parameters:
      text - label text
      title - title of the dialog
    • InputLine

      public InputLine(String text, String title, int optionType, int messageType)
      Construct dialog with the specified title, label text, option and message types.
      Parameters:
      text - label text
      title - title of the dialog
      optionType - option type (ok, cancel, ...)
      messageType - message type (question, ...)
  • Method Details

    • getInputText

      public String getInputText()
      Get the text which the user typed into the input line.
      Returns:
      the text entered by the user
    • setInputText

      public void setInputText(String text)
      Set the text on the input line.
      Parameters:
      text - the new text
    • setInputTextEventEnabled

      public void setInputTextEventEnabled(boolean value)
      Enable the PROP_INPUT_TEXT when the input text is changed.
      Parameters:
      value - true if the PROP_INPUT_TEXT even should be fired when the input text is modified, false otherwise.
      Since:
      7.70
    • createDesign

      protected Component createDesign(String text)
      Make a component representing the input line.
      Parameters:
      text - a label for the input line
      Returns:
      the component