com.cbse.jeasy
Class JEMethodInvocation

java.lang.Object
  extended by com.cbse.jeasy.JEObject
      extended by com.cbse.jeasy.JEMethodInvocation

public class JEMethodInvocation
extends JEObject

A JEMethodInvocation is an XML interface for JEasy objects and methods.

You may call each JEasy Method by this syntax:

<methodinvocation>
<id>JEMethodInvocationId</id>
<JEObject>JEasyObjectId</JEObject>
<method>methodName</method>
<param1Class>String</param1Class>
<param1Value>Hello World</param1Value>
<param2Class>boolean</param2Class>
<param2Value>true</param2Value>
</methodinvocation>
Example:
<methodinvocation>
<id>MC_DF_Email_Set</id>
<JEObject>DF_Email</JEObject>
<method>setText</method>
<param1Class>String</param1Class>
<param1Value>webmaster@jeasy.de</param1Value>
</methodinvocation>

Properties
namevaluescomment
id*Id of the object. Let it begin with MC_
JEObject*The id of an JEasy object
method*The name of the method of this object
param1Class The class of the first parameter.
param1Value The value of the first parameter.
param2Class The class of the second parameter.
param2Value The value of the second parameter.
paramnClass The class of parameter n.
paramnValue The value of parameter n.
* = property you have to set; bold = default value

Version:
%I%, %G%
Author:
H.Pfohl

Field Summary
 
Fields inherited from class com.cbse.jeasy.JEObject
DEVELOPPING, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_TIME, INPUT_ERRORS, NO_INPUT_ERROR, RUNNING
 
Constructor Summary
JEMethodInvocation(java.lang.Object obj, java.lang.String s)
          Reads the properties from a string.
JEMethodInvocation(java.lang.String s)
          Reads the properties from a string.
 
Method Summary
 void invoke()
          Invokes the method
 void invoke(long sleepMilliSec)
          Invokes the method after a delay of sleepMilliSec milliseconds
 void invokeAsThread()
          Invokes the method as a Thread.
 void invokeAsThread(long sleepMilliSec)
          Invokes the method as a Thread.
 java.lang.String toString()
          Gets the xml string to call a method of an JEasy Object
 
Methods inherited from class com.cbse.jeasy.JEObject
backupEntry, clear, deserializeValue, getApplet, getApplLocale, getCenter, getComponent, getEast, getElementAt, getElementSize, getId, getJCallBack, getJClass, getLabel, getMode, getName, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, restoreEntry, serializeValue, setApplet, setApplLocale, setEditable, setEditable, setEnabled, setEnabled, setFocus, setJCallBack, setMarkable, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible, start, wasEntryChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JEMethodInvocation

public JEMethodInvocation(java.lang.String s)
Reads the properties from a string.

Parameters:
s - contains properties and values
See Also:
JE#PropertyString

JEMethodInvocation

public JEMethodInvocation(java.lang.Object obj,
                          java.lang.String s)
Reads the properties from a string.

Parameters:
obj - object to call the method
s - contains properties and values
See Also:
JE#PropertyString
Method Detail

invoke

public void invoke()
Invokes the method


invoke

public void invoke(long sleepMilliSec)
Invokes the method after a delay of sleepMilliSec milliseconds


invokeAsThread

public void invokeAsThread()
Invokes the method as a Thread. Invoking as a thread should be used in handling GUI events


invokeAsThread

public void invokeAsThread(long sleepMilliSec)
Invokes the method as a Thread. The Thread will delay sleepMilliSec milliseconds


toString

public java.lang.String toString()
Gets the xml string to call a method of an JEasy Object

Overrides:
toString in class java.lang.Object