public class

SlideModel

extends Model
implements List<E> EventListener
java.lang.Object
   ↳ com.android.mms.model.Model
     ↳ com.android.mms.model.SlideModel

Summary

Constants
String TAG
[Expand]
Inherited Fields
From class com.android.mms.model.Model
Public Constructors
SlideModel(SlideshowModel slideshow)
SlideModel(int duration, SlideshowModel slideshow)
SlideModel(int duration, ArrayList<MediaModel> mediaList)
Create a SlideModel with exist media collection.
Public Methods
boolean add(MediaModel object)
Add a MediaModel to the slide.
void add(int location, MediaModel object)
boolean addAll(int location, Collection<? extends MediaModel> collection)
boolean addAll(Collection<? extends MediaModel> collection)
void clear()
boolean contains(Object object)
boolean containsAll(Collection<?> collection)
void decreaseMessageSize(int decreaseSize)
void decreaseSlideSize(int decreaseSize)
MediaModel get(int location)
AudioModel getAudio()
int getDuration()
short getFill()
ImageModel getImage()
int getSlideSize()
TextModel getText()
VideoModel getVideo()
void handleEvent(Event evt)
This method is called whenever an event occurs of the type for which the EventListener interface was registered.
boolean hasAudio()
boolean hasImage()
boolean hasText()
boolean hasVideo()
void increaseMessageSize(int increaseSize)
void increaseSlideSize(int increaseSize)
int indexOf(Object object)
boolean isEmpty()
boolean isVisible()
Iterator<MediaModel> iterator()
int lastIndexOf(Object object)
ListIterator<MediaModel> listIterator()
ListIterator<MediaModel> listIterator(int location)
boolean remove(Object object)
MediaModel remove(int location)
boolean removeAll(Collection<?> collection)
boolean removeAudio()
boolean removeImage()
boolean removeText()
boolean removeVideo()
boolean retainAll(Collection<?> collection)
MediaModel set(int location, MediaModel object)
void setDuration(int duration)
void setFill(short fill)
void setParent(SlideshowModel parent)
void setVisible(boolean visible)
int size()
List<MediaModel> subList(int start, int end)
<T> T[] toArray(T[] array)
Object[] toArray()
void updateDuration(int duration)
Protected Methods
void registerModelChangedObserverInDescendants(IModelChangedObserver observer)
void unregisterAllModelChangedObserversInDescendants()
void unregisterModelChangedObserverInDescendants(IModelChangedObserver observer)
[Expand]
Inherited Methods
From class com.android.mms.model.Model
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List
From interface org.w3c.dom.events.EventListener

Constants

public static final String TAG

Constant Value: "Mms/slideshow"

Public Constructors

public SlideModel (SlideshowModel slideshow)

public SlideModel (int duration, SlideshowModel slideshow)

public SlideModel (int duration, ArrayList<MediaModel> mediaList)

Create a SlideModel with exist media collection.

Parameters
duration The duration of the slide.
mediaList The exist media collection.
Throws
IllegalStateException One or more media in the mediaList cannot be added into the slide due to a slide cannot contain image and video or audio and video at the same time.

Public Methods

public boolean add (MediaModel object)

Add a MediaModel to the slide. If the slide has already contained a media object in the same type, the media object will be replaced by the new one.

Parameters
object A media object to be added into the slide.
Returns
  • true
Throws
IllegalStateException One or more media in the mediaList cannot be added into the slide due to a slide cannot contain image and video or audio and video at the same time.
ContentRestrictionException when can not add this object.

public void add (int location, MediaModel object)

public boolean addAll (int location, Collection<? extends MediaModel> collection)

public boolean addAll (Collection<? extends MediaModel> collection)

public void clear ()

public boolean contains (Object object)

public boolean containsAll (Collection<?> collection)

public void decreaseMessageSize (int decreaseSize)

public void decreaseSlideSize (int decreaseSize)

public MediaModel get (int location)

public AudioModel getAudio ()

public int getDuration ()

Returns
  • the mDuration

public short getFill ()

Returns
  • the mFill

public ImageModel getImage ()

public int getSlideSize ()

public TextModel getText ()

public VideoModel getVideo ()

public void handleEvent (Event evt)

This method is called whenever an event occurs of the type for which the EventListener interface was registered.

Parameters
evt The Event contains contextual information about the event. It also contains the stopPropagation and preventDefault methods which are used in determining the event's flow and default action.

public boolean hasAudio ()

public boolean hasImage ()

public boolean hasText ()

public boolean hasVideo ()

public void increaseMessageSize (int increaseSize)

public void increaseSlideSize (int increaseSize)

public int indexOf (Object object)

public boolean isEmpty ()

public boolean isVisible ()

Returns
  • the mVisible

public Iterator<MediaModel> iterator ()

public int lastIndexOf (Object object)

public ListIterator<MediaModel> listIterator ()

public ListIterator<MediaModel> listIterator (int location)

public boolean remove (Object object)

public MediaModel remove (int location)

public boolean removeAll (Collection<?> collection)

public boolean removeAudio ()

public boolean removeImage ()

public boolean removeText ()

public boolean removeVideo ()

public boolean retainAll (Collection<?> collection)

public MediaModel set (int location, MediaModel object)

public void setDuration (int duration)

Parameters
duration the mDuration to set

public void setFill (short fill)

Parameters
fill the mFill to set

public void setParent (SlideshowModel parent)

public void setVisible (boolean visible)

Parameters
visible the mVisible to set

public int size ()

public List<MediaModel> subList (int start, int end)

public T[] toArray (T[] array)

public Object[] toArray ()

public void updateDuration (int duration)

Protected Methods

protected void registerModelChangedObserverInDescendants (IModelChangedObserver observer)

protected void unregisterAllModelChangedObserversInDescendants ()

protected void unregisterModelChangedObserverInDescendants (IModelChangedObserver observer)