org.xnap.plugin.freeway
Class FreewayPlugin

java.lang.Object
  extended by org.xnap.plugin.AbstractPlugin
      extended by org.xnap.plugin.freeway.FreewayPlugin
All Implemented Interfaces:
org.gnu.freeway.protocol.afs.swing.SController, org.gnu.freeway.util.ui.Controller, Plugin, SearchProvider

public class FreewayPlugin
extends AbstractPlugin
implements org.gnu.freeway.protocol.afs.swing.SController, SearchProvider


Field Summary
static javax.swing.Icon ICON_16
           
static java.lang.String ICON_FILENAME
           
 
Fields inherited from interface org.gnu.freeway.protocol.afs.swing.SController
QUIT_EVENT
 
Constructor Summary
FreewayPlugin()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener arg0)
           
 void addPropertyChangeListener(java.lang.String arg0, java.beans.PropertyChangeListener arg1)
           
 org.gnu.freeway.DaemonSocket connect()
           
 void displayDirectory(java.lang.String arg0, org.gnu.freeway.protocol.afs.esed2.NNode arg1)
           
 void download(org.gnu.freeway.protocol.afs.esed2.NNode arg0)
           
 void enterCritical()
           
 void err(java.lang.String arg0, java.lang.Throwable arg1)
           
 org.gnu.freeway.Application getApplication()
           
 java.io.File getCache()
           
static FreewayPlugin getInstance()
           
 java.lang.String getName()
          Returns the name of the search network that is displayed to the user.
 org.gnu.freeway.protocol.afs.esed2.Policy getPolicy()
           
 org.gnu.freeway.Prefs getPreferences()
           
 org.gnu.freeway.util.ui.UIResources getResources()
           
 MediaType[] getSupportedMediaTypes()
          Returns an array of MediaType objects that are supported by the provider.
 void guiMessage(java.lang.String arg0)
           
 void infoMessage(boolean arg0, java.lang.String arg1)
           
 void leaveCritical()
           
 void log(java.util.logging.Level arg0, java.lang.String arg1)
           
 void refreshMenus()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener arg0)
           
 void removePropertyChangeListener(java.lang.String arg0, java.beans.PropertyChangeListener arg1)
           
 Search search(SearchFilter filter)
          Invoked when a search is requested.
 org.gnu.freeway.util.Service service(java.lang.Class c)
           
 void showStats()
           
 void start()
          Called each time the plugin is enabled.
 void startGUI()
          Called each time the gui part of the plugin is enabled.
 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
Constructor Detail

FreewayPlugin

public FreewayPlugin()
Method Detail

getInstance

public static FreewayPlugin getInstance()

getApplication

public org.gnu.freeway.Application getApplication()
Specified by:
getApplication in interface org.gnu.freeway.util.ui.Controller

getCache

public java.io.File getCache()
Specified by:
getCache in interface org.gnu.freeway.protocol.afs.swing.SController

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

getPolicy

public org.gnu.freeway.protocol.afs.esed2.Policy getPolicy()
Specified by:
getPolicy in interface org.gnu.freeway.protocol.afs.swing.SController

getPreferences

public org.gnu.freeway.Prefs getPreferences()
Specified by:
getPreferences in interface org.gnu.freeway.protocol.afs.swing.SController

getResources

public org.gnu.freeway.util.ui.UIResources getResources()
Specified by:
getResources in interface org.gnu.freeway.protocol.afs.swing.SController

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

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener arg0)
Specified by:
addPropertyChangeListener in interface org.gnu.freeway.protocol.afs.swing.SController

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String arg0,
                                      java.beans.PropertyChangeListener arg1)
Specified by:
addPropertyChangeListener in interface org.gnu.freeway.protocol.afs.swing.SController

connect

public org.gnu.freeway.DaemonSocket connect()
Specified by:
connect in interface org.gnu.freeway.protocol.afs.swing.SController

displayDirectory

public void displayDirectory(java.lang.String arg0,
                             org.gnu.freeway.protocol.afs.esed2.NNode arg1)
Specified by:
displayDirectory in interface org.gnu.freeway.protocol.afs.swing.SController

download

public void download(org.gnu.freeway.protocol.afs.esed2.NNode arg0)
Specified by:
download in interface org.gnu.freeway.protocol.afs.swing.SController

enterCritical

public void enterCritical()
Specified by:
enterCritical in interface org.gnu.freeway.protocol.afs.swing.SController

err

public void err(java.lang.String arg0,
                java.lang.Throwable arg1)
Specified by:
err in interface org.gnu.freeway.protocol.afs.swing.SController

guiMessage

public void guiMessage(java.lang.String arg0)
Specified by:
guiMessage in interface org.gnu.freeway.protocol.afs.swing.SController

infoMessage

public void infoMessage(boolean arg0,
                        java.lang.String arg1)
Specified by:
infoMessage in interface org.gnu.freeway.protocol.afs.swing.SController

leaveCritical

public void leaveCritical()
Specified by:
leaveCritical in interface org.gnu.freeway.protocol.afs.swing.SController

log

public void log(java.util.logging.Level arg0,
                java.lang.String arg1)
Specified by:
log in interface org.gnu.freeway.protocol.afs.swing.SController

refreshMenus

public void refreshMenus()
Specified by:
refreshMenus in interface org.gnu.freeway.protocol.afs.swing.SController

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener arg0)
Specified by:
removePropertyChangeListener in interface org.gnu.freeway.protocol.afs.swing.SController

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String arg0,
                                         java.beans.PropertyChangeListener arg1)
Specified by:
removePropertyChangeListener in interface org.gnu.freeway.protocol.afs.swing.SController

search

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

Specified by:
search in interface SearchProvider

service

public org.gnu.freeway.util.Service service(java.lang.Class c)
Specified by:
service in interface org.gnu.freeway.protocol.afs.swing.SController

showStats

public void showStats()
Specified by:
showStats in interface org.gnu.freeway.protocol.afs.swing.SController

start

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

Specified by:
start in interface Plugin
Throws:
java.lang.Exception

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

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


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