Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.displaytag.util
Class MediaUtil  view MediaUtil download MediaUtil.java

java.lang.Object
  extended byorg.displaytag.util.MediaUtil

public final class MediaUtil
extends java.lang.Object

This class provides services for configuring and determining the list of media types an instance of SupportsMedia supports. (Background: ColumnTag, FooterTag and CaptionTag can be configured to support a set of media types. This class factors the logic for setting and determining the media instances these objects support)

Version:
$Revision$ ($Author$)

Nested Class Summary
static interface MediaUtil.SupportsMedia
          Defines a type of object that can support a list of media types.
 
Field Summary
private static org.apache.commons.logging.Log log
          logger.
 
Constructor Summary
private MediaUtil()
          Don't instantiate MediaUtil.
 
Method Summary
static boolean availableForMedia(MediaUtil.SupportsMedia mediaSupporter, org.displaytag.properties.MediaTypeEnum mediaType)
          Is this media supporter configured for the media type? (Background: Factored from ColumnTag)
static void setMedia(MediaUtil.SupportsMedia mediaSupporter, java.lang.String media)
          Configures the media supported by an object that implements SupportsMedia.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
logger.

Constructor Detail

MediaUtil

private MediaUtil()
Don't instantiate MediaUtil.

Method Detail

setMedia

public static void setMedia(MediaUtil.SupportsMedia mediaSupporter,
                            java.lang.String media)
Configures the media supported by an object that implements SupportsMedia. (Background: factored from ColumnTag)


availableForMedia

public static boolean availableForMedia(MediaUtil.SupportsMedia mediaSupporter,
                                        org.displaytag.properties.MediaTypeEnum mediaType)
Is this media supporter configured for the media type? (Background: Factored from ColumnTag)