Package javax.help.search

Examples of javax.help.search.SearchQuery


    if (queries == null) {
        continue;
    }
    for (Enumeration e = queries.elements();
         e.hasMoreElements(); ) {
        SearchQuery query = (SearchQuery) e.nextElement();
        if (query.isActive()) {
      debug ("queries are active waiting to stop");
      queriesActive = true;
        }
    }
    if (queriesActive) {
View Full Code Here


      }

      // Loop through all the queries and see if anyone is alive
      for (Enumeration e = queries.elements();
     e.hasMoreElements(); ) {
    SearchQuery query = (SearchQuery) e.nextElement();
    if (query.isActive()) {
        return true;
    }
      }

      // Didn't find anyone alive so we're not alive
View Full Code Here

  public SearchEngine getSearchEngine() {
      return mhs;
  }

  public synchronized void itemsFound(SearchEvent e) {
      SearchQuery queryin = (SearchQuery) e.getSource();

      if (stopQuery) {
    return;
      }

      // Loop through all the queries and match this one
      if (queries != null) {
    Enumeration enum1 = queries.elements();
    while (enum1.hasMoreElements()) {
        SearchQuery query = (SearchQuery) enum1.nextElement();
        if (query == queryin) {
      // Redirect any Events as if they were from me
      fireItemsFound(e);
        }
    }
View Full Code Here

      // the listeners the search was started so we don't have
      // to do anything else
  }

  public synchronized void searchFinished(SearchEvent e) {
      SearchQuery queryin = (SearchQuery) e.getSource();
   
      // Loop through all the queries and match this one
      if (queries != null) {
    Enumeration enum1 = queries.elements();
    while (enum1.hasMoreElements()) {
        SearchQuery query = (SearchQuery) enum1.nextElement();
        if (query == queryin) {
      queryin.removeSearchListener(this);
      queries.removeElement(query);
        }
    }
View Full Code Here

TOP

Related Classes of javax.help.search.SearchQuery

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.