com.endeca.infront.cartridge
Class MediaBanner

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by com.endeca.infront.assembler.BasicContentItem
              extended by com.endeca.infront.cartridge.MediaBanner
All Implemented Interfaces:
ContentItem, Serializable, Cloneable, Map<String,Object>

public class MediaBanner
extends BasicContentItem

MediaBanner output model.

MediaBanner model represents a media object and destination link

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
MediaBanner(ContentItem pContentItem)
          Creates the MediaBanner output model, using the type and data present in the input ContentItem.
 
Method Summary
 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.
 
Methods inherited from class com.endeca.infront.assembler.BasicContentItem
getBooleanProperty, getIntProperty, getLongProperty, getType, getTypedProperty, setType
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

MediaBanner

public MediaBanner(ContentItem pContentItem)
Creates the MediaBanner output model, using the type and data present in the input ContentItem.

Method Detail

getLink

public Action getLink()
Returns the Action object used to construct the link which fires when the media is clicked. May be null.


setLink

public void setLink(Action link)
Sets the Action object used to construct the link which fires when the media is clicked.


getMedia

public MediaObject getMedia()
Returns the media object to be displayed.


setMedia

public void setMedia(MediaObject media)
Sets the media object to be displayed.



Copyright © 2012, Oracle and/or its affiliates. All rights reserved.