com.vaadin.client.ui.calendar.schedule
Class MonthEventLabel

java.lang.Object
  extended by HTML
      extended by com.vaadin.client.ui.calendar.schedule.MonthEventLabel
All Implemented Interfaces:
HasTooltipKey

public class MonthEventLabel
extends HTML
implements HasTooltipKey

The label in a month cell

Since:
7.1

Constructor Summary
MonthEventLabel()
          Default constructor
 
Method Summary
 CalendarEvent getCalendarEvent()
           
 java.lang.Object getTooltipKey()
          Gets the key associated for the Widget implementing this interface.
 boolean isTimeSpecificEvent()
          Is the event bound to a specific time
 void setCalendar(VCalendar calendar)
          Set the Calendar instance this label belongs to
 void setCalendarEvent(CalendarEvent e)
           
 void setCaption(java.lang.String caption)
          Set the caption of the event label
 void setEventIndex(int index)
          Set the (server side) index of the event
 void setHTML(java.lang.String html)
           
 void setTime(java.util.Date date)
          Set the time of the event label
 void setTimeSpecificEvent(boolean timeSpecificEvent)
          Is the event bound to a specific time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonthEventLabel

public MonthEventLabel()
Default constructor

Method Detail

setCalendarEvent

public void setCalendarEvent(CalendarEvent e)

setTime

public void setTime(java.util.Date date)
Set the time of the event label

Parameters:
date - The date object that specifies the time

setCaption

public void setCaption(java.lang.String caption)
Set the caption of the event label

Parameters:
caption - The caption string, can be HTML

setEventIndex

public void setEventIndex(int index)
Set the (server side) index of the event

Parameters:
index - The integer index

setCalendar

public void setCalendar(VCalendar calendar)
Set the Calendar instance this label belongs to

Parameters:
calendar - The calendar instance

isTimeSpecificEvent

public boolean isTimeSpecificEvent()
Is the event bound to a specific time

Returns:

setTimeSpecificEvent

public void setTimeSpecificEvent(boolean timeSpecificEvent)
Is the event bound to a specific time

Parameters:
timeSpecificEvent - True if the event is bound to a time, false if it is only bound to the day

setHTML

public void setHTML(java.lang.String html)

getTooltipKey

public java.lang.Object getTooltipKey()
Description copied from interface: HasTooltipKey
Gets the key associated for the Widget implementing this interface. This key is used for getting a tooltip title identified by the key

Specified by:
getTooltipKey in interface HasTooltipKey
Returns:
the tooltip key

getCalendarEvent

public CalendarEvent getCalendarEvent()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.