Java Doc for SwingletManager.java in  » Swing-Library » Swinglets » com » javelin » swinglets » 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 » Swing Library » Swinglets » com.javelin.swinglets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.javelin.swinglets.SwingletManager

All known Subclasses:   com.javelin.swinglets.ServletManager,
SwingletManager
abstract public class SwingletManager (Code)
The SwingletManager manager Swinglet component. Every thread is allocated a SwingletManager.

Values can be stored in this object for the duration of the session.

SwingletManager is an abstract class. Specific Manager, such as the ServletManager are used to manage Swinglets in different contexts.
author:
   Robin Sharp



Field Summary
protected  BrowserLookAndFeelbrowserLookAndFeel
    
protected  BrowserProfilebrowserProfile
    
protected  booleancached
    
protected static  StringdefaultImagePath
    
protected static  StringdefaultRealPath
    
protected static  SThemedefaultTheme
    
protected static  StringdefaultUrl
    
protected  StringimagePath
    
protected static  ThreadLocallocalSwingletManager
    
protected  StringrealPath
    
protected  StringremoteUser
    
protected static  StringservletRunner
    
protected  SThemetheme
    
protected  Stringurl
    


Method Summary
public  voidapplyDetectedLookAndFeel(String agent)
     Apply the detected look and feel to every SComponent in the values list.
public  BrowserLookAndFeelgetBrowserLookAndFeel()
     Get the browser look and feel policy.
public  BrowserProfilegetBrowserProfile()
     Get the browser profile.
public static synchronized  StringgetDefaultImagePath()
     Get the Default IMAGE PATH, for the current thread.
public static synchronized  StringgetDefaultRealPath()
     Get the Default PATH, for the current thread.
public static  SThemegetDefaultTheme()
     Get the default Theme.
public static synchronized  StringgetDefaultUrl()
    
public  SLookAndFeelgetDetectedLookAndFeel(String agent)
     Automatically set the look and feel based on the agent string.
public  SLookAndFeelgetDetectedLookAndFeel(String agent, String mimeType)
     Automatically set the look and feel based on the agent string, and mimeType.
public  StringgetImagePath()
     Get the IMAGE PATH.
abstract public  URLgetImageResource(String imageName)
    
abstract public  EnumerationgetKeys()
     Get an Enumeration of keys.
public  StringgetRealPath()
     Get the PATH.
public  StringgetRemoteUser()
    
abstract public  URLgetResource(String resourceName)
    
public static  StringgetServletRunner()
     Get the URL of the Servlet runner.
public static synchronized  SwingletManagergetSwingletManager()
     Get the SwingletManager associated with this session. SwingletManagers are associated by thread.
public  SThemegetTheme()
     Get the Theme for the session, This will get the default values for colors and fonts if values are not set.
public  StringgetUrl()
    
abstract public  ObjectgetValue(String name)
     Get a value by name.
abstract public  EnumerationgetValues()
     Get an Enumeration of keys.
public  booleanisCached()
     Check whether the painting cached in a String.
abstract public  voidputValue(String name, Object value)
     Bind an value to the Swinglet Manager.
public  voidsetBrowserLookAndFeel(BrowserLookAndFeel blf)
     Set the browser look and feel.
public  voidsetBrowserProfile(BrowserProfile browserProfile)
     Set the browser profile.
public  voidsetCached(boolean cached)
     Set whether the painting cached in a String.
public static synchronized  voidsetDefaultImagePath(String rp)
     Set the Default IMAGE PATH, for the current thread.
public static synchronized  voidsetDefaultRealPath(String rp)
     Set the Default PATH, for the current thread.
public static  voidsetDefaultTheme(STheme dt)
     Set the default Theme.
public static synchronized  voidsetDefaultUrl(String url)
     Set the Default url for the SwingletManager.
public  voidsetImagePath(String rp)
     Set the IMAGE PATH .
public  voidsetRealPath(String rp)
     Set the PATH .
public  voidsetRemoteUser(String remoteUser)
    
public static  voidsetServletRunner(String sr)
     Set the URL of the Servlet runner.
public static synchronized  voidsetSwingletManager(SwingletManager swingletManager)
     Set the SwingletManager associated with this session.
public  voidsetTheme(STheme theme)
     Set the Theme for the session.
public  voidsetUrl(String url)
     Set the url SwingletManager.
public  voidsetUrl(URL url)
     Set the url SwingletManager.

Field Detail
browserLookAndFeel
protected BrowserLookAndFeel browserLookAndFeel(Code)



browserProfile
protected BrowserProfile browserProfile(Code)



cached
protected boolean cached(Code)



defaultImagePath
protected static String defaultImagePath(Code)



defaultRealPath
protected static String defaultRealPath(Code)



defaultTheme
protected static STheme defaultTheme(Code)



defaultUrl
protected static String defaultUrl(Code)



imagePath
protected String imagePath(Code)



localSwingletManager
protected static ThreadLocal localSwingletManager(Code)



realPath
protected String realPath(Code)



remoteUser
protected String remoteUser(Code)



servletRunner
protected static String servletRunner(Code)



theme
protected STheme theme(Code)



url
protected String url(Code)





Method Detail
applyDetectedLookAndFeel
public void applyDetectedLookAndFeel(String agent)(Code)
Apply the detected look and feel to every SComponent in the values list.



getBrowserLookAndFeel
public BrowserLookAndFeel getBrowserLookAndFeel()(Code)
Get the browser look and feel policy. This defaults to the DefaultBrowserLookAndFeel



getBrowserProfile
public BrowserProfile getBrowserProfile()(Code)
Get the browser profile.



getDefaultImagePath
public static synchronized String getDefaultImagePath()(Code)
Get the Default IMAGE PATH, for the current thread. If the thread is null remove the path.



getDefaultRealPath
public static synchronized String getDefaultRealPath()(Code)
Get the Default PATH, for the current thread. If the thread is null remove the path.



getDefaultTheme
public static STheme getDefaultTheme()(Code)
Get the default Theme.



getDefaultUrl
public static synchronized String getDefaultUrl()(Code)
Get the defult url for the SwingletManager



getDetectedLookAndFeel
public SLookAndFeel getDetectedLookAndFeel(String agent)(Code)
Automatically set the look and feel based on the agent string. This is a helper method that will look up the look and feel from the current browser look and feel class.



getDetectedLookAndFeel
public SLookAndFeel getDetectedLookAndFeel(String agent, String mimeType)(Code)
Automatically set the look and feel based on the agent string, and mimeType. This is a helper method that will look up the look and feel from the current browser look and feel class.



getImagePath
public String getImagePath()(Code)
Get the IMAGE PATH. If there is no image path get the default image path.



getImageResource
abstract public URL getImageResource(String imageName) throws MalformedURLException(Code)



getKeys
abstract public Enumeration getKeys()(Code)
Get an Enumeration of keys.



getRealPath
public String getRealPath()(Code)
Get the PATH. If there is no real path get the default real path.



getRemoteUser
public String getRemoteUser()(Code)
Get the user for the SwingletManager



getResource
abstract public URL getResource(String resourceName) throws MalformedURLException(Code)



getServletRunner
public static String getServletRunner()(Code)
Get the URL of the Servlet runner.



getSwingletManager
public static synchronized SwingletManager getSwingletManager()(Code)
Get the SwingletManager associated with this session. SwingletManagers are associated by thread.



getTheme
public STheme getTheme()(Code)
Get the Theme for the session, This will get the default values for colors and fonts if values are not set.

If the theme is null a static DefaultTheme is returned.




getUrl
public String getUrl()(Code)
Get the full url for the SwingletManager



getValue
abstract public Object getValue(String name)(Code)
Get a value by name.



getValues
abstract public Enumeration getValues()(Code)
Get an Enumeration of keys.



isCached
public boolean isCached()(Code)
Check whether the painting cached in a String. If the SComponent is set to true then it will override this value.



putValue
abstract public void putValue(String name, Object value)(Code)
Bind an value to the Swinglet Manager.
Parameters:
  name - the key of the value.
Parameters:
  value - the value. If this is null it is removed.



setBrowserLookAndFeel
public void setBrowserLookAndFeel(BrowserLookAndFeel blf)(Code)
Set the browser look and feel.



setBrowserProfile
public void setBrowserProfile(BrowserProfile browserProfile)(Code)
Set the browser profile.



setCached
public void setCached(boolean cached)(Code)
Set whether the painting cached in a String. If the SComponent is set to true then it will override this value.



setDefaultImagePath
public static synchronized void setDefaultImagePath(String rp)(Code)
Set the Default IMAGE PATH, for the current thread. If the thread is null remove the path.



setDefaultRealPath
public static synchronized void setDefaultRealPath(String rp)(Code)
Set the Default PATH, for the current thread. If the thread is null remove the path.



setDefaultTheme
public static void setDefaultTheme(STheme dt)(Code)
Set the default Theme.



setDefaultUrl
public static synchronized void setDefaultUrl(String url)(Code)
Set the Default url for the SwingletManager.



setImagePath
public void setImagePath(String rp)(Code)
Set the IMAGE PATH . replace "\" with "/"



setRealPath
public void setRealPath(String rp)(Code)
Set the PATH . replace "\" with "/"



setRemoteUser
public void setRemoteUser(String remoteUser)(Code)
Set the remoteuser SwingletManager



setServletRunner
public static void setServletRunner(String sr)(Code)
Set the URL of the Servlet runner.



setSwingletManager
public static synchronized void setSwingletManager(SwingletManager swingletManager)(Code)
Set the SwingletManager associated with this session. If this is null it is removed. This must be set on entry into the session, and set to null on exit from the session.



setTheme
public void setTheme(STheme theme)(Code)
Set the Theme for the session.



setUrl
public void setUrl(String url)(Code)
Set the url SwingletManager.



setUrl
public void setUrl(URL url)(Code)
Set the url SwingletManager.



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.