com.googlecode.wicket.jquery.ui.calendar
Class CalendarModel

java.lang.Object
  extended by org.apache.wicket.model.LoadableDetachableModel<List<? extends CalendarEvent>>
      extended by com.googlecode.wicket.jquery.ui.calendar.CalendarModel
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<List<? extends CalendarEvent>>

public abstract class CalendarModel
extends org.apache.wicket.model.LoadableDetachableModel<List<? extends CalendarEvent>>

Base class for implementing the list model of CalendarEvent to be retrieved.
Calendar widget takes those model in constructor; the inheriting class should be able to LoadableDetachableModel.load() events depending on the interval defined by getStart() and getEnd() dates.

Author:
Sebastien Briquet - sebfz1
See Also:
Serialized Form

Constructor Summary
CalendarModel()
          Constructor
 
Method Summary
 Date getEnd()
          Gets the end date, to be used to LoadableDetachableModel.load() CalendarEvents
 Date getStart()
          Gets the start date, to be used to LoadableDetachableModel.load() CalendarEvents
 
Methods inherited from class org.apache.wicket.model.LoadableDetachableModel
detach, getObject, isAttached, load, onAttach, onDetach, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarModel

public CalendarModel()
Constructor

Method Detail

getStart

public final Date getStart()
Gets the start date, to be used to LoadableDetachableModel.load() CalendarEvents

Returns:
the start date

getEnd

public Date getEnd()
Gets the end date, to be used to LoadableDetachableModel.load() CalendarEvents

Returns:
the start date


Copyright © 2013 7thWeb. All Rights Reserved.