org.appcelerator.kroll
Interface KrollProxyListener

All Known Implementing Classes:
KrollModule, TiUIView

public interface KrollProxyListener

This class is used by KrollProxy to delegate model changes. See KrollProxy.setModelListener(KrollProxyListener)) for more details.


Method Summary
 void listenerAdded(String type, int count, KrollProxy proxy)
          This method is called when an event listener is added for a specific event.
 void listenerRemoved(String type, int count, KrollProxy proxy)
          This method is called when an event listener is removed for a specific event.
 void processProperties(KrollDict properties)
          Implementing classes can use this method to examine the properties passed into the proxy.
 void propertyChanged(String key, Object oldValue, Object newValue, KrollProxy proxy)
          Implementing classes should notify this method when an existing property is modified.
 

Method Detail

propertyChanged

void propertyChanged(String key,
                     Object oldValue,
                     Object newValue,
                     KrollProxy proxy)
Implementing classes should notify this method when an existing property is modified.

Parameters:
key - the key whose value has been modified.
oldValue - the old value.
newValue - the new value.
proxy - the associated proxy.

processProperties

void processProperties(KrollDict properties)
Implementing classes can use this method to examine the properties passed into the proxy.

Parameters:
properties - a set of properties to process.

listenerAdded

void listenerAdded(String type,
                   int count,
                   KrollProxy proxy)
This method is called when an event listener is added for a specific event.

Parameters:
type - the added event listener
count - the count of event listeners.
proxy - the proxy that added the listener.

listenerRemoved

void listenerRemoved(String type,
                     int count,
                     KrollProxy proxy)
This method is called when an event listener is removed for a specific event.

Parameters:
type - the removed event listener
count - the count of event listeners.
proxy - the proxy that removed the listener.


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