public class MediaBanner
extends BasicContentItem
MediaBanner
output model.
MediaBanner model represents a media object and destination link
Action
MediaObject
Constructor and Description |
---|
MediaBanner(ContentItem pContentItem)
Creates the
MediaBanner output model, using the
type and data present in the input ContentItem . |
Modifier and Type | Method and Description |
---|---|
Action |
getLink()
Returns the
Action object used to construct the link
which fires when the media is clicked. |
MediaObject |
getMedia()
Returns the media object to be displayed.
|
void |
setLink(Action link)
Sets the
Action object used to construct the link
which fires when the media is clicked. |
void |
setMedia(MediaObject media)
Sets the media object to be displayed.
|
public MediaBanner(ContentItem pContentItem)
MediaBanner
output model, using the
type and data present in the input ContentItem
.public Action getLink()
Action
object used to construct the link
which fires when the media is clicked. May be null.public void setLink(Action link)
Action
object used to construct the link
which fires when the media is clicked.public MediaObject getMedia()
public void setMedia(MediaObject media)
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.