de.cbse.jeasy
Class JEMethodInvocation
java.lang.Object
de.cbse.jeasy.JEObject
de.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 :
- id
The unique id of the root object.
- referenceId
A reference for this jeasy object used to identify this type of jeasy object even if it was cloned. It is used for locale properties of the object and may be used for identification in messages. If no reference is set, the jeasy id will be set as default.
- JEObject (reference to JEObject)
The id of an JEasy object.
- method
The name of the method to call.
- 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.
- param3Class
The class of the third parameter.
- param3Value
The value of the third parameter.
- param4Class
The class of the forth parameter.
- param4Value
The value of the forth parameter.
- Author:
- Harry Pfohl
| Fields inherited from class de.cbse.jeasy.JEObject |
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, parentId, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW |
|
Method Summary |
void |
invoke()
Invokes the method |
void |
invoke(long sleepMilliSec)
Invokes the method after a delay of sleepMilliSec milliseconds |
void |
invoke(java.lang.Object object)
Invokes the method of the given object |
void |
invoke(java.lang.Object object,
long sleepMilliSec)
Invokes the method of the given object after a delay |
void |
invokeAsThread()
Invokes the method as a Thread. |
void |
invokeAsThread(long sleepMilliSec)
Invokes the method as a Thread. |
void |
invokeAsThread(java.lang.Object object)
Invokes the method of the given object as a Thread. |
void |
invokeAsThread(java.lang.Object object,
long sleepMilliSec)
Invokes the method of a object as a Thread. |
java.lang.String |
toString()
Gets the XML string to call a method of an JEasy Object |
| Methods inherited from class de.cbse.jeasy.JEObject |
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getParentId, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, init, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setParentId, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, setupComponent, show, timerTask |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JEMethodInvocation
public JEMethodInvocation(JELocaleProperties hm)
- Reads the properties from a HashMap
- Parameters:
hm - HashMap
JEMethodInvocation
public JEMethodInvocation(JENode jen)
- Constructor based on a XML file parsed to a TreeNode.
- Parameters:
jen - - See Also:
JESaxParser
invoke
public void invoke()
- Invokes the method
invoke
public void invoke(java.lang.Object object)
- Invokes the method of the given object
invoke
public void invoke(java.lang.Object object,
long sleepMilliSec)
- Invokes the method of the given object after a delay
invoke
public void invoke(long sleepMilliSec)
- Invokes the method after a delay of sleepMilliSec milliseconds
invokeAsThread
public void invokeAsThread(java.lang.Object object)
- Invokes the method of the given object as a Thread.
Invoking as a thread should be used in handling GUI events
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(java.lang.Object object,
long sleepMilliSec)
- Invokes the method of a object as a Thread. The Thread will delay sleepMilliSec milliseconds
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