org.sakaiproject.component.app.presentation
Class PrPresentation

java.lang.Object
  extended byorg.sakaiproject.component.app.presentation.PrPresentation
All Implemented Interfaces:
Presentation, Serializable

public class PrPresentation
extends Object
implements Presentation

The Presentation class allows content to be grouped together in a linear sequence. Any type of presentation control is handled by the presentation manager.

Author:
Mark Norton
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.sakaiproject.api.app.presentation.Presentation
PRESENTATION_AUTHOR, PRESENTATION_CREATED, PRESENTATION_TITLE
 
Constructor Summary
PrPresentation(org.osid.shared.Id id)
          Creates a new instance of Presentation
PrPresentation(org.osid.shared.Id id, List slides)
          Creates a new instances of Presentation given a list of slides.
PrPresentation(org.osid.shared.Id id, List slides, String title, Time time)
           
 
Method Summary
 void addSlide(Slide slide)
          Append a slide to the end of the slide list.
 void deleteSlide(int position)
          Delete the slide at the given position.
 org.osid.shared.Id getId()
          Return the id of this presentation.
 String getModificationDate()
           
 Slide getSlide(int offset)
          Return the slide at the given offset.
 int getSlideCount()
          Return the number of slides in this presentation.
 List getSlides()
          Return an iterator which lists the slides in this presentation.
 String getTitle()
           
 void insertSlide(int position, Slide slide)
          Insert a slide at the position given.
 void setId(org.osid.shared.Id id)
          Set the id of this presentation.
 void setTitle(String title)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrPresentation

public PrPresentation(org.osid.shared.Id id)
Creates a new instance of Presentation


PrPresentation

public PrPresentation(org.osid.shared.Id id,
                      List slides)
Creates a new instances of Presentation given a list of slides.


PrPresentation

public PrPresentation(org.osid.shared.Id id,
                      List slides,
                      String title,
                      Time time)
Method Detail

getId

public org.osid.shared.Id getId()
Return the id of this presentation.

Specified by:
getId in interface Presentation

setId

public void setId(org.osid.shared.Id id)
Set the id of this presentation.

Specified by:
setId in interface Presentation

getTitle

public String getTitle()
Specified by:
getTitle in interface Presentation

setTitle

public void setTitle(String title)

getModificationDate

public String getModificationDate()
Specified by:
getModificationDate in interface Presentation

getSlides

public List getSlides()
Return an iterator which lists the slides in this presentation.

Specified by:
getSlides in interface Presentation

getSlide

public Slide getSlide(int offset)
Return the slide at the given offset.

Specified by:
getSlide in interface Presentation

addSlide

public void addSlide(Slide slide)
Append a slide to the end of the slide list.

Specified by:
addSlide in interface Presentation

insertSlide

public void insertSlide(int position,
                        Slide slide)
Insert a slide at the position given.

Specified by:
insertSlide in interface Presentation

getSlideCount

public int getSlideCount()
Return the number of slides in this presentation.

Specified by:
getSlideCount in interface Presentation

deleteSlide

public void deleteSlide(int position)
Delete the slide at the given position.

Specified by:
deleteSlide in interface Presentation