com.vaadin.ui.components.calendar
Class CalendarDateRange

java.lang.Object
  extended by com.vaadin.ui.components.calendar.CalendarDateRange
All Implemented Interfaces:
java.io.Serializable

public class CalendarDateRange
extends java.lang.Object
implements java.io.Serializable

Class for representing a date range.

Since:
7.1.0
Author:
Vaadin Ltd.
See Also:
Serialized Form

Constructor Summary
CalendarDateRange(java.util.Date start, java.util.Date end, java.util.TimeZone tz)
          Constructor
 
Method Summary
 java.util.Date getEnd()
          Get the end date of the date range
 java.util.Date getStart()
          Get the start date of the date range
 boolean inRange(java.util.Date date)
          Is a date in the date range
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarDateRange

public CalendarDateRange(java.util.Date start,
                         java.util.Date end,
                         java.util.TimeZone tz)
Constructor

Parameters:
start - The start date and time of the date range
end - The end date and time of the date range
Method Detail

getStart

public java.util.Date getStart()
Get the start date of the date range

Returns:
the start Date of the range

getEnd

public java.util.Date getEnd()
Get the end date of the date range

Returns:
the end Date of the range

inRange

public boolean inRange(java.util.Date date)
Is a date in the date range

Parameters:
date - The date to check
Returns:
true if the date range contains a date start and end of range inclusive; false otherwise

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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