001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/presentation/tags/sakai_2-4-1/api-impl/src/java/org/sakaiproject/component/app/presentation/PrSlide.java $
003: * $Id: PrSlide.java 8654 2006-05-02 01:40:40Z ggolden@umich.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.sakaiproject.component.app.presentation;
021:
022: import java.io.Serializable;
023:
024: /**
025: *
026: * @author Mark Norton
027: *
028: * A slide is a single page of a presentation. Each slide has a type, which usually
029: * will be consistent throughout a presentation, but is not required to be so. Each
030: * slide may have an optional displayName.
031: */
032: public class PrSlide implements
033: org.sakaiproject.api.app.presentation.Slide {
034:
035: private String url = null;
036:
037: private Serializable content = null;
038:
039: private String displayName = null;
040:
041: private String contentType = null;
042:
043: /** Creates a new Slide given content and type */
044: public PrSlide(Serializable content, String type) {
045: this .content = content;
046: this .contentType = type;
047: }
048:
049: /** Creates a new Slide given url, name, and type. */
050: public PrSlide(String url, String name, String type) {
051: this .url = url;
052: this .displayName = name;
053: this .contentType = type;
054: }
055:
056: /**
057: * Get the URL for this slide.
058: * @return slide URL.
059: */
060: public String getUrl() {
061: return this .url;
062: }
063:
064: /**
065: * Set the URL for this slide.
066: * @param url
067: */
068: public void setUrl(String url) {
069: this .url = url;
070: }
071:
072: /**
073: * Return the content of this slide.
074: *
075: * @author Mark Norton
076: */
077: public Serializable getContent() {
078: return this .content;
079: }
080:
081: /**
082: * Set the content of this slide.
083: *
084: * @author Mark Norton
085: */
086: public void setContent(Serializable content) {
087: this .content = content;
088: }
089:
090: /**
091: * Get the display name (title) of this slide.
092: *
093: * @author Mark Norton
094: */
095: public String getDisplayName() {
096: return this .displayName;
097: }
098:
099: /**
100: * Set the display name of this slide.
101: *
102: * @author Mark Norton
103: */
104: public void setDisplayName(String name) {
105: this .displayName = name;
106: }
107:
108: /**
109: * Get the content type of this slide.
110: *
111: * @author Mark Norton
112: */
113: public String getType() {
114: return this .contentType;
115: }
116:
117: /**
118: * Set the content type of this slide.
119: *
120: * @author Mark Norton
121: */
122: public void setType(String type) {
123: this.contentType = type;
124: }
125:
126: }
|