Java Doc for ThemeFunctionLibrary.java in  » Web-Framework » Millstone » org » millstone » webadapter » 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 » Web Framework » Millstone » org.millstone.webadapter 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.millstone.webadapter.ThemeFunctionLibrary

ThemeFunctionLibrary
public class ThemeFunctionLibrary (Code)
This a function library that can be used from the theme XSL-files. It provides easy access to current application, window, theme, webbrowser and session. The internal threadlocal state must be maintained by the webadapter in order go guarantee that it works.
author:
   IT Mill Ltd.
version:
   3.1.1
since:
   3.0




Method Summary
public static  Applicationapplication()
     Returns a reference to the application object associated with the session that the call came from.
public static  WebBrowserbrowser()
     Returns a reference to the browser object associated with the session that the call came from.
protected static  voidcleanState()
    
protected static  StringgenerateWindowScript(Window window, Application app, WebAdapterServlet wa, WebBrowser browser)
    
public static  intgetFirstDayOfWeek()
     Get name for week day.
Parameters:
  Number - of week day.
public static  StringgetFormAction()
     Get Form Action URL for the requested window.

This returns the action for the window main form.

public static  StringgetLocaleCountryId()
     Returns the country and region code for current application locale.
public static  StringgetLocaleLanguageId()
     Returns the language code for current application locale.
public static  StringgetMonth(int month)
     Get name for month.
Parameters:
  Number - of month.
public static  StringgetShortMonth(int month)
     Get short name for month.
Parameters:
  Number - of month.
public static  StringgetShortWeekday(int dayOfWeek)
     Get name for week day.
Parameters:
  Number - of week day.
protected static  StringgetWindowRefreshScript(Application application, Window window, WebBrowser browser)
    
public static  StringgetWindowTargetName(Application application, Window window)
     Returns an unique target name for a given window name.
Parameters:
  windowName - Name of the window.
public static  StringgetWindowTargetName()
     Returns an unique target name for current window.
public static  StringgetWindowTargetName(String name)
     Returns an unique target name for current window.
public static  booleanprobeClient()
     Generate JavaScript for page that performs client-side combility checks.
public static  Stringresource(String resource, String theme)
     Return an URI to the named resource from the named theme.
public static  Stringresource(String resource)
     Return an URI to the named resource.
public static  HttpSessionsession()
     Returns a reference to the current servlet http session object that is associated with the session that the call came from.
protected static  voidsetState(Application application, Window window, WebBrowser webBrowser, HttpSession session, WebAdapterServlet webAdapterServlet, String theme)
    
public static  Stringtheme()
     Return a reference to the current theme object that is associated with the session that the call came from.
public static  Windowwindow()
     Returns a reference to the current window object associated with the session that the call came from.
public static  StringwindowScript()
     Generate JavaScript for page header that handles window refreshing, opening and closing.



Method Detail
application
public static Application application()(Code)
Returns a reference to the application object associated with the session that the call came from.



browser
public static WebBrowser browser()(Code)
Returns a reference to the browser object associated with the session that the call came from.



cleanState
protected static void cleanState()(Code)



generateWindowScript
protected static String generateWindowScript(Window window, Application app, WebAdapterServlet wa, WebBrowser browser)(Code)



getFirstDayOfWeek
public static int getFirstDayOfWeek()(Code)
Get name for week day.
Parameters:
  Number - of week day. 0 first day of week. Name of week day in applications current locale.



getFormAction
public static String getFormAction()(Code)
Get Form Action URL for the requested window.

This returns the action for the window main form. This action can be set through WebApplicationContect setWindowFormAction method..

Form action for the current window.



getLocaleCountryId
public static String getLocaleCountryId()(Code)
Returns the country and region code for current application locale.
See Also:   Locale.getCountry language Country code of the current application locale.



getLocaleLanguageId
public static String getLocaleLanguageId()(Code)
Returns the language code for current application locale.
See Also:   Locale.getLanguage language Language code for current application locale.



getMonth
public static String getMonth(int month)(Code)
Get name for month.
Parameters:
  Number - of month. 0 is January, 1 is February, and so on. Name of month in applications current locale.



getShortMonth
public static String getShortMonth(int month)(Code)
Get short name for month.
Parameters:
  Number - of month. 0 is January, 1 is February, and so on. Name of month in applications current locale.



getShortWeekday
public static String getShortWeekday(int dayOfWeek)(Code)
Get name for week day.
Parameters:
  Number - of week day. 0 sunday, 1 monday, ... Name of week day in applications current locale.



getWindowRefreshScript
protected static String getWindowRefreshScript(Application application, Window window, WebBrowser browser)(Code)
Generate JavaScript for updating given window



getWindowTargetName
public static String getWindowTargetName(Application application, Window window)(Code)
Returns an unique target name for a given window name.
Parameters:
  windowName - Name of the window. An unique ID for window target
throws:
  IllegalStateException - If application for window is null.



getWindowTargetName
public static String getWindowTargetName()(Code)
Returns an unique target name for current window. An unique ID for window target



getWindowTargetName
public static String getWindowTargetName(String name)(Code)
Returns an unique target name for current window. An unique ID for window target
throws:
  IllegalStateException - If application for window is null.



probeClient
public static boolean probeClient()(Code)
Generate JavaScript for page that performs client-side combility checks. The script includes HTML/JavaScript commands to be included in the body of the millstone-form.



resource
public static String resource(String resource, String theme)(Code)
Return an URI to the named resource from the named theme.



resource
public static String resource(String resource)(Code)
Return an URI to the named resource.



session
public static HttpSession session()(Code)
Returns a reference to the current servlet http session object that is associated with the session that the call came from.



setState
protected static void setState(Application application, Window window, WebBrowser webBrowser, HttpSession session, WebAdapterServlet webAdapterServlet, String theme)(Code)



theme
public static String theme()(Code)
Return a reference to the current theme object that is associated with the session that the call came from.



window
public static Window window()(Code)
Returns a reference to the current window object associated with the session that the call came from.



windowScript
public static String windowScript()(Code)
Generate JavaScript for page header that handles window refreshing, opening and closing. Generates script that:
  • Requests that all windows that need repaint be reloaded
  • Sets the window name
  • Closes window if it is set to be closed



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.