Java Doc for JavascriptContext.java in  » J2EE » ICEfaces-1.6.1 » com » icesoft » faces » context » effects » 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 » J2EE » ICEfaces 1.6.1 » com.icesoft.faces.context.effects 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.icesoft.faces.context.effects.JavascriptContext

JavascriptContext
public class JavascriptContext (Code)
Used to send Javascript to the browser


Field Summary
final public static  StringDYNAMIC_CODE_ID
    
final public static  StringICE_BRIDGE
    
final public static  StringICE_EXTRAS
    
final public static  StringLIB_KEY
    


Method Summary
public static  voidaddJavascriptCall(FacesContext facesContext, String call)
     Add a javascript call to be executed on the browser.
public static  voidapplicationFocus(FacesContext facesContext, String id)
     Set the application focus for the current request, overrides and setFocus call. Generally setFocus is used by components, while setApplicationFocus is used by the application.
public static  StringapplyEffect(Effect effect, String id, FacesContext context)
     Wrap the effect in a javascript method to be called later.
public static  voidfireEffect(Effect effect, String id, FacesContext context)
     Fire an effect at the end of the current render cycle.
public static  voidfireEffect(Effect effect, UIComponent component)
    
public static  voidfireEffect(Effect effect, UIComponent component, FacesContext facesContext)
    
public static  voidfireEffect(UIComponent uiComponent, FacesContext facesContext)
    
public static  voidfocus(FacesContext context, String id)
     \ Set focus on an HTML element.
public static  StringgetEffectFunctionForEvent(UIComponent uiComponent, String event, String id, FacesContext facesContext)
    
public static  StringgetFocus(FacesContext context)
    
public static  String[]getIncludedLibs(FacesContext facesContext)
    
public static  StringgetJavascriptCalls(FacesContext facesContext)
    
public static  StringgetJavascriptCalls(Map map)
    
public static  voidincludeLib(String libname, FacesContext facesContext)
     Include a script tag in the <head> section of the page with the src attribute set to libname.

Field Detail
DYNAMIC_CODE_ID
final public static String DYNAMIC_CODE_ID(Code)
ID of script node used to send Javascript in a dom update



ICE_BRIDGE
final public static String ICE_BRIDGE(Code)
URL of the ICE Bridge lib



ICE_EXTRAS
final public static String ICE_EXTRAS(Code)
URL of the ICE Extras lib



LIB_KEY
final public static String LIB_KEY(Code)
Request Scope Key, indicating that extras needs to be included





Method Detail
addJavascriptCall
public static void addJavascriptCall(FacesContext facesContext, String call)(Code)
Add a javascript call to be executed on the browser. Code will be executed at the end of the current render cycle.

Note: When sending function definitions you must specify the function name as this['functionName'] = function(){} For example: helloWorld(name}{ alert('Hello [' + name + ']'); }

Would need to be written as this['helloWorld'] = function(name){ alert('Hello [' + name + ']'); }
Parameters:
  facesContext -
Parameters:
  call - Javascript code to execute




applicationFocus
public static void applicationFocus(FacesContext facesContext, String id)(Code)
Set the application focus for the current request, overrides and setFocus call. Generally setFocus is used by components, while setApplicationFocus is used by the application.
Parameters:
  id -



applyEffect
public static String applyEffect(Effect effect, String id, FacesContext context)(Code)
Wrap the effect in a javascript method to be called later. Returns the method name. Used in local effects.
Parameters:
  effect -
Parameters:
  id -
Parameters:
  context - The name of the method that wraps the effect



fireEffect
public static void fireEffect(Effect effect, String id, FacesContext context)(Code)
Fire an effect at the end of the current render cycle. Fired from server, non local.
Parameters:
  effect -
Parameters:
  id - Target element of the effect
Parameters:
  context -



fireEffect
public static void fireEffect(Effect effect, UIComponent component)(Code)
Fire an effect at the end of the current render cycle
Parameters:
  effect -
Parameters:
  component -



fireEffect
public static void fireEffect(Effect effect, UIComponent component, FacesContext facesContext)(Code)
Fire an effect at the end of the current render cycle
Parameters:
  effect -
Parameters:
  component -
Parameters:
  facesContext -



fireEffect
public static void fireEffect(UIComponent uiComponent, FacesContext facesContext)(Code)
Fire an effect at the end of the current render cycle
Parameters:
  uiComponent -
Parameters:
  facesContext -



focus
public static void focus(FacesContext context, String id)(Code)
\ Set focus on an HTML element.
Parameters:
  context -
Parameters:
  id -



getEffectFunctionForEvent
public static String getEffectFunctionForEvent(UIComponent uiComponent, String event, String id, FacesContext facesContext)(Code)
Get the Effect function for a given event
Parameters:
  uiComponent -
Parameters:
  event -
Parameters:
  id -
Parameters:
  facesContext -



getFocus
public static String getFocus(FacesContext context)(Code)
Get the focus for the current request
Parameters:
  context -



getIncludedLibs
public static String[] getIncludedLibs(FacesContext facesContext)(Code)
Get the included javascript libraries
Parameters:
  facesContext -



getJavascriptCalls
public static String getJavascriptCalls(FacesContext facesContext)(Code)
Add a javascript call to this request
Parameters:
  facesContext -



getJavascriptCalls
public static String getJavascriptCalls(Map map)(Code)
Get javascript calls from the Request map
Parameters:
  map -



includeLib
public static void includeLib(String libname, FacesContext facesContext)(Code)
Include a script tag in the <head> section of the page with the src attribute set to libname. This will insure that all icefaces pages contain this script for the remainder of the session.
Parameters:
  libname - the source of the javascript file
Parameters:
  facesContext - The facescontext this file is needed for



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.