edu.ucsb.nceas.morpho.query
Class QueryPlugin

java.lang.Object
  |
  +--edu.ucsb.nceas.morpho.query.QueryPlugin
All Implemented Interfaces:
ConnectionListener, PluginInterface, QueryRefreshInterface, ServiceProvider

public class QueryPlugin
extends java.lang.Object
implements PluginInterface, ConnectionListener, ServiceProvider, QueryRefreshInterface


Constructor Summary
QueryPlugin()
          Construct the query plugin.
 
Method Summary
 void connectionChanged(boolean connected)
          Implement the ConnectionListener interface so we know when to refresh queries.
 void initialize(Morpho morpho)
          The plugin must store a reference to the Morpho in order to be able to call the services available through the framework.
 void refresh()
          This method is called to refresh a query when a change is made that should be propogated to the query result screens.
 void updateSavedQueryMenuItems(Morpho newMorpho)
          This method implements from QueryRefreshInterface.
 void usernameChanged(java.lang.String newUsername)
          Implement the ConnectionListener interface so we know when to refresh queries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryPlugin

public QueryPlugin()
Construct the query plugin. Initialize our one tab for the plugin plus any menus and toolbars.
Method Detail

initialize

public void initialize(Morpho morpho)
The plugin must store a reference to the Morpho in order to be able to call the services available through the framework. This is also the time to register menus and toolbars with the framework.
Specified by:
initialize in interface PluginInterface

usernameChanged

public void usernameChanged(java.lang.String newUsername)
Implement the ConnectionListener interface so we know when to refresh queries.
Specified by:
usernameChanged in interface ConnectionListener
Following copied from interface: edu.ucsb.nceas.morpho.framework.ConnectionListener
Parameters:
username - the new username as it now has been set

connectionChanged

public void connectionChanged(boolean connected)
Implement the ConnectionListener interface so we know when to refresh queries.
Specified by:
connectionChanged in interface ConnectionListener
Following copied from interface: edu.ucsb.nceas.morpho.framework.ConnectionListener
Parameters:
isConnected - boolean true if the framework is now connected

refresh

public void refresh()
This method is called to refresh a query when a change is made that should be propogated to the query result screens.
Specified by:
refresh in interface QueryRefreshInterface

updateSavedQueryMenuItems

public void updateSavedQueryMenuItems(Morpho newMorpho)
This method implements from QueryRefreshInterface. It will be called when user change the profile and will update the save queries in search menu
Specified by:
updateSavedQueryMenuItems in interface QueryRefreshInterface
Parameters:
newMorpho - new Morpho object after switch profile


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.