Class NoteInputDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, IExtendedDialog

public class NoteInputDialog extends ExtendedDialog
Class to show user input dialog for notes. It sets up a simple label and text area to prompt for user input.
Since:
7720
See Also:
  • Field Details

  • Constructor Details

    • NoteInputDialog

      public NoteInputDialog(Component parent, String title, String buttonText)
      Construct the dialog with a title and button text. A cancel button is automatically added
      Parameters:
      parent - The parent GUI element
      title - Translated string to display in the dialog's title bar
      buttonText - Translated string to display on the action button
  • Method Details

    • showNoteDialog

      public void showNoteDialog(String message, Icon icon)
      Displays the dialog to the user
      Parameters:
      message - Translated message to display to the user as input prompt
      icon - Icon to display in the action button
    • showNoteDialog

      public void showNoteDialog(String message, Icon icon, String text)
      Displays the dialog to the user
      Parameters:
      message - Translated message to display to the user as input prompt
      icon - Icon to display in the action button
      text - Default text of the note's comment
      Since:
      18839
    • getInputText

      public String getInputText()
      Get the content of the text area
      Returns:
      Text input by user