Interface SearchableProvider

  • All Known Implementing Classes:
    SearchableBar

    public interface SearchableProvider
    SearchableProvider is an interface that works with Searchable to provide different way to supply the searching text.
    • Method Detail

      • getSearchingText

        java.lang.String getSearchingText()
        Gets the searching text.
        Returns:
        the searching text.
      • isPassive

        boolean isPassive()
        Returns true if the SearchableProvider doesn't accept keyboard input directly. In this case, the Searchable component (such as JTextComponent, JTable, JList or JComboBox) will accept the keys so it returns true. However in SearchableBar case, the text field on SearchableBar will accept the keys so it returns false.
        Returns:
        true or false.
      • processKeyEvent

        void processKeyEvent​(java.awt.event.KeyEvent e)