All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jidesoft.swing.SearchableProvider Maven / Gradle / Ivy

There is a newer version: 3.6.18
Show newest version
/*
 * @(#)SearchableProvider.java 10/11/2005
 *
 * Copyright 2002 - 2005 JIDE Software Inc. All rights reserved.
 */
package com.jidesoft.swing;

import java.awt.event.KeyEvent;

/**
 * SearchableProvider is an interface that works with {@link Searchable} to provide
 * different way to supply the searching text.
 */
public interface SearchableProvider {
    /**
     * Gets the searching text.
     *
     * @return the searching text.
     */
    String getSearchingText();

    /**
     * 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.
     *
     * @return true or false.
     */
    boolean isPassive();

    void processKeyEvent(KeyEvent e);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy