|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.portlet.context.PortletApplicationObjectSupport
org.springframework.web.portlet.handler.PortletContentGenerator
org.springframework.web.portlet.mvc.AbstractController
org.jasig.portal.portlets.image.ImagePortletController
public class ImagePortletController
A simple portlet which renders an image along with an optional caption and subcaption.
Portlet preferences:
| Name | Description | Example | Required |
|---|---|---|---|
| img-uri | The URI of the image to display | http://webcam.its.hawaii.edu/uhmwebcam/image01.jpg | yes |
| img-width | The width of the image to display | 320 | no |
| img-height | The height of the image to display | 240 | no |
| img-border | The border of the image to display | 0 | no |
| img-link | A URI to be used as an href for the image | http://www.hawaii.edu/visitor/#webcams | no |
| caption | A caption of the image to display | Almost Live Shot of Hamilton Library Front Entrance | no |
| subcaption | The subcaption of the image to display | Updated Once per Minute During Daylight Hours | no |
| alt-text | Text to include as the 'alt' attribute of the img tag | Almost live shot of Hamilton library front enterance | no, but highly recommended in support of non-visual browsers |
| 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 |
|---|
public ImagePortletController()
| Method Detail |
|---|
protected ModelAndView handleRenderRequestInternal(RenderRequest request,
RenderResponse response)
throws Exception
handleRenderRequestInternal in class AbstractControllerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||