org.eclipse.actf.util.win32.comclutch
Interface IDispatch
- All Superinterfaces:
- IResource, IUnknown
- All Known Subinterfaces:
- IAccessible
- All Known Implementing Classes:
- Handler
public interface IDispatch
- extends IUnknown
Wrapper for IDispatch object see
http://msdn.microsoft.com/en-us/library/ms221608.aspx
IDispatch interface defines the methods to be used for method invocation and
property operations with instances of native IDispatch.
cacheDispIDs
void cacheDispIDs(String[] names)
- cache IDs corresponding to the names
- Parameters:
names
- the names of properties and methods
invoke
Object invoke(String method,
Object[] args)
- Parameters:
method
- the method nameargs
- the array of arguments
- Returns:
- the result of the native invocation
invoke0
Object invoke0(String method)
- Parameters:
method
- the method name
- Returns:
- the result of the native invocation
invoke1
Object invoke1(String method,
Object arg1)
- Parameters:
method
- the method namearg1
- the argument
- Returns:
- the result of the native invocation
get
Object get(String prop)
- Parameters:
prop
- the property name
- Returns:
- the value of the property
put
void put(String prop,
Object val)
- Parameters:
prop
- the property nameval
- the value to be set to the property
newIDispatch
IDispatch newIDispatch(long ptr)
- Parameters:
ptr
-
- Returns:
- It will be called from native code
get
Object get(String prop,
Object[] args)
- Parameters:
prop
- the property nameargs
- the array of arguments
- Returns:
- the value of the property