![]() ![]() Var jsFloatValue = float.floatValue() // returns primitive float, converted to Numberīoth the primitive double and reference types are projected as JavaScript Number: var double = new ("1.5") Var jsIntValue = int.intValue() // returns primitive int, converted to Numberīoth the primitive float and reference types are projected as JavaScript Number: var float = new ("1.5") Var jsShortValue = short.shortValue() // returns primitive short, converted to Numberīoth the primitive int and reference types are projected as JavaScript Number: var int = new ("1") ![]() Var jsByteValue = teValue() // returns primitive byte, converted to Numberīoth the primitive short and reference types are projected as JavaScript Number: var short = new ("1") ![]() Var enabled = button.isEnabled() // returns primitive boolean, converted to JS Booleanīoth the primitive byte and reference types are projected as JavaScript Number: var byte = new ("1") Var path = file.getPath() // returns, converted to JS Stringīoth the primitive boolean and reference types are projected as JavaScript Boolean: var context =. String & Characterīoth and types are projected as JavaScript String: var file = new java.io.File("/path/to/file") The article lists the available types in Java and how they are projected to JavaScript. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |