Java Doc for GenericWindow.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » portal » generic » 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 » EJB Server resin 3.1.5 » resin » com.caucho.portal.generic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.portal.generic.GenericWindow

All known Subclasses:   com.caucho.portal.generic.GenericLayoutWindow,  com.caucho.portal.generic.GenericPortletWindow,
GenericWindow
abstract public class GenericWindow implements Window,PortletConfig(Code)


Field Summary
final protected static  Loggerlog
    

Constructor Summary
public  GenericWindow()
    

Method Summary
public  voidaddInitParam(String name, String value)
     Add an init-param for the portlet.
public  voidaddInitParam(NameValuePair nameValuePair)
    
 voidaddSupportedLocale(String locale)
     Add a supported locale, the default is to support all locales.
 voidaddSupportedLocales(String locales)
     Add supported locales with a comma separated list, the default is to support all locales.
public  voiddestroy()
    
public  intgetBufferSize()
    
public  ArrayList<Constraint>getConstraints()
     This implementation returns null.
public  PortletPreferencesgetDefaultPreferences()
     This implementation returns null.
public  intgetExpirationCache()
    
public  StringgetInitParameter(String name)
    
public  EnumerationgetInitParameterNames()
    
protected  StringgetNamespace()
    
public  PortletConfiggetPortletConfig()
    
public  PortletContextgetPortletContext()
    
public  StringgetPortletName()
    
public  ArrayList<PreferencesValidator>getPreferencesValidators()
    
public  RenderergetRenderer()
    
public  ResourceBundlegetResourceBundle(Locale locale)
    
public  Map<String, String>getRoleRefMap()
     This implementation returns null.
public  Set<String>getSupportedContentTypes(PortletMode portletMode)
     This implementation returns null, which means that all content types are supported.
public  Set<Locale>getSupportedLocales()
     This implementation returns null, which means that all locales are supported.
public  voidhandleConstraintFailure(RenderRequest request, RenderResponse response, ConstraintFailureEvent event)
    
public  voidhandleException(RenderRequest request, RenderResponse response, ExceptionEvent event)
    
public  PortletModehandlePortletModeFailure(PortletRequest request, PortletMode notAllowed)
     This implementation returns PortletMode.VIEW.
public  WindowStatehandleWindowStateFailure(PortletRequest request, WindowState notAllowed)
     This implementation returns WindowState.NORMAL.
public  voidinit(PortletContext portletContext)
    
public  booleanisPortletModeAllowed(PortletRequest request, PortletMode portletMode)
     This implementation returns true.
public  booleanisPrivate()
    
public  booleanisWindowStateAllowed(PortletRequest request, WindowState windowState)
     This implementation returns true.
protected  ObjectnewInstance(Class targetClass, String className)
     Instantiate a new instance of an object, performing checks for validity. The object that results from instantiating an instance of className must be an instance of targetClass.
Parameters:
  targetClass - the class that the instantiated Object should becompatible with.
abstract public  voidprocessAction(PortletConnection connection)
    
abstract public  voidrender(PortletConnection connection)
    
public  voidsetBufferSize(int bufferSize)
     0 disables buffering, -1 allows the portal to choose a buffer size, a positive number indicaets a minimum buffer size.
public  voidsetErrorPage(String errorPage)
     Specify a location to forward to if an exception or constraint failure occurs while rendering the portlet.
public  voidsetExpirationCache(int expirationCache)
     Enable caching of the response and set the expiration time in seconds.
public  voidsetNamespace(String namespace)
     The namespace is used to uniquely identify this usage of the portlet, the default is "" (the empty string).
public  voidsetPortletName(String portletName)
     The default is the namespace.
public  voidsetPortletPreferences(GenericPortletPreferences defaultPreferences)
     Set the default preferences.
public  voidsetPrivate(boolean isPrivate)
     If true then the response is private, indicating that it contains information that should only be provided to the current client, default is false.
public  voidsetRenderer(Renderer renderer)
     A Renderer wraps decorations around the portlet, see AbstractRenderer .
public  voidsetRendererClass(String className)
    
public  voidsetResourceBundle(String name)
     Set a resource bundle name, used to instantiate an instance of ResourceBundleFactory.
public  voidsetResourceBundleFactory(ResourceBundleFactory factory)
    

Field Detail
log
final protected static Logger log(Code)




Constructor Detail
GenericWindow
public GenericWindow()(Code)




Method Detail
addInitParam
public void addInitParam(String name, String value)(Code)
Add an init-param for the portlet.



addInitParam
public void addInitParam(NameValuePair nameValuePair)(Code)



addSupportedLocale
void addSupportedLocale(String locale)(Code)
Add a supported locale, the default is to support all locales. This is an ordered list, those added first are more preferrable.



addSupportedLocales
void addSupportedLocales(String locales)(Code)
Add supported locales with a comma separated list, the default is to support all locales. This is an ordered list, those added first are more preferrable.



destroy
public void destroy()(Code)



getBufferSize
public int getBufferSize()(Code)



getConstraints
public ArrayList<Constraint> getConstraints()(Code)
This implementation returns null.



getDefaultPreferences
public PortletPreferences getDefaultPreferences()(Code)
This implementation returns null.



getExpirationCache
public int getExpirationCache()(Code)



getInitParameter
public String getInitParameter(String name)(Code)



getInitParameterNames
public Enumeration getInitParameterNames()(Code)



getNamespace
protected String getNamespace()(Code)



getPortletConfig
public PortletConfig getPortletConfig()(Code)



getPortletContext
public PortletContext getPortletContext()(Code)



getPortletName
public String getPortletName()(Code)



getPreferencesValidators
public ArrayList<PreferencesValidator> getPreferencesValidators()(Code)



getRenderer
public Renderer getRenderer()(Code)



getResourceBundle
public ResourceBundle getResourceBundle(Locale locale)(Code)



getRoleRefMap
public Map<String, String> getRoleRefMap()(Code)
This implementation returns null.



getSupportedContentTypes
public Set<String> getSupportedContentTypes(PortletMode portletMode)(Code)
This implementation returns null, which means that all content types are supported.



getSupportedLocales
public Set<Locale> getSupportedLocales()(Code)
This implementation returns null, which means that all locales are supported.



handleConstraintFailure
public void handleConstraintFailure(RenderRequest request, RenderResponse response, ConstraintFailureEvent event)(Code)

See Also:   GenericWindow.setErrorPage(String)



handleException
public void handleException(RenderRequest request, RenderResponse response, ExceptionEvent event)(Code)

See Also:   GenericWindow.setErrorPage(String)



handlePortletModeFailure
public PortletMode handlePortletModeFailure(PortletRequest request, PortletMode notAllowed)(Code)
This implementation returns PortletMode.VIEW.



handleWindowStateFailure
public WindowState handleWindowStateFailure(PortletRequest request, WindowState notAllowed)(Code)
This implementation returns WindowState.NORMAL.



init
public void init(PortletContext portletContext) throws PortletException(Code)



isPortletModeAllowed
public boolean isPortletModeAllowed(PortletRequest request, PortletMode portletMode)(Code)
This implementation returns true.



isPrivate
public boolean isPrivate()(Code)



isWindowStateAllowed
public boolean isWindowStateAllowed(PortletRequest request, WindowState windowState)(Code)
This implementation returns true.



newInstance
protected Object newInstance(Class targetClass, String className) throws IllegalArgumentException(Code)
Instantiate a new instance of an object, performing checks for validity. The object that results from instantiating an instance of className must be an instance of targetClass.
Parameters:
  targetClass - the class that the instantiated Object should becompatible with.
Parameters:
  className - the String name of a class to use when instantiating theobject. a new Object



processAction
abstract public void processAction(PortletConnection connection) throws PortletException, IOException(Code)



render
abstract public void render(PortletConnection connection) throws PortletException, IOException(Code)



setBufferSize
public void setBufferSize(int bufferSize)(Code)
0 disables buffering, -1 allows the portal to choose a buffer size, a positive number indicaets a minimum buffer size. Default is 0 unless `error-page' ( GenericWindow.setErrorPage(String) has been used, then the default is -1.



setErrorPage
public void setErrorPage(String errorPage)(Code)
Specify a location to forward to if an exception or constraint failure occurs while rendering the portlet. The default behaviour is for an exception or constraint failure to propogate to the parent window, or if there is no parent then to the servlet container. If an exception occurs the following request attributes are set:
com.caucho.portal.error.exception
java.lang.Throwable
com.caucho.portal.error.exception_type
java.lang.Class
com.caucho.portal.error.message
java.lang.String
javax.portlet.renderRequest
javax.portlet.RenderRequest
javax.portlet.renderResponse
javax.portlet.RenderResponse
javax.portlet.portletConfig
javax.portlet.PortletConfig
If a constraint failure occurs the following request attributes are set:
com.caucho.portal.error.constraint
com.caucho.portal.generic.Constraint
com.caucho.portal.error.constraint_type
java.lang.Class
com.caucho.portal.error.status_code
java.lang.Integer
javax.portlet.renderRequest
javax.portlet.RenderRequest
javax.portlet.renderResponse
javax.portlet.RenderResponse
javax.portlet.portletConfig
javax.portlet.PortletConfig



setExpirationCache
public void setExpirationCache(int expirationCache)(Code)
Enable caching of the response and set the expiration time in seconds. 0 (the default) means do not cache, -1 means unlimited cach time, any other number is the number of seconds for which the response can be cached.



setNamespace
public void setNamespace(String namespace)(Code)
The namespace is used to uniquely identify this usage of the portlet, the default is "" (the empty string). The namespace is important when using a portlet preferences store, and also has an effect on the encoding of parameters.



setPortletName
public void setPortletName(String portletName)(Code)
The default is the namespace.



setPortletPreferences
public void setPortletPreferences(GenericPortletPreferences defaultPreferences)(Code)
Set the default preferences.



setPrivate
public void setPrivate(boolean isPrivate)(Code)
If true then the response is private, indicating that it contains information that should only be provided to the current client, default is false. Setting this to true has an effect on caching, if true then a cached value cannot be shared amongst different users and the effectiveness of caching is greatly reduced.



setRenderer
public void setRenderer(Renderer renderer)(Code)
A Renderer wraps decorations around the portlet, see AbstractRenderer .



setRendererClass
public void setRendererClass(String className)(Code)
An alternative to GenericWindow.setRenderer(Renderer) , specify the class name of an object to instantiate



setResourceBundle
public void setResourceBundle(String name)(Code)
Set a resource bundle name, used to instantiate an instance of ResourceBundleFactory.



setResourceBundleFactory
public void setResourceBundleFactory(ResourceBundleFactory factory)(Code)



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.