|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.win32.automation.ScriptingAutomation
Provides functions to invoke property setters and getters using features of
IDispatchEx
interface. By default it uses OleMessageLoop
thread to perform automation in it. If you need to perform automation in the
current thread, use an appropriate constructor.
Nested Class Summary | |
class |
ScriptingAutomation.InvocationHelper
|
Constructor Summary | |
ScriptingAutomation(IUnknown unknown)
|
|
ScriptingAutomation(IUnknown unknown,
boolean useCurrentThread)
|
Method Summary | |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns property value of a referenced interface. |
boolean |
isUseCurrentThread()
Returns true if the automation is performed in the current thread; false - if in the OleMessageLoop thread. |
void |
release()
|
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets property value of a referenced interface. |
void |
setProperty(java.lang.String propertyName,
Variant value)
Sets property value of a referenced interface. |
void |
setUseCurrentThread(boolean useCurrentThread)
Specifies where to perform automation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScriptingAutomation(IUnknown unknown, boolean useCurrentThread)
public ScriptingAutomation(IUnknown unknown)
Method Detail |
public boolean isUseCurrentThread()
OleMessageLoop
thread.
OleMessageLoop
thread.public void setUseCurrentThread(boolean useCurrentThread)
useCurrentThread
- if true, the current thread will be used; if
false - OleMessageLoop
thread.public java.lang.Object getProperty(java.lang.String propertyName) throws ComException
propertyName
- object's property name.
ComException
public void setProperty(java.lang.String propertyName, Variant value) throws ComException
propertyName
- object's property name.value
- a new property value.
ComException
public void setProperty(java.lang.String propertyName, java.lang.Object value) throws ComException
propertyName
- object's property name.value
-
ComException
public void release()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |