|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for action plug-ins. Action plug-ins perform some
operation on or using the items in the result list.
Implementing this interface allows
the plug-in to be dynamically loaded by the Search and Whatever
application. Plug-ins will be loaded with the SearchController
they correspond to, as determined by the values returned by the
getResultClass
method. For more information on developing
plug-ins, refer to the
Search and Whatever home page, [Developers] link.
PluginIfc.getResultClass()
Field Summary | |
static java.lang.String |
CLASS_NAME
|
Fields inherited from interface com.usefullittlethings.saw.model.PluginIfc |
BLOCK, LINEAR, SINGLE_BLOCK, UNSUPPORTED |
Method Summary | |
void |
begin()
This method of the plug-in will be invoked immediately before a search is performed, allowing the plug-in the "prepare" itself to perform a search. |
void |
end()
This method of the plug-in will be invoked immediately after a search has completed, allowing the plug-in the perform any post-search clean-up activities.. |
void |
handle(int pattern,
java.lang.Object target)
This method is called by the core application to invoke the plug-in's action. |
boolean |
isDangerous()
Returns true or false indicating whether or not the use of this action could be considered dangerous to the user's resources. |
void |
setBase(java.lang.Object base)
This method is invoked by the core application to set the search base for the current search operation. |
Methods inherited from interface com.usefullittlethings.saw.model.PluginIfc |
addObserver, clone, configure, configure, deleteObserver, getAuthor, getEmail, getName, getResultClass, getShortName, getState, getUI, getUnixName, getWebsite, hasUI, isEnabled, reset, setEnabled, supportCommandLine, supports, toXMLString |
Field Detail |
public static final java.lang.String CLASS_NAME
Method Detail |
public void setBase(java.lang.Object base)
base
- An object representing the search base. The object class is
determined by the related SearchControllerIfc instance.public void handle(int pattern, java.lang.Object target) throws ActionInvocationException
pattern
- A constant from PluginIfc representing the type of search
pattern that is being performed.target
- The target object to be acted upon.
ActionInvocationException
PluginIfc.LINEAR
,
PluginIfc.BLOCK
,
PluginIfc.SINGLE_BLOCK
public void begin() throws ActionInvocationException
ActionInvocationException
public void end() throws ActionInvocationException
ActionInvocationException
public boolean isDangerous()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |