Java Doc for JsValue.java in  » Ajax » GWT » com » google » gwt » dev » shell » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » GWT » com.google.gwt.dev.shell 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.google.gwt.dev.shell.JsValue

All known Subclasses:   com.google.gwt.dev.shell.ie.JsValueIE6,  com.google.gwt.dev.shell.mac.JsValueSaf,  com.google.gwt.dev.shell.moz.JsValueMoz,
JsValue
abstract public class JsValue (Code)
Represents a JavaScript value. Note that in general the various get*() methods will return platform-independent values only if the corresponding is*() method returns true. In some cases, an IllegalStateException may be thrown if the JavaScript value is not of the appropriate type or bogus values may be returned. Note that getString will try very hard to return a reasonable result for any value, but it is intended only for human consumption and the exact format for anything besides a string value cannot be relied upon.

Inner Class :protected interface JsCleanup



Method Summary
abstract protected  JsCleanupcreateCleanupObject()
     Create an object which frees the underlying JS resource.
final protected  voidfinalize()
     When the Java object is garbage-collected, make sure the associated JS resource is freed.
abstract public  booleangetBoolean()
     Get the value of the object as a boolean.
abstract public  intgetInt()
     Get the value of the object as an integer.
abstract public  doublegetNumber()
     Get the value of the object as a double.
abstract public  StringgetString()
     Get the value of the object as a string.
abstract public  StringgetTypeString()
     Returns a human-readable string describing the type of the JS object.
abstract public  ObjectgetWrappedJavaObject()
     Unwrap a wrapped Java object.
abstract public  booleanisBoolean()
     Returns true if the JS value is a boolean.
abstract public  booleanisInt()
     Returns true if getInt() can be used on this value.
abstract public  booleanisJavaScriptObject()
     Returns true if the JS value is a native JS object.
abstract public  booleanisNull()
     Returns true if the JS value is null.
abstract public  booleanisNumber()
     Returns true if the JS value is a numeric type.
abstract public  booleanisString()
     Returns true if the JS value is a string.
abstract public  booleanisUndefined()
     Returns true if the JS value is undefined (void).
abstract public  booleanisWrappedJavaObject()
     Returns true if the JS value is a wrapped Java object.
public static  voidmainThreadCleanup()
     The main thread should call this from time to time to release hosted-mode objects that Java is no longer referencing.
abstract public  voidsetBoolean(boolean val)
     Sets the JS object to be a boolean value.
abstract public  voidsetByte(byte val)
     Sets the JS object to be a number, passed as an byte.
abstract public  voidsetChar(char val)
     Sets the JS object to be a number, passed as a char.
abstract public  voidsetDouble(double val)
     Sets the JS object to be a number, passed as a double.
abstract public  voidsetInt(int val)
     Sets the JS object to be a number, passed as an int.
abstract public  voidsetNull()
     Set the JS object to be null.
abstract public  voidsetShort(short val)
     Sets the JS object to be a number, passed as a short.
abstract public  voidsetString(String val)
     Set the JS object to the supplied string.
abstract public  voidsetUndefined()
     Set the JS object to be undefined (void).
abstract public  voidsetValue(JsValue other)
     Make this JsValue refer to the same underlying object as another JsValue.
abstract public  voidsetWrappedJavaObject(CompilingClassLoader cl, T val)
     Set the JS object to the supplied object, which will be wrapped in a platform-dependent JavaScript class.
public  StringtoString()
     Produce a string representation of the JsValue.



Method Detail
createCleanupObject
abstract protected JsCleanup createCleanupObject()(Code)
Create an object which frees the underlying JS resource. a JsCleanup object which will free the underlying JS resource



finalize
final protected void finalize() throws Throwable(Code)
When the Java object is garbage-collected, make sure the associated JS resource is freed. A helper object is used to avoid issues with resurrecting this object.



getBoolean
abstract public boolean getBoolean()(Code)
Get the value of the object as a boolean. May attempt to convert the value to a boolean if it is not a boolean. the value of the underlying object as a boolean



getInt
abstract public int getInt()(Code)
Get the value of the object as an integer. May attempt to convert the value to an integer if it is not an integer. the value of the underlying object as an int



getNumber
abstract public double getNumber()(Code)
Get the value of the object as a double. May attempt to convert the value to a double if it is not a double. the value of the underlying object as a double



getString
abstract public String getString()(Code)
Get the value of the object as a string. Tries very hard to return a reasonable value for any underyling type, but this should only be used for human consumption as the exact format is not reliable across platforms. the value of the underlying object as a string



getTypeString
abstract public String getTypeString()(Code)
Returns a human-readable string describing the type of the JS object. This is intended only for human consumption and may vary across platforms.



getWrappedJavaObject
abstract public Object getWrappedJavaObject()(Code)
Unwrap a wrapped Java object. the original Java object wrapped in this JS object



isBoolean
abstract public boolean isBoolean()(Code)
Returns true if the JS value is a boolean.



isInt
abstract public boolean isInt()(Code)
Returns true if getInt() can be used on this value.



isJavaScriptObject
abstract public boolean isJavaScriptObject()(Code)
Returns true if the JS value is a native JS object.



isNull
abstract public boolean isNull()(Code)
Returns true if the JS value is null.



isNumber
abstract public boolean isNumber()(Code)
Returns true if the JS value is a numeric type.



isString
abstract public boolean isString()(Code)
Returns true if the JS value is a string.



isUndefined
abstract public boolean isUndefined()(Code)
Returns true if the JS value is undefined (void).



isWrappedJavaObject
abstract public boolean isWrappedJavaObject()(Code)
Returns true if the JS value is a wrapped Java object.



mainThreadCleanup
public static void mainThreadCleanup()(Code)
The main thread should call this from time to time to release hosted-mode objects that Java is no longer referencing.



setBoolean
abstract public void setBoolean(boolean val)(Code)
Sets the JS object to be a boolean value.
Parameters:
  val - the boolean value to set



setByte
abstract public void setByte(byte val)(Code)
Sets the JS object to be a number, passed as an byte.
Parameters:
  val - the value to store



setChar
abstract public void setChar(char val)(Code)
Sets the JS object to be a number, passed as a char.
Parameters:
  val - the value to store



setDouble
abstract public void setDouble(double val)(Code)
Sets the JS object to be a number, passed as a double.
Parameters:
  val - the value to store



setInt
abstract public void setInt(int val)(Code)
Sets the JS object to be a number, passed as an int.
Parameters:
  val - the value to store



setNull
abstract public void setNull()(Code)
Set the JS object to be null.
throws:
  HostedModeException -



setShort
abstract public void setShort(short val)(Code)
Sets the JS object to be a number, passed as a short.
Parameters:
  val - the value to store



setString
abstract public void setString(String val)(Code)
Set the JS object to the supplied string.
Parameters:
  val - the string to put in the JS object
throws:
  HostedModeException - on JS allocation failures



setUndefined
abstract public void setUndefined()(Code)
Set the JS object to be undefined (void).
throws:
  HostedModeException - on JS allocation failures



setValue
abstract public void setValue(JsValue other)(Code)
Make this JsValue refer to the same underlying object as another JsValue.
Parameters:
  other - JsValue to copy JS object from



setWrappedJavaObject
abstract public void setWrappedJavaObject(CompilingClassLoader cl, T val)(Code)
Set the JS object to the supplied object, which will be wrapped in a platform-dependent JavaScript class. <
Parameters:
  T - > the type of the Java object to wrap
Parameters:
  cl - the classloader to create the wrapper object with
Parameters:
  val - the Java object to wrap
throws:
  HostedModeException -



toString
public String toString()(Code)
Produce a string representation of the JsValue.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.