org.jasig.portal.channels
Class CImage

java.lang.Object
  extended by org.jasig.portal.channels.BaseChannel
      extended by org.jasig.portal.channels.CImage
All Implemented Interfaces:
ICacheable, IChannel

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class CImage
extends BaseChannel
implements ICacheable, IChannel

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

Channel parameters:

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

Field Summary
static String ALT_TEXT_CHANNEL_PARAM_NAME
          Deprecated.  
 
Fields inherited from class org.jasig.portal.channels.BaseChannel
log, runtimeData, staticData
 
Fields inherited from interface org.jasig.portal.ICacheable
CHANNEL_CACHE_KEY_INSTANCE_SCOPE, CHANNEL_CACHE_KEY_SCOPE_PARAM_NAME, CHANNEL_CACHE_KEY_SYSTEM_SCOPE
 
Constructor Summary
CImage()
          Deprecated.  
 
Method Summary
 ChannelCacheKey generateKey()
          Deprecated. Requests the channel to generate a key uniquely describing its current state, and a description of key usage.
 boolean isCacheValid(Object validity)
          Deprecated. Requests the channel to verify validity of the retrieved cache based on the validator object.
 void renderXML(ContentHandler out)
          Deprecated. Output channel content to the portal
 
Methods inherited from class org.jasig.portal.channels.BaseChannel
getRuntimeProperties, receiveEvent, setRuntimeData, setStaticData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jasig.portal.IChannel
getRuntimeProperties, receiveEvent, setRuntimeData, setStaticData
 

Field Detail

ALT_TEXT_CHANNEL_PARAM_NAME

public static final String ALT_TEXT_CHANNEL_PARAM_NAME
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

CImage

public CImage()
Deprecated. 
Method Detail

renderXML

public void renderXML(ContentHandler out)
               throws PortalException
Deprecated. 
Output channel content to the portal

Specified by:
renderXML in interface IChannel
Overrides:
renderXML in class BaseChannel
Parameters:
out - a sax content handler
Throws:
PortalException

generateKey

public ChannelCacheKey generateKey()
Deprecated. 
Description copied from interface: ICacheable
Requests the channel to generate a key uniquely describing its current state, and a description of key usage.

Specified by:
generateKey in interface ICacheable

isCacheValid

public boolean isCacheValid(Object validity)
Deprecated. 
Description copied from interface: ICacheable
Requests the channel to verify validity of the retrieved cache based on the validator object.

Specified by:
isCacheValid in interface ICacheable


Copyright © 2010 Jasig. All Rights Reserved.