Package javax.help.search

Examples of javax.help.search.SearchEvent


  for (Enumeration enum1 = e.getSearchItems();
       enum1.hasMoreElements(); ) {
      newItems.addElement((SearchItem) enum1.nextElement());
  }

  SearchEvent e2 = new SearchEvent(this, e.getParams(),
             e.isSearchCompleted(),
             newItems);
  for (int i = listeners.length - 2; i >= 0; i -= 2) {
      if (listeners[i] == SearchListener.class) {
    ((SearchListener)listeners[i+1]).itemsFound(e2);
View Full Code Here


     * @param params The parameters to the search.
     */
    protected void fireSearchStarted() {
  debug("fireSearchStarted");
  Object[] listeners = listenerList.getListenerList();
  SearchEvent e = null;

  for (int i = listeners.length - 2; i >= 0; i -= 2) {
      if (listeners[i] == SearchListener.class) {
    if (e == null) {
        e = new SearchEvent(this, searchparams, true);
    }
    ((SearchListener)listeners[i+1]).searchStarted(e);
      }        
  }
    }
View Full Code Here

     * @param params The parameters to the search.
     */
    protected void fireSearchFinished() {
  debug("fireSearchFinished");
  Object[] listeners = listenerList.getListenerList();
  SearchEvent e = null;

  for (int i = listeners.length - 2; i >= 0; i -= 2) {
      if (listeners[i] == SearchListener.class) {
    if (e == null) {
        e = new SearchEvent(this, searchparams, false);
    }
    ((SearchListener)listeners[i+1]).searchFinished(e);
      }        
  }
    }
View Full Code Here

TOP

Related Classes of javax.help.search.SearchEvent

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.