caltool.view
Class SmallDayView

java.lang.Object
  extended by java.util.Observable
      extended by mvp.Model
          extended by caltool.view.SmallDayView
All Implemented Interfaces:
java.io.Serializable

public class SmallDayView
extends mvp.Model

A SmallDayView is the model of a day in a monthly agenda. It consists of a date number, a day name, and a list of zero or more scheduled item descriptors. The items list is represented as a DefaultListModel to facilitate its display.

See Also:
Serialized Form

Field Summary
protected  int date
          The date number
protected  DayName day
          The day name
protected  javax.swing.DefaultListModel items
          The list of item descriptors
 
Fields inherited from class mvp.Model
view
 
Constructor Summary
SmallDayView(int date, DayName day, javax.swing.DefaultListModel items)
          Construct this with the given date, day, and items values.
 
Method Summary
 int getDate()
          Return the date number.
 DayName getDay()
          Return the day name.
 javax.swing.DefaultListModel getItems()
          Return the list of item descriptors.
 
Methods inherited from class mvp.Model
dump, exit, getView, setView
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

protected int date
The date number


day

protected DayName day
The day name


items

protected javax.swing.DefaultListModel items
The list of item descriptors

Constructor Detail

SmallDayView

public SmallDayView(int date,
                    DayName day,
                    javax.swing.DefaultListModel items)
Construct this with the given date, day, and items values.

Method Detail

getDate

public int getDate()
Return the date number.


getDay

public DayName getDay()
Return the day name.


getItems

public javax.swing.DefaultListModel getItems()
Return the list of item descriptors.