org.xnap.plugin.overnet
Class OvernetPlugin

java.lang.Object
  extended by org.xnap.plugin.AbstractPlugin
      extended by org.xnap.plugin.overnet.OvernetPlugin
All Implemented Interfaces:
java.util.EventListener, StateListener, Plugin, SearchProvider

public class OvernetPlugin
extends AbstractPlugin
implements SearchProvider, StateListener

Provides a plugin that can control an overnet core.

OvernetPlugin follows the singleton pattern.


Field Summary
static javax.swing.Icon ICON_16
           
static java.lang.String ICON_FILENAME
           
static java.lang.String NEW_COMMANDLINE_OPTION
           
static java.lang.String NEW_COMMANDLINE_VERSION
           
static java.lang.String OLD_COMMANDLINE_OPTION
           
 
Constructor Summary
OvernetPlugin()
           
 
Method Summary
static java.lang.String getCommandLineOptions(java.lang.String command)
           
 OvernetCore getCore()
           
static OvernetPlugin getInstance()
           
static MessageHandler getMessageHandler()
           
 java.lang.String getName()
          Returns the name of the search network that is displayed to the user.
 MediaType[] getSupportedMediaTypes()
          Returns an array of MediaType objects that are supported by the provider.
 Search search(SearchFilter filter)
          Invoked when a search is requested.
 void start()
          Called each time the plugin is enabled.
 void startGUI()
          Called each time the gui part of the plugin is enabled.
 void stateChanged(StateEvent event)
          Implements the StateListener interface.
 void stop()
          Called each time the plugin is disabled.
 void stopGUI()
          Called each time the gui part of the plugin is disabled.
 
Methods inherited from class org.xnap.plugin.AbstractPlugin
getInfo, setInfo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ICON_FILENAME

public static final java.lang.String ICON_FILENAME
See Also:
Constant Field Values

ICON_16

public static final javax.swing.Icon ICON_16

NEW_COMMANDLINE_VERSION

public static final java.lang.String NEW_COMMANDLINE_VERSION
See Also:
Constant Field Values

OLD_COMMANDLINE_OPTION

public static final java.lang.String OLD_COMMANDLINE_OPTION
See Also:
Constant Field Values

NEW_COMMANDLINE_OPTION

public static final java.lang.String NEW_COMMANDLINE_OPTION
See Also:
Constant Field Values
Constructor Detail

OvernetPlugin

public OvernetPlugin()
Method Detail

getCore

public OvernetCore getCore()

getInstance

public static OvernetPlugin getInstance()

getName

public java.lang.String getName()
Description copied from interface: SearchProvider
Returns the name of the search network that is displayed to the user.

Specified by:
getName in interface SearchProvider

start

public void start()
Description copied from interface: Plugin
Called each time the plugin is enabled.

Specified by:
start in interface Plugin

startGUI

public void startGUI()
Description copied from interface: Plugin
Called each time the gui part of the plugin is enabled.

Specified by:
startGUI in interface Plugin

getCommandLineOptions

public static java.lang.String getCommandLineOptions(java.lang.String command)

getMessageHandler

public static MessageHandler getMessageHandler()

stateChanged

public void stateChanged(StateEvent event)
Implements the StateListener interface.

Specified by:
stateChanged in interface StateListener

stop

public void stop()
Description copied from interface: Plugin
Called each time the plugin is disabled.

Specified by:
stop in interface Plugin

stopGUI

public void stopGUI()
Description copied from interface: Plugin
Called each time the gui part of the plugin is disabled.

Specified by:
stopGUI in interface Plugin

getSupportedMediaTypes

public MediaType[] getSupportedMediaTypes()
Description copied from interface: SearchProvider
Returns an array of MediaType objects that are supported by the provider.

Specified by:
getSupportedMediaTypes in interface SearchProvider

search

public Search search(SearchFilter filter)
Description copied from interface: SearchProvider
Invoked when a search is requested.

Specified by:
search in interface SearchProvider


Copyright © 2001-2005 XNap Team. All Rights Reserved.