OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
137 ilm 1
package org.jopencalendar.print;
2
 
3
import java.util.ArrayList;
4
import java.util.List;
5
import org.jopencalendar.model.JCalendarItem;
6
 
7
public class CalendarItemPage {
8
 
9
    private final List<JCalendarItem> items = new ArrayList<JCalendarItem>();
10
    private final List<Double> heights = new ArrayList<Double>();
11
    private final List<Boolean> showDates = new ArrayList<Boolean>();
12
    private int pageIndex;
13
 
14
    public void add(JCalendarItem item) {
15
        items.add(item);
16
    }
17
 
18
    public List<JCalendarItem> getItems() {
19
        return items;
20
    }
21
 
22
    public void addHeight(Double h) {
23
        heights.add(h);
24
    }
25
 
26
    public List<Double> getHeights() {
27
        return heights;
28
    }
29
 
30
    public void addShowDate(Boolean showDate) {
31
        showDates.add(showDate);
32
    }
33
 
34
    public List<Boolean> getShowDates() {
35
        return showDates;
36
    }
37
 
38
    public int getPageIndex() {
39
        return pageIndex;
40
    }
41
 
42
    public void setPageIndex(int pageIndex) {
43
        this.pageIndex = pageIndex;
44
    }
45
}