org.datamanager.simpleton
Class WebAndNewsSearchSimpleton

java.lang.Object
  |
  +--org.datamanager.kernel.Simpleton
        |
        +--org.datamanager.simpleton.WebAndNewsSearchSimpleton
All Implemented Interfaces:
ActionListener, EventListener

public class WebAndNewsSearchSimpleton
extends Simpleton
implements ActionListener

This class displays to the user several advanced search options. At the moment those advanced options are: Search the web, and new group search. For these options the user must specify certain information.

Author:
Bryan Dawson (bdawson@indiana.edu)
, Gordon Murphy (gpmurphy@indiana.edu) Modified to be a Simpleton that can be run to do web and newsgroup searches. - Matthew Farrellee

Nested Class Summary
 
Nested classes inherited from class org.datamanager.kernel.Simpleton
Simpleton.Information, Simpleton.Priority
 
Field Summary
static String DEFAULT_STRING
           
static int NUM_COLUMNS
           
 
Constructor Summary
WebAndNewsSearchSimpleton()
          This constructor uses the default String of "" to call the other constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
          From the ActionListener interface.
 void execute()
          This method sends the events to the KernelProxy to be added to the pool, so that either a web search or news group is downloaded, or both.
 void exit()
           
 String getSearchEngine()
          Returns the search engine selected by the user.
 void process()
          Performs the work of this Simpleton.
 void setNewsFields()
          Sets the fields enabled based on the state of the Newsgroup Download check box.
 void setWebFields()
          Sets the fields enabled based on the state of the Web Search check box.
 
Methods inherited from class org.datamanager.kernel.Simpleton
clone, getInformation, getPriority, setInformation, setPriority, start
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_STRING

public static final String DEFAULT_STRING
See Also:
Constant Field Values

NUM_COLUMNS

public static final int NUM_COLUMNS
See Also:
Constant Field Values
Constructor Detail

WebAndNewsSearchSimpleton

public WebAndNewsSearchSimpleton()
This constructor uses the default String of "" to call the other constructor.

Method Detail

process

public void process()
Description copied from class: Simpleton
Performs the work of this Simpleton. Simpleton implementation must override this class.

Specified by:
process in class Simpleton

actionPerformed

public void actionPerformed(ActionEvent event)
From the ActionListener interface. Determines which button was pushed and does the corresponing action.

Specified by:
actionPerformed in interface ActionListener
Parameters:
event - Fired when one of the buttons is pushed

setWebFields

public void setWebFields()
Sets the fields enabled based on the state of the Web Search check box.


setNewsFields

public void setNewsFields()
Sets the fields enabled based on the state of the Newsgroup Download check box.


execute

public void execute()
This method sends the events to the KernelProxy to be added to the pool, so that either a web search or news group is downloaded, or both.


getSearchEngine

public String getSearchEngine()
Returns the search engine selected by the user.

Returns:
The selected search engine.

exit

public void exit()


See the Helium Website