org.zkoss.calendar.event
Class CalendarDataEvent

java.lang.Object
  extended by org.zkoss.calendar.event.CalendarDataEvent

public class CalendarDataEvent
extends java.lang.Object

Defines an event that encapsulates changes to a date range.

Author:
jumperchen,jimmy

Field Summary
static int CONTENTS_CHANGED
          Identifies one or more changes in the lists contents.
static int INTERVAL_ADDED
          Identifies the addition of one or more contiguous items to the list.
static int INTERVAL_REMOVED
          Identifies the removal of one or more contiguous items from the list.
 
Constructor Summary
CalendarDataEvent(CalendarModel model, int type, CalendarEvent e, java.util.TimeZone timezone)
          Contructor.
CalendarDataEvent(CalendarModel model, int type, java.util.Date begin, java.util.Date end, java.util.TimeZone timezone)
          Deprecated. As of release 2.0-RC, replaced with CalendarDataEvent(CalendarModel model, int type, CalendarEvent e, TimeZone timezone)
 
Method Summary
 java.util.Date getBeginDate()
          Returns the begin date of the change range.
 CalendarEvent getCalendarEvent()
           
 java.util.Date getEndDate()
          Returns the end date of the change range.
 CalendarModel getModel()
          Returns the calendar model that fires this event.
 java.util.TimeZone getTimeZone()
          Return the time zone of the calendar
 int getType()
          Returns the event type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONTENTS_CHANGED

public static final int CONTENTS_CHANGED
Identifies one or more changes in the lists contents.

See Also:
Constant Field Values

INTERVAL_ADDED

public static final int INTERVAL_ADDED
Identifies the addition of one or more contiguous items to the list.

See Also:
Constant Field Values

INTERVAL_REMOVED

public static final int INTERVAL_REMOVED
Identifies the removal of one or more contiguous items from the list.

See Also:
Constant Field Values
Constructor Detail

CalendarDataEvent

public CalendarDataEvent(CalendarModel model,
                         int type,
                         java.util.Date begin,
                         java.util.Date end,
                         java.util.TimeZone timezone)
Deprecated. As of release 2.0-RC, replaced with CalendarDataEvent(CalendarModel model, int type, CalendarEvent e, TimeZone timezone)

Contructor.

Parameters:
type - one of CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED.

CalendarDataEvent

public CalendarDataEvent(CalendarModel model,
                         int type,
                         CalendarEvent e,
                         java.util.TimeZone timezone)
Contructor.

Parameters:
type - one of CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED.
Since:
1.1.1_50
Method Detail

getModel

public CalendarModel getModel()
Returns the calendar model that fires this event.


getType

public int getType()
Returns the event type. One of CONTENTS_CHANGED, INTERVAL_ADDED, INTERVAL_REMOVED.


getBeginDate

public java.util.Date getBeginDate()
Returns the begin date of the change range.


getEndDate

public java.util.Date getEndDate()
Returns the end date of the change range.


getTimeZone

public java.util.TimeZone getTimeZone()
Return the time zone of the calendar


getCalendarEvent

public CalendarEvent getCalendarEvent()
Since:
1.1.1_50 Return the CalendarEvent of the calendar

toString

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


Copyright © 2005-2008 Potix Corporation. All Rights Reserved.