2 * Copyright 2000-2021 Vaadin Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
16 package com.vaadin.v7.client.ui.calendar.schedule;
18 import java.util.Date;
20 import com.google.gwt.user.client.ui.HTML;
21 import com.vaadin.v7.client.ui.VCalendar;
24 * Represents a cell used in {@link WeeklyLongEvents}.
28 public class WeeklyLongEventsDateCell extends HTML implements HasTooltipKey {
30 private CalendarEvent calendarEvent;
31 private VCalendar calendar;
33 public WeeklyLongEventsDateCell() {
36 public void setDate(Date date) {
40 public Date getDate() {
44 public void setEvent(CalendarEvent event) {
45 calendarEvent = event;
48 public CalendarEvent getEvent() {
52 public void setCalendar(VCalendar calendar) {
53 this.calendar = calendar;
56 public VCalendar getCalendar() {
61 public Object getTooltipKey() {
62 if (calendarEvent != null) {
63 return calendarEvent.getIndex();