create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / gui / help / tours / SlideSet.java
1 package net.sf.openrocket.gui.help.tours;
2
3 import java.util.ArrayList;
4 import java.util.List;
5
6 import javax.swing.text.html.StyleSheet;
7
8 /**
9  * A set of slides that composes a tour.
10  * 
11  * A slide set contains a (localized, plain-text) title for the tour, a (possibly
12  * multiline, HTML-formatted) description and a number of slides.
13  * 
14  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
15  */
16 public class SlideSet {
17         
18         private String title = "";
19         private String description = "";
20         private final List<Slide> slides = new ArrayList<Slide>();
21         private StyleSheet styleSheet = new StyleSheet();
22         
23         
24
25         public String getTitle() {
26                 return title;
27         }
28         
29         public void setTitle(String name) {
30                 this.title = name;
31         }
32         
33         public String getDescription() {
34                 return description;
35         }
36         
37         public void setDescription(String description) {
38                 this.description = description;
39         }
40         
41         
42         public Slide getSlide(int index) {
43                 return this.slides.get(index);
44         }
45         
46         public void addSlide(Slide slide) {
47                 this.slides.add(slide);
48         }
49         
50         public int getSlideCount() {
51                 return this.slides.size();
52         }
53         
54         public StyleSheet getStyleSheet() {
55                 return styleSheet;
56         }
57         
58         public void setStyleSheet(StyleSheet styleSheet) {
59                 this.styleSheet = styleSheet;
60         }
61         
62 }