本文整理汇总了Java中jsinterop.annotations.JsPackage类的典型用法代码示例。如果您正苦于以下问题:Java JsPackage类的具体用法?Java JsPackage怎么用?Java JsPackage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
JsPackage类属于jsinterop.annotations包,在下文中一共展示了JsPackage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isJsObject
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@GwtIncompatible
private static final boolean isJsObject(Class<?> type) {
JsType jsType = type.getAnnotation(JsType.class);
if (jsType == null) {
return false;
}
if (!jsType.isNative()) {
return false;
}
if (!JsPackage.GLOBAL.equals(jsType.namespace())) {
return false;
}
if (!"Object".equals(jsType.name())) {
return false;
}
return true;
}
示例2: setTimeout
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(namespace = JsPackage.GLOBAL)
private static native int setTimeout(TimerCallback callback, int time);
示例3: hello
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(namespace = JsPackage.GLOBAL)
public native static Hello hello();
示例4: isInitialized
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsProperty(namespace = JsPackage.GLOBAL, name = "Cesium")
public static native boolean isInitialized();
示例5: path
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsProperty(namespace = JsPackage.GLOBAL, name = "CesiumPath")
public static native String path();
示例6: setTimeout
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(name = "setTimeout", namespace = JsPackage.GLOBAL)
public static native void setTimeout(TimeoutListener listener, int milliseconds);
示例7:
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(name = "$", namespace = JsPackage.GLOBAL)
public static native JsTableElement $(JQueryElement element);
示例8:
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(namespace = JsPackage.GLOBAL)
public static native JQueryExtElement $(JQueryElement element);
示例9:
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(name = "$", namespace = JsPackage.GLOBAL)
public static native JsMaterialElement $(JQueryElement element);
示例10: showGrid
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(namespace = JsPackage.GLOBAL)
public static native void showGrid(Object selector);
示例11: moment
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(namespace = JsPackage.GLOBAL)
public static native Moment moment();
示例12:
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsMethod(name = "proj4", namespace = JsPackage.GLOBAL)
public static native Proj4 proj4(String firstProjection);
示例13: get
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsProperty( namespace = JsPackage.GLOBAL, name = "document" )
public static native Document get();
示例14: get
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsProperty( namespace = JsPackage.GLOBAL, name = "tardigrade" )
public static native Tardigrade get();
示例15: get
import jsinterop.annotations.JsPackage; //导入依赖的package包/类
@JsProperty(namespace = JsPackage.GLOBAL, name = "window")
public static native Window get();