de.netcomputing.anyj.scripting
Class AJExternalService

java.lang.Object
  |
  +--de.netcomputing.anyj.scripting.AJExternalService

public abstract class AJExternalService
extends java.lang.Object

Services are a basic concept of AnyJ's application architecture.

This class is abstract, you need to define 'canProcessSelection' and 'doProcess'. See the example scripts/Tutorials on how to develop a service interactively and on how to register a user-written service.


Constructor Summary
AJExternalService()
           
AJExternalService(java.lang.String name)
           
 
Method Summary
abstract  boolean canProcessSelection(java.lang.Object selection)
          tell AnyJ wether this service is capable to process the given selection.
abstract  void doProcess(java.lang.Object selection)
          the user choosed to execute this service, do it !
 java.lang.String getCategory()
          return the Category, determines the position of the service in a menu.
 java.lang.String getMenuName()
          return the name as it appears in a menu
 void setCategory(java.lang.String category)
           
 void setMenuName(java.lang.String menuName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AJExternalService

public AJExternalService()

AJExternalService

public AJExternalService(java.lang.String name)
Method Detail

setMenuName

public void setMenuName(java.lang.String menuName)

setCategory

public void setCategory(java.lang.String category)

canProcessSelection

public abstract boolean canProcessSelection(java.lang.Object selection)
tell AnyJ wether this service is capable to process the given selection. The selection can be a String, AJSTextDocument or a File (currently).

doProcess

public abstract void doProcess(java.lang.Object selection)
the user choosed to execute this service, do it !

getMenuName

public java.lang.String getMenuName()
return the name as it appears in a menu

getCategory

public java.lang.String getCategory()
return the Category, determines the position of the service in a menu. See Preferences,Menus & Shortcuts to obtain all categories (=directory level treenodes in the 'Menus & Shortcuts' panel).