Interface EntryCompletion.OnInsertPrefix

Enclosing class:
EntryCompletion
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface EntryCompletion.OnInsertPrefix
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Emitted when the inline autocompletion is triggered.
  • Method Details

    • onInsertPrefix

      boolean onInsertPrefix(@Nonnull Str prefix)
      Emitted when the inline autocompletion is triggered.

      The default behaviour is to make the entry display the
      whole prefix and select the newly inserted part.

      Applications may connect to this signal in order to insert only a
      smaller part of the @prefix into the entry - e.g. the entry used in
      the `GtkFileChooser` inserts only the part of the prefix up to the
      next '/'.
      Parameters:
      prefix - the common prefix of all possible completions
      Returns:
      %TRUE if the signal has been handled