com.caucho.portal.generic
Class GenericPortletWindow

java.lang.Object
  extended by com.caucho.portal.generic.GenericWindow
      extended by com.caucho.portal.generic.GenericPortletWindow
All Implemented Interfaces:
Window

public class GenericPortletWindow
extends GenericWindow

A Window that contains one javax.portlet.Portlet.


Field Summary
protected static java.util.logging.Logger log
           
 
Constructor Summary
GenericPortletWindow()
           
 
Method Summary
 void destroy()
           
protected  Portlet getPortlet()
           
 void init(PortletContext portletContext)
           
 void processAction(PortletConnection connection)
          Use the PortletConnection to get an Action appropriate for this window, and then call processAction on the portlet that is contained within this Window if the Portlet is the target of the action.
 void render(PortletConnection connection)
          Use the PortletConnection to get a Render appropriate for this window, and then call render on the portlet that is contained within this Window.
 void setPortlet(Portlet portlet)
          The portlet.
 void setPortletClass(java.lang.String className)
          An alternative to setPortlet(Portlet), specify the class name of an object to instantiate
 void setPortletName(java.lang.String portletName)
          The default is the value of portlet-class.
 
Methods inherited from class com.caucho.portal.generic.GenericWindow
addInitParam, addInitParam, getBufferSize, getConstraints, getDefaultPreferences, getExpirationCache, getInitParameter, getInitParameterNames, getNamespace, getPortletConfig, getPortletContext, getPortletName, getPreferencesValidators, getRenderer, getResourceBundle, getRoleRefMap, getSupportedContentTypes, getSupportedLocales, handleConstraintFailure, handleException, handlePortletModeFailure, handleWindowStateFailure, isPortletModeAllowed, isPrivate, isWindowStateAllowed, newInstance, setBufferSize, setErrorPage, setExpirationCache, setNamespace, setPortletPreferences, setPrivate, setRenderer, setRendererClass, setResourceBundle, setResourceBundleFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final java.util.logging.Logger log
Constructor Detail

GenericPortletWindow

public GenericPortletWindow()
Method Detail

setPortlet

public void setPortlet(Portlet portlet)
The portlet. This method can be called in derived classes, or through the use of dependency injection on containers that support it.


setPortletClass

public void setPortletClass(java.lang.String className)
An alternative to setPortlet(Portlet), specify the class name of an object to instantiate


setPortletName

public void setPortletName(java.lang.String portletName)
The default is the value of portlet-class.

Overrides:
setPortletName in class GenericWindow

init

public void init(PortletContext portletContext)
          throws PortletException
Overrides:
init in class GenericWindow
Throws:
PortletException

getPortlet

protected Portlet getPortlet()

processAction

public void processAction(PortletConnection connection)
                   throws PortletException,
                          java.io.IOException
Use the PortletConnection to get an Action appropriate for this window, and then call processAction on the portlet that is contained within this Window if the Portlet is the target of the action.

Specified by:
processAction in class GenericWindow
Throws:
PortletException
java.io.IOException

render

public void render(PortletConnection connection)
            throws PortletException,
                   java.io.IOException
Use the PortletConnection to get a Render appropriate for this window, and then call render on the portlet that is contained within this Window.

Specified by:
render in class GenericWindow
Throws:
PortletException
java.io.IOException

destroy

public void destroy()
Overrides:
destroy in class GenericWindow