SearchPanel.java

Go to the documentation of this file.
00001 /*
00002  * SearchPanel.java
00003  *
00004  * Created on 7 octobre 2003, 16:58
00005  *  
00006  *  Copyright (C) 2003 Philippe MOULIN
00007  *  www.net2map.org
00008  *
00009  *  This program is free software; you can redistribute it and/or
00010  *  modify it under the terms of the GNU General Public License
00011  *  as published by the Free Software Foundation; either version 2
00012  *  of the License, or (at your option) any later version.
00013  *
00014  *  This program is distributed in the hope that it will be useful,
00015  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  *  GNU Lesser General Public License for more details.
00018  *
00019  *  You should have received a copy of the GNU General Public License
00020  *  along with this program; if not, write to the Free Software
00021  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00022  */
00023 
00024 package org.net2map.pov.gui;
00025 import org.net2map.pov.client.*;
00026 
00031 public class SearchPanel 
00032        extends org.net2map.pov.gui.Panel
00033 {
00034     public static org.apache.log4j.Logger logger = 
00035     org.apache.log4j.Logger.getLogger(SearchPanel.class.getName());
00036     RootWindowGUI theRootWindowGUI = null;
00037     org.net2map.pov.p2p.services.searchService.Processor theSearchProcessor;
00039     public SearchPanel()
00040     {
00041         super("SearchPanel","the search panel");
00042         logger.setLevel(org.apache.log4j.Level.DEBUG);
00043         logger.warn("Creating...");        
00044         try
00045         {
00046             theRootWindowGUI = new RootWindowGUI();
00047             add(theRootWindowGUI);
00048         }
00049         catch (Exception theException)
00050         {  
00051             logger.fatal("Exception" + theException,theException);
00052         }
00053         theSearchProcessor = new org.net2map.pov.p2p.services.searchService.Processor();
00054         theRootWindowGUI.setSearchProcessor(theSearchProcessor);
00055         //theSearchProcessor.getResponseProcessor().setResultListener(this);
00056         logger.warn("...created");
00057     }
00058 
00059     public void setSearchProcessor(org.net2map.pov.p2p.services.searchService.Processor paramSearchProcessor)
00060     {
00061         theRootWindowGUI.setSearchProcessor(paramSearchProcessor);
00062     }
00063     
00064     public void processResult(org.net2map.pov.documentsManager.PovDocumentsSet theResult, org.net2map.pov.p2p.RemoteNode theSender)
00065     {
00066     }
00067     
00068 }
Accueil | Téléchargement | Manuel | Doc. technique | Sources CVS | Faq | Nous contacter
©2003 - All Rights Reserved