package com.bug;

import java.util.Date;

import com.smartgwt.client.widgets.calendar.CalendarEvent;

public class TimelineData {  
	  
    private static CalendarEvent[] records;  
    private static Date today = new Date();  
    private static int year = today.getYear();  
    private static int month = today.getMonth();  
    private static int start = today.getDate();  
  
    public TimelineData() {  
    }  
    public static CalendarEvent[] getRecords() {  
        if (records == null) {  
            records = getNewRecords();  
        }  
        return records;  
    }  
  
    public static CalendarEvent[] getNewRecords() {  
        return new CalendarEvent[]{  
                new CalendarEvent(1, "Add new Timeline view", "Add a new calendar Timeline component", new Date(year, month, start + 2, 0, 0, 0), new Date(year, month, start + 8, 0, 59, 0), "darcyFeeney"),  
        };  
    }  
}