public class MediaBannerConfig extends BasicContentItem
MediaBannerConfig
configuration model.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MediaBannerConfig()
Creates an empty
MediaBannerConfig . |
MediaBannerConfig(ContentItem pContentItem)
Creates a copy of the specified
ContentItem , and returns it as an instance of
MediaBannerConfig . |
MediaBannerConfig(String pType)
Creates an empty
MediaBannerConfig with the specified type. |
Modifier and Type | Method and Description |
---|---|
LinkBuilder |
getLink()
Returns the
LinkBuilder object used to construct the link
which fires when the media is clicked (if desired). |
MediaObject |
getMedia()
Returns the media object to be displayed.
|
void |
setLink(LinkBuilder link)
Sets the
LinkBuilder object used to construct the link
which fires when the media is clicked. |
void |
setMedia(MediaObject media)
Sets the media object to be displayed.
|
getBooleanProperty, getIntProperty, getLongProperty, getType, getTypedProperty, setType
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
equals, hashCode, toString
public MediaBannerConfig()
MediaBannerConfig
.public MediaBannerConfig(String pType)
MediaBannerConfig
with the specified type.pType
- a value that will be used as the typeBasicContentItem.getType()
public MediaBannerConfig(ContentItem pContentItem)
ContentItem
, and returns it as an instance of
MediaBannerConfig
.public LinkBuilder getLink()
LinkBuilder
object used to construct the link
which fires when the media is clicked (if desired). May be null.public void setLink(LinkBuilder link)
LinkBuilder
object used to construct the link
which fires when the media is clicked. May be null.public MediaObject getMedia()
CartridgeHandlerException
will
be thrown from MediaBannerHandler.preprocess(MediaBannerConfig)
.public void setMedia(MediaObject media)
CartridgeHandlerException
will
be thrown from MediaBannerHandler.preprocess(MediaBannerConfig)
.Copyright © 2013, Oracle and/or its affiliates. All rights reserved.