ilog.views.util.swing.calendar
Class IlvDefaultCalendarModel

java.lang.Object
  extended by ilog.views.util.swing.calendar.IlvAbstractCalendarModel
      extended by ilog.views.util.swing.calendar.IlvDefaultCalendarModel
All Implemented Interfaces:
IlvCalendarModel, Serializable

public class IlvDefaultCalendarModel
extends IlvAbstractCalendarModel

IlvDefaultCalendarModel is a default implementation of the IlvCalendarModel interface.

Since:
JViews 5.5
See Also:
Serialized Form

Constructor Summary
IlvDefaultCalendarModel()
          Creates a new calendar model with the default calendar value of today.
 
Method Summary
 Calendar getCalendar()
          Returns the current calendar value of the model.
 void setCalendar(Calendar calendar)
          Sets the current calendar value of the model.
 
Methods inherited from class ilog.views.util.swing.calendar.IlvAbstractCalendarModel
addCalendarModelListener, fireCalendarChanged, removeCalendarModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvDefaultCalendarModel

public IlvDefaultCalendarModel()
Creates a new calendar model with the default calendar value of today.

Method Detail

getCalendar

public Calendar getCalendar()
Returns the current calendar value of the model. Because Calendar objects are mutable, this method actually returns a copy of its internal calendar value.

Returns:
The current calendar value of the model.
See Also:
IlvCalendarModel.setCalendar(java.util.Calendar)

setCalendar

public void setCalendar(Calendar calendar)
Sets the current calendar value of the model. Because Calendar objects are mutable, this method actually stores a copy of the calendar argument.

Parameters:
calendar - The new calendar value.
See Also:
IlvCalendarModel.getCalendar()


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.