org.jasig.portal.portlets.image
Class ImagePortletController

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.portlet.context.PortletApplicationObjectSupport
          extended by org.springframework.web.portlet.handler.PortletContentGenerator
              extended by org.springframework.web.portlet.mvc.AbstractController
                  extended by org.jasig.portal.portlets.image.ImagePortletController
All Implemented Interfaces:
ApplicationContextAware, PortletContextAware, Controller

public class ImagePortletController
extends AbstractController

A simple portlet which renders an image along with an optional caption and subcaption.

Portlet preferences:

NameDescriptionExampleRequired
img-uriThe URI of the image to displayhttp://webcam.its.hawaii.edu/uhmwebcam/image01.jpgyes
img-widthThe width of the image to display320no
img-heightThe height of the image to display240no
img-borderThe border of the image to display0no
img-linkA URI to be used as an href for the imagehttp://www.hawaii.edu/visitor/#webcamsno
captionA caption of the image to displayAlmost Live Shot of Hamilton Library Front Entranceno
subcaptionThe subcaption of the image to displayUpdated Once per Minute During Daylight Hoursno
alt-textText to include as the 'alt' attribute of the img tagAlmost live shot of Hamilton library front enteranceno, but highly recommended in support of non-visual browsers

Version:
$Revision: 19776 $
Author:
Ken Weiner, kweiner@unicon.net, Jen Bourey, jbourey@unicon.net

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
ImagePortletController()
           
 
Method Summary
protected  ModelAndView handleRenderRequestInternal(RenderRequest request, RenderResponse response)
           
 
Methods inherited from class org.springframework.web.portlet.mvc.AbstractController
handleActionRequest, handleActionRequestInternal, handleRenderRequest, isRenderWhenMinimized, isSynchronizeOnSession, setRenderWhenMinimized, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.portlet.handler.PortletContentGenerator
applyCacheSeconds, cacheForSeconds, check, checkAndPrepare, checkAndPrepare, getCacheSeconds, isRequireSession, preventCaching, setCacheSeconds, setRequireSession
 
Methods inherited from class org.springframework.web.portlet.context.PortletApplicationObjectSupport
getPortletContext, getTempDir, isContextRequired, setPortletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImagePortletController

public ImagePortletController()
Method Detail

handleRenderRequestInternal

protected ModelAndView handleRenderRequestInternal(RenderRequest request,
                                                   RenderResponse response)
                                            throws Exception
Overrides:
handleRenderRequestInternal in class AbstractController
Throws:
Exception


Copyright © 2010 Jasig. All Rights Reserved.