com.vaadin.v7.client.ui.calendar.schedule.DateCellGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-compatibility-client Show documentation
Show all versions of vaadin-compatibility-client Show documentation
Vaadin 7 compatibility package for Vaadin 8
/*
* Copyright (C) 2000-2024 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.v7.client.ui.calendar.schedule;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* Internally used by the calendar.
*
* @since 7.1
*/
public class DateCellGroup {
private WeekGridMinuteTimeRange range;
private final List items;
public DateCellGroup(Integer index) {
items = new ArrayList();
items.add(index);
}
public WeekGridMinuteTimeRange getDateRange() {
return range;
}
public Date getStart() {
return range.getStart();
}
public Date getEnd() {
return range.getEnd();
}
public void setDateRange(WeekGridMinuteTimeRange range) {
this.range = range;
}
public List getItems() {
return items;
}
public void add(Integer index) {
items.add(index);
}
}