org.appcelerator.kroll
Class KrollModule

java.lang.Object
  extended by org.appcelerator.kroll.KrollProxy
      extended by org.appcelerator.kroll.KrollModule
All Implemented Interfaces:
android.os.Handler.Callback, KrollConvertable, KrollProxyListener, OnEventListenerChange, TiContext.OnLifecycleEvent

@Kroll.module
public class KrollModule
extends KrollProxy
implements KrollProxyListener, TiContext.OnLifecycleEvent


Nested Class Summary
 
Nested classes/interfaces inherited from class org.appcelerator.kroll.KrollProxy
KrollProxy.ThisMethod
 
Field Summary
protected static java.util.HashMap<java.lang.String,java.lang.Object> constants
           
protected static java.util.HashMap<java.lang.String,KrollModuleInfo> customModuleInfo
           
protected static java.util.HashMap<java.lang.Class<? extends KrollModule>,java.util.List<java.lang.Class<? extends KrollModule>>> externalChildModules
           
protected  KrollModuleInfo moduleInfo
           
 
Fields inherited from class org.appcelerator.kroll.KrollProxy
binding, BINDING_SUFFIX, context, createdInModule, creatingContext, creationDict, currentInvocation, eventManager, krollObject, modelListener, MSG_LAST_ID, MSG_LISTENER_ADDED, MSG_LISTENER_REMOVED, MSG_MODEL_PROPERTIES_CHANGED, MSG_MODEL_PROPERTY_CHANGE, properties, PROXY_ID_PREFIX, proxyBindings, proxyCounter, proxyId, uiHandler, UNDEFINED, waitForHandler
 
Constructor Summary
KrollModule(TiContext context)
           
 
Method Summary
static void addExternalChildModule(java.lang.Class<? extends KrollModule> parent, java.lang.Class<? extends KrollModule> child)
           
static void addModuleInfo(KrollModuleInfo info)
           
protected  void bindConstants()
           
 void bindToParent(KrollProxy parent)
           
static KrollModule getExternalChildModule(KrollModuleBinding binding, java.lang.Class<? extends KrollModule> moduleClass, java.lang.String name)
           
 java.lang.String getId()
           
protected  KrollModuleBinding getModuleBinding()
           
 KrollModuleInfo getModuleInfo()
           
static KrollModuleInfo getModuleInfo(java.lang.String id)
           
 void listenerAdded(java.lang.String type, int count, KrollProxy proxy)
           
 void listenerRemoved(java.lang.String type, int count, KrollProxy proxy)
           
 void onDestroy(android.app.Activity activity)
           
 void onPause(android.app.Activity activity)
           
 void onResume(android.app.Activity activity)
           
 void onStart(android.app.Activity activity)
           
 void onStop(android.app.Activity activity)
           
 void processProperties(KrollDict d)
           
 void propertiesChanged(java.util.List<KrollPropertyChange> changes, KrollProxy proxy)
           
 void propertyChanged(java.lang.String key, java.lang.Object oldValue, java.lang.Object newValue, KrollProxy proxy)
           
 
Methods inherited from class org.appcelerator.kroll.KrollProxy
addEventListener, bindContextSpecific, call, createErrorResponse, createEventInvocation, eventListenerAdded, eventListenerRemoved, extend, fireEvent, firePropertiesChanged, firePropertyChanged, fireSingleEvent, get, getAPIName, getBinding, getBinding, getBinding, getBoundMethod, getBoundMethodForThis, getBoundProperty, getCreatedInModule, getCreationDict, getCurrentInvocation, getDefaultValue, getDynamicProperty, getJavascriptValue, getKrollBridge, getKrollObject, getNativeValue, getProperties, getProperty, getProxyId, getShortAPIName, getTiContext, getUIHandler, handleCreationArgs, handleCreationDict, handleMessage, has, hasBinding, hasBoundMethod, hasBoundProperty, hasListeners, hasProperty, removeEventListener, set, setDynamicProperty, setModelListener, setProperty, setProperty, shouldFireChange, switchContext, switchToCreatingContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

constants

protected static java.util.HashMap<java.lang.String,java.lang.Object> constants

customModuleInfo

protected static java.util.HashMap<java.lang.String,KrollModuleInfo> customModuleInfo

externalChildModules

protected static java.util.HashMap<java.lang.Class<? extends KrollModule>,java.util.List<java.lang.Class<? extends KrollModule>>> externalChildModules

moduleInfo

protected KrollModuleInfo moduleInfo
Constructor Detail

KrollModule

public KrollModule(TiContext context)
Method Detail

addModuleInfo

public static void addModuleInfo(KrollModuleInfo info)

getModuleInfo

public static KrollModuleInfo getModuleInfo(java.lang.String id)

addExternalChildModule

public static void addExternalChildModule(java.lang.Class<? extends KrollModule> parent,
                                          java.lang.Class<? extends KrollModule> child)

getId

public java.lang.String getId()

getModuleInfo

public KrollModuleInfo getModuleInfo()

getModuleBinding

protected KrollModuleBinding getModuleBinding()

bindToParent

public void bindToParent(KrollProxy parent)

bindConstants

protected void bindConstants()

getExternalChildModule

public static KrollModule getExternalChildModule(KrollModuleBinding binding,
                                                 java.lang.Class<? extends KrollModule> moduleClass,
                                                 java.lang.String name)

onResume

public void onResume(android.app.Activity activity)
Specified by:
onResume in interface TiContext.OnLifecycleEvent

onPause

public void onPause(android.app.Activity activity)
Specified by:
onPause in interface TiContext.OnLifecycleEvent

onDestroy

public void onDestroy(android.app.Activity activity)
Specified by:
onDestroy in interface TiContext.OnLifecycleEvent

onStart

public void onStart(android.app.Activity activity)
Specified by:
onStart in interface TiContext.OnLifecycleEvent

onStop

public void onStop(android.app.Activity activity)
Specified by:
onStop in interface TiContext.OnLifecycleEvent

listenerAdded

public void listenerAdded(java.lang.String type,
                          int count,
                          KrollProxy proxy)
Specified by:
listenerAdded in interface KrollProxyListener

listenerRemoved

public void listenerRemoved(java.lang.String type,
                            int count,
                            KrollProxy proxy)
Specified by:
listenerRemoved in interface KrollProxyListener

processProperties

public void processProperties(KrollDict d)
Specified by:
processProperties in interface KrollProxyListener

propertyChanged

public void propertyChanged(java.lang.String key,
                            java.lang.Object oldValue,
                            java.lang.Object newValue,
                            KrollProxy proxy)
Specified by:
propertyChanged in interface KrollProxyListener

propertiesChanged

public void propertiesChanged(java.util.List<KrollPropertyChange> changes,
                              KrollProxy proxy)
Specified by:
propertiesChanged in interface KrollProxyListener


Copyright © 2010 Appcelerator, Inc. Licensed under the Apache License 2.0