edu.ucsb.nceas.morpho.framework
Interface QueryRefreshInterface
- All Known Implementing Classes:
- QueryPlugin
- public interface QueryRefreshInterface
This service allows plugins to request that the query results be
refreshed when they have made a change that should affect the resultset.
All component plugins that make changes to data packages that should result
in the "My Data" result set being updated should utilize this
interface and call the refresh method after the change is completed.
Method Summary |
Command |
getCommandObject(int commandIdentifier)
return an instance of a Command object, identified by one of the integer
constants defined above |
void |
refresh()
This method is called to refresh the main query when a change is
made that should be propogated to the query result screens. |
void |
updateSavedQueryMenuItems(Morpho newMorpho)
This mehod will be called when Morpho switch to another profile. |
OPEN_DATAPACKAGE_COMMAND
public static final int OPEN_DATAPACKAGE_COMMAND
- Denotes an instance of the OpenDataPackageCommand object
SEARCH_COMMAND
public static final int SEARCH_COMMAND
- Denotes an instance of the SearchCommand object
refresh
public void refresh()
- This method is called to refresh the main query when a change is
made that should be propogated to the query result screens.
updateSavedQueryMenuItems
public void updateSavedQueryMenuItems(Morpho newMorpho)
- This mehod will be called when Morpho switch to another profile. Old saved
queries will be removed from search menu and new saved queries will be
adde into search menu.
- Parameters:
newMorpho
- new Morpho object after switch profile
getCommandObject
public Command getCommandObject(int commandIdentifier)
throws java.lang.ClassNotFoundException
- return an instance of a Command object, identified by one of the integer
constants defined above
- Parameters:
commandIdentifier
- integer constant identifying the command
Options include:
- OPEN_DATAPACKAGE_COMMAND
- SEARCH_COMMAND
- Throws:
- ommandNotFoundException - if Command not found
Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.