jsinterop.annotations.JsProperty Java Examples
The following examples show how to use
jsinterop.annotations.JsProperty.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JsMethodTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = GLOBAL, name = "window.jsInteropSecret") private static native void setJsInteropSecret(String magic);
Example #2
Source File: NativeJsTypeTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = JsPackage.GLOBAL, name = "Float32Array.BYTES_PER_ELEMENT") private static native Object getFloat32ArrayBytesPerElement();
Example #3
Source File: JsPropertyTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty int getX();
Example #4
Source File: Foo.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty public static int getA() { return f + 1; }
Example #5
Source File: NativeFoo.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(name = "Math.PI", namespace = JsPackage.GLOBAL) public static native double getB();
Example #6
Source File: NativeJsTypeTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty public native int getN();
Example #7
Source File: NativeJsTypeTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = JsPackage.GLOBAL) private static native Object getUndefined();
Example #8
Source File: JsPropertyTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty void setX(int x);
Example #9
Source File: JsPropertyTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty int getX();
Example #10
Source File: Foo.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(name = "abc") public static int getB() { return f + 3; }
Example #11
Source File: NativeJsTypeTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = JsPackage.GLOBAL, name = "Int8Array.BYTES_PER_ELEMENT") private static native double getInt8ArrayBytesPerElement();
Example #12
Source File: Bar.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty public int getA() { return f + 1; }
Example #13
Source File: EnumOptimizationTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty private native Object getJsEnumReferenceEquality();
Example #14
Source File: JsPropertyTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty int getX();
Example #15
Source File: JsMethodTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = GLOBAL, name = "window.jsInteropSecret") private static native String getJsInteropSecret();
Example #16
Source File: JsPropertyTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty public void setY(int x) { this.x = x + SET_X; }
Example #17
Source File: JsMethodTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = GLOBAL, name = "Infinity") private static native double infinity();
Example #18
Source File: JsMethodTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = GLOBAL, name = "NaN") private static native double getNaN();
Example #19
Source File: ElementLikeNativeInterface.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty String getTagName();
Example #20
Source File: JsTypeArrayTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty public native int getId();
Example #21
Source File: JsTypeArrayTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty int getId();
Example #22
Source File: Main.java From j2cl with Apache License 2.0 | 4 votes |
/** Returns the foo value. */ @JsProperty String getFoo();
Example #23
Source File: JsExportTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = "woo.MyEnumWithSubclassGen", name = "C") private static native Object getEnumerationC();
Example #24
Source File: JsExportTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = "woo.MyEnumWithSubclassGen", name = "B") private static native Object getEnumerationB();
Example #25
Source File: JsExportTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = "woo.MyEnumWithSubclassGen", name = "A") private static native Object getEnumerationA();
Example #26
Source File: JsExportTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = "woo.MyExportedEnum", name = "publicStaticField") private static native int getPublicStaticFieldInEnum();
Example #27
Source File: JsExportTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = "woo.MyExportedEnum", name = "publicStaticFinalField") private static native int getPublicStaticFinalFieldInEnum();
Example #28
Source File: JsExportTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = "woo.MyExportedEnum", name = "valueOf") private static native Object getValueOfMethodInEnum();
Example #29
Source File: JsExportTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty(namespace = "woo.MyExportedEnum", name = "values") private static native Object getValuesMethodInEnum();
Example #30
Source File: BooleanOptimizationTest.java From j2cl with Apache License 2.0 | 4 votes |
@JsProperty private native Object getBoxedComp();