Files
NativeScript/ui/core/proxy.ts
2014-06-12 17:44:23 +03:00

17 lines
572 B
TypeScript

import observable = require("ui/core/observable");
import bindable = require("ui/core/bindable");
export class ProxyObject extends bindable.Bindable {
public setPropertyCore(data: observable.PropertyChangeData) {
this.setNativeProperty(data);
this.updateTwoWayBinding(data.propertyName, data.value);
}
public setNativeProperty(data: observable.PropertyChangeData) {
// inheritors will override this method to provide specific implementation
}
public onNativePropertyChanged(data: observable.PropertyChangeData) {
}
}