Java Doc for Global.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » iv » flash » js » 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 » Laszlo 4.0.10 » org.openlaszlo.iv.flash.js 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.openlaszlo.iv.flash.js.Global

Global
public class Global extends ImporterTopLevel (Code)
This class provides for sharing functions across multiple threads. This is of particular interest to server applications.
author:
   Norris Boyd
author:
   Dmitry Skavish


Field Summary
public  PrintStreamerrStream
    
public  org.openlaszlo.iv.flash.context.ContextgenContext
    
 NativeArrayhistory
    
public  InputStreaminStream
    
public  PrintStreamoutStream
    
final static  StringprivateName
    

Constructor Summary
public  Global(Context cx)
    
public  Global(Context cx, org.openlaszlo.iv.flash.context.Context genContext)
    

Method Summary
public static  voiddefineClass(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass.
public static  Objectdeserialize(Context cx, Scriptable thisObj, Object[] args, Function funObj)
    
public  PrintStreamgetErr()
    
public  InputStreamgetIn()
    
public static  GlobalgetInstance(Scriptable scope)
    
public  PrintStreamgetOut()
    
public static  ObjectgetVar(Context cx, Scriptable thisObj, Object[] args, Function funObj)
    
public static  voidload(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     Load and execute a set of JavaScript source files.
public static  voidloadClass(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     Load and execute a script compiled to a class file.

This method is defined as a JavaScript function. When called as a JavaScript function, a single argument is expected.

public static  Objectprint(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     Print the string values of its arguments.
public static  Objectprintln(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     Println the string values of its arguments.
public static  voidserialize(Context cx, Scriptable thisObj, Object[] args, Function funObj)
    
public  voidsetErr(PrintStream err)
    
public  voidsetIn(InputStream in)
    
public  voidsetOut(PrintStream out)
    
public static  ObjectsetVar(Context cx, Scriptable thisObj, Object[] args, Function funObj)
    
public static  Objectspawn(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     The spawn function runs a given function or script in a different thread.
public static  Objectsync(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     The sync function creates a synchronized function (in the sense of a Java synchronized method) from an existing function.
public static  doubleversion(Context cx, Scriptable thisObj, Object[] args, Function funObj)
     Get and set the language version.

Field Detail
errStream
public PrintStream errStream(Code)



genContext
public org.openlaszlo.iv.flash.context.Context genContext(Code)



history
NativeArray history(Code)



inStream
public InputStream inStream(Code)



outStream
public PrintStream outStream(Code)



privateName
final static String privateName(Code)




Constructor Detail
Global
public Global(Context cx)(Code)



Global
public Global(Context cx, org.openlaszlo.iv.flash.context.Context genContext)(Code)




Method Detail
defineClass
public static void defineClass(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws IllegalAccessException, InstantiationException, InvocationTargetException, ClassDefinitionException, PropertyException(Code)
Load a Java class that defines a JavaScript object using the conventions outlined in ScriptableObject.defineClass.

This method is defined as a JavaScript function.
exception:
  IllegalAccessException - if access is not availableto a reflected class member
exception:
  InstantiationException - if unable to instantiatethe named class
exception:
  InvocationTargetException - if an exception is thrownduring execution of methods of the named class
exception:
  ClassDefinitionException - if the format of theclass causes this exception in ScriptableObject.defineClass
exception:
  PropertyException - if the format of theclass causes this exception in ScriptableObject.defineClass
See Also:   org.mozilla.javascript.ScriptableObject.defineClass




deserialize
public static Object deserialize(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws IOException, ClassNotFoundException(Code)



getErr
public PrintStream getErr()(Code)



getIn
public InputStream getIn()(Code)



getInstance
public static Global getInstance(Scriptable scope)(Code)



getOut
public PrintStream getOut()(Code)



getVar
public static Object getVar(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
Returns variable from associated generator context



load
public static void load(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
Load and execute a set of JavaScript source files. This method is defined as a JavaScript function.



loadClass
public static void loadClass(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws IllegalAccessException, InstantiationException, InvocationTargetException, JavaScriptException(Code)
Load and execute a script compiled to a class file.

This method is defined as a JavaScript function. When called as a JavaScript function, a single argument is expected. This argument should be the name of a class that implements the Script interface, as will any script compiled by jsc.
exception:
  IllegalAccessException - if access is not availableto the class
exception:
  InstantiationException - if unable to instantiatethe named class
exception:
  InvocationTargetException - if an exception is thrownduring execution of methods of the named class
exception:
  JavaScriptException - if a JavaScript exception is thrownduring execution of the compiled script
See Also:   org.mozilla.javascript.ScriptableObject.defineClass




print
public static Object print(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
Print the string values of its arguments. This method is defined as a JavaScript function. Note that its arguments are of the "varargs" form, which allows it to handle an arbitrary number of arguments supplied to the JavaScript function.



println
public static Object println(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
Println the string values of its arguments. This method is defined as a JavaScript function. Note that its arguments are of the "varargs" form, which allows it to handle an arbitrary number of arguments supplied to the JavaScript function.



serialize
public static void serialize(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws IOException(Code)



setErr
public void setErr(PrintStream err)(Code)



setIn
public void setIn(InputStream in)(Code)



setOut
public void setOut(PrintStream out)(Code)



setVar
public static Object setVar(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
Sets variable to associated standard generator context



spawn
public static Object spawn(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
The spawn function runs a given function or script in a different thread. js> function g() { a = 7; } js> a = 3; 3 js> spawn(g) Thread[Thread-1,5,main] js> a 3



sync
public static Object sync(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
The sync function creates a synchronized function (in the sense of a Java synchronized method) from an existing function. The new function synchronizes on the this object of its invocation. js> var o = { f : sync(function(x) { print("entry"); Packages.java.lang.Thread.sleep(x*1000); print("exit"); })}; js> spawn(function() {o.f(5);}); Thread[Thread-0,5,main] entry js> spawn(function() {o.f(5);}); Thread[Thread-1,5,main] js> exit entry exit



version
public static double version(Context cx, Scriptable thisObj, Object[] args, Function funObj)(Code)
Get and set the language version. This method is defined as a JavaScript function.



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