Class ComboCompletionDialog

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

public class ComboCompletionDialog extends JDialog implements EscapeListener
See Also:
  • Field Details

  • Constructor Details

    • ComboCompletionDialog

      public ComboCompletionDialog(JTextComponent target)
      Creates new form ComboCompletionDialog
      Parameters:
      target -
  • Method Details

    • displayFor

      public void displayFor(String abbrev, List<String> items)
      Display the Completion Dialog with initial abbrev and using the given items The dialog is responsible for showing itself and for updating the target with the text, depending on user actions. The dialog will be aligned to the selectionStart of the target component and when a selection is made, replaceSelection will be called on dialog
      Parameters:
      abbrev -
      items -
    • escapePressed

      public void escapePressed()
      Description copied from interface: EscapeListener
      This method will be called when ESC key is pressed.
      Specified by:
      escapePressed in interface EscapeListener