org.eclipse.actf.util.win32.comclutch
Class Handler
java.lang.Object
org.eclipse.actf.util.win32.comclutch.impl.IResourceImpl
org.eclipse.actf.util.win32.comclutch.impl.IUnknownImpl
org.eclipse.actf.util.win32.comclutch.Handler
- All Implemented Interfaces:
- IDispatch, IResource, IUnknown
public abstract class Handler
- extends org.eclipse.actf.util.win32.comclutch.impl.IUnknownImpl
- implements IDispatch
TODO:
(For event handling)
Methods inherited from class org.eclipse.actf.util.win32.comclutch.impl.IUnknownImpl |
addRef, getPtr, getTotalRefCount, newIUnknown, queryInterface, release |
Methods inherited from class org.eclipse.actf.util.win32.comclutch.impl.IResourceImpl |
addResource, equals, findInResource, getResourceManager, hashCode, isPermanent, toString |
defaultHandler
public abstract Object defaultHandler(Object[] args)
get
public Object get(String prop)
- Specified by:
get
in interface IDispatch
- Parameters:
prop
- the property name
- Returns:
- the value of the property
invoke
public Object invoke(String method,
Object[] args)
- Specified by:
invoke
in interface IDispatch
- Parameters:
method
- the method nameargs
- the array of arguments
- Returns:
- the result of the native invocation
invoke0
public Object invoke0(String method)
- Specified by:
invoke0
in interface IDispatch
- Parameters:
method
- the method name
- Returns:
- the result of the native invocation
invoke1
public Object invoke1(String method,
Object arg1)
- Specified by:
invoke1
in interface IDispatch
- Parameters:
method
- the method namearg1
- the argument
- Returns:
- the result of the native invocation
put
public void put(String prop,
Object val)
- Specified by:
put
in interface IDispatch
- Parameters:
prop
- the property nameval
- the value to be set to the property
newIUnknown
public IUnknown newIUnknown(long ptr)
- Description copied from interface:
IUnknown
- It will be called from native code
- Specified by:
newIUnknown
in interface IUnknown
- Overrides:
newIUnknown
in class org.eclipse.actf.util.win32.comclutch.impl.IUnknownImpl
newIDispatch
public IDispatch newIDispatch(long ptr)
- Specified by:
newIDispatch
in interface IDispatch
- Returns:
- It will be called from native code
get
public Object get(String prop,
Object[] args)
- Specified by:
get
in interface IDispatch
- Parameters:
prop
- the property nameargs
- the array of arguments
- Returns:
- the value of the property