|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sourcejammer.client.plugin.SJClientActionAdapter
Title: $FileName: SJClientActionAdapter.java$
Field Summary | |
private java.util.HashMap |
params
|
Constructor Summary | |
SJClientActionAdapter()
|
Method Summary | |
abstract void |
actionPerformed(GUIContext context)
|
protected org.sourcejammer.project.view.SJRequest |
getBaseRequest()
Returns SJRequest with archive, user, and session info already set. |
protected java.lang.String |
getParameter(java.lang.String name)
Returns the requested parameter as a String. |
void |
initPlugin(java.util.HashMap params)
Warning! If you override this method, be sure to call super.initPlugin(). |
void |
mapType(java.lang.String nameSpaceURI,
java.lang.String part,
java.lang.Class javaType)
If your plugin needs to send or receive any objects of customized clases to/from the server, you must register each class by calling this method from the initPlugin() method. First of all, the custom class must be availble to (in the classpath of) both client and server. |
protected org.sourcejammer.project.view.SJResponse |
sendRequest(java.lang.String serverPluginName,
org.sourcejammer.project.view.SJRequest request)
Send request to server and run specified plugin. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.HashMap params
Constructor Detail |
public SJClientActionAdapter()
Method Detail |
protected java.lang.String getParameter(java.lang.String name)
public void initPlugin(java.util.HashMap params)
initPlugin
in interface SJClientPlugin
public void mapType(java.lang.String nameSpaceURI, java.lang.String part, java.lang.Class javaType)
protected org.sourcejammer.project.view.SJRequest getBaseRequest()
protected org.sourcejammer.project.view.SJResponse sendRequest(java.lang.String serverPluginName, org.sourcejammer.project.view.SJRequest request) throws org.sourcejammer.util.SourceJammerConnectionException, GUICommandException
org.sourcejammer.util.SourceJammerConnectionException
GUICommandException
public abstract void actionPerformed(GUIContext context)
actionPerformed
in interface SJClientAction
SJClientAction.actionPerformed(GUIContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |