java.lang.Object
org.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. |
|
Constructor Summary |
private |
MediaUtil()
Don't instantiate MediaUtil. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
- logger.
MediaUtil
private MediaUtil()
- Don't instantiate MediaUtil.
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)