public class AndroidViewInvocationHandler extends ViewInvocationHandler
Implementation of invocation handler for Android views. It will use classes annotated with
DMXViewDeclaration
, which must respect all rules described in ViewInvocationHandler
.
In addition, classes which represent Android views must provide one of the following constructors:
android.content.Context
Context
and DMXDefaultAdapter
Invocation handler will try to construct view object in the following way:
constr_name(Context, DMXDefaultAdapter)
and use it if found.
Clients should use this constructor if they need both Context
and DMXDefaultAdapter
type fields in
view operation.
constr_name(Context)
and use
it if found. Clients should provide this constructor if they need to use field of type Context
in
view class.
addChildMethod, callback, constraintField, constraintMethod, constructUiMethod, dlgField, dlgResultMethod, extendable, isDialog, isModal, modelData, modelFields, parentViewId, renderMethod, title, underlying, viewActivationMethod, viewId, viewUiField, viewUiMethod
Constructor and Description |
---|
AndroidViewInvocationHandler(Class clazz,
DMXDefaultAdapter adapter,
android.content.Context context)
Create new instance.
|
public AndroidViewInvocationHandler(Class clazz, DMXDefaultAdapter adapter, android.content.Context context) throws InstantiationException, IllegalAccessException, NoSuchMethodException, InvocationTargetException, IncompleteDeclarationException
clazz
is properly annotated view, with constructor
which takes an argument of type android.content.Context
.clazz
- view classadapter
- adapter instancecontext
- Android application contextInstantiationException
- if class can not be instantiatedIllegalAccessException
- if element can not be accessedNoSuchMethodException
- if class does not contain proper constructorInvocationTargetException
- if method cannot be invokedIncompleteDeclarationException
- if some of the required view annotations are missingCopyright © 2012-2014 Vektor Software. All Rights Reserved.