All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.icefaces.ace.model.schedule.ScheduleEvent Maven / Gradle / Ivy

/*
 * Copyright 2004-2014 ICEsoft Technologies Canada Corp.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an "AS
 * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

package org.icefaces.ace.model.schedule;

import java.io.Serializable;
import java.util.Date;

public class ScheduleEvent implements Serializable {

	public ScheduleEvent() {}

	public ScheduleEvent(String id, String title, Date startDate, Date endDate, 
			boolean allDay, String location, String notes, String styleClass) {
		this.id = id;
		this.title = title;
		this.startDate = startDate;
		this.endDate = endDate;
		this.allDay = allDay;
		this.location = location;
		this.notes = notes;
		this.styleClass = styleClass;
	}

	public ScheduleEvent(String title, Date startDate, Date endDate, 
			boolean allDay, String location, String notes) {
		this.title = title;
		this.startDate = startDate;
		this.endDate = endDate;
		this.allDay = allDay;
		this.location = location;
		this.notes = notes;
	}

	public ScheduleEvent(String title, Date startDate, Date endDate, String location) {
		this.title = title;
		this.startDate = startDate;
		this.endDate = endDate;
		this.location = location;
	}

	private String id;
	/**
     * For app-specific, business logic use.
     */
    public String getId() { return id; }
	/**
     * For app-specific, business logic use.
     */
	public void setId(String id) { this.id = id; }

	private String title;
    public String getTitle() { return title; }
	public void setTitle(String title) { this.title = title; }

	private Date startDate;
    public Date getStartDate() { return startDate; }
	public void setStartDate(Date startDate) { this.startDate = startDate; }

	private Date endDate;
    public Date getEndDate() { return endDate; }
	public void setEndDate(Date endDate) { this.endDate = endDate; }

	private boolean allDay;
    public boolean isAllDay() { return allDay; }
	public void setAllDay(boolean allDay) { this.allDay = allDay; }

	private String location;
    public String getLocation() { return location; }
	public void setLocation(String location) { this.location = location; }

	private String notes;
    public String getNotes() { return notes; }
	public void setNotes(String notes) { this.notes = notes; }

	private String styleClass;
    public String getStyleClass() { return styleClass; }
	public void setStyleClass(String styleClass) { this.styleClass = styleClass; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy