com.google.gwt.angular.client.impl.JsScopeBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of angulargwt Show documentation
Show all versions of angulargwt Show documentation
AngularJS integration for GWT
package com.google.gwt.angular.client.impl;
import com.google.gwt.angular.client.Scope;
import com.google.gwt.angular.client.WatchFunction;
/**
* Base class of generated scopes.
*/
public class JsScopeBase> extends JsModelBase implements Scope {
protected JsScopeBase() {
}
@Override
public final native void $watch(String expr, WatchFunction func) /*-{
this.$watch(expr, $entry(function (newVal) {
[email protected]::exec(Ljava/lang/Object;)(newVal);
}));
}-*/;
@Override
public final native void $apply() /*-{
this.$apply(null);
}-*/;
@Override
public final native void $apply(String expr) /*-{
this.$apply(expr);
}-*/;
@Override
public final native void $apply(Runnable runnable) /*-{
this.$apply($entry(function () {
[email protected]::run()();
}));
}-*/;
@Override
public final void $onDestroy(Runnable runnable) {
$on("$destroy", runnable);
}
@Override
public final native void $on(String eventName, Runnable runnable) /*-{
this.$on(eventName, $entry(function () {
[email protected]::run()();
}));
}-*/;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy