caltool.schedule_ui
Class ScheduleUI

java.lang.Object
  extended by mvp.View
      extended by caltool.schedule_ui.ScheduleUI
All Implemented Interfaces:
java.io.Serializable, java.util.Observer

public class ScheduleUI
extends mvp.View

Class ScheduleUI is the companion view for the Schedule model class. ScheduleUI contains all of the interface components needed to access model components of the Schedule object. The ScheduleMenu provides access to the four scheduling operations and the categories list. An input dialog view is defined for each of the four operations. The input dialog classes are named "ScheduleXDialog", where X = "Appointment", "Meeting", "Task", and "Event". These dialogs are used to gather input values for their corresponding method and to invoke the method when the user confirms the inputs with the 'OK' button.

The CategoriesEditor view provides access to the categories list component of the Schedule model. This dialog provides the canonical view of the Categories class. The CategoriesEditor is a subview of ScheduleUI in parallel with Categories being a submodel of Schedule.

See Also:
Serialized Form

Field Summary
protected  CategoriesEditor categoriesEditor
          The CategoriesEditor
protected  ScheduleAppointmentDialog scheduleAppointmentDialog
          The ScheduleAppointmentDialog
protected  ScheduleEventDialog scheduleEventDialog
          The ScheduleEventDialog
protected  ScheduleMeetingDialog scheduleMeetingDialog
          The ScheduleMeetingDialog
protected  ScheduleMenu scheduleMenu
          The ScheduleMenu
protected  ScheduleTaskDialog scheduleTaskDialog
          The ScheduleTaskDialog
 
Fields inherited from class mvp.View
closeAdapter, editable, model, screen, shown, widget, window
 
Constructor Summary
ScheduleUI(mvp.Screen screen, Schedule schedule, CalendarToolUI calToolUI)
          Construct this by constructing each of the component views.
 
Method Summary
 java.awt.Component compose()
          Call compose for each of the component views.
 CategoriesEditor getCategoriesEditor()
          Return the CategoriesEditor.
 ScheduleAppointmentDialog getScheduleAppointmentDialog()
          Return the ScheduleAppointmentDialog.
 ScheduleEventDialog getScheduleEventDialog()
          Return the ScheduleEventDialog.
 ScheduleMeetingDialog getScheduleMeetingDialog()
          Return the ScheduleMeetingDialog.
 ScheduleTaskDialog getScheduleTaskDialog()
          Return the ScheduleTaskDialog.
 
Methods inherited from class mvp.View
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setExitOnClose, setModel, show, show, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scheduleMenu

protected ScheduleMenu scheduleMenu
The ScheduleMenu


scheduleAppointmentDialog

protected ScheduleAppointmentDialog scheduleAppointmentDialog
The ScheduleAppointmentDialog


scheduleMeetingDialog

protected ScheduleMeetingDialog scheduleMeetingDialog
The ScheduleMeetingDialog


scheduleTaskDialog

protected ScheduleTaskDialog scheduleTaskDialog
The ScheduleTaskDialog


scheduleEventDialog

protected ScheduleEventDialog scheduleEventDialog
The ScheduleEventDialog


categoriesEditor

protected CategoriesEditor categoriesEditor
The CategoriesEditor

Constructor Detail

ScheduleUI

public ScheduleUI(mvp.Screen screen,
                  Schedule schedule,
                  CalendarToolUI calToolUI)
Construct this by constructing each of the component views.

Method Detail

compose

public java.awt.Component compose()
Call compose for each of the component views. As a convenience to dad (the CalendarToolUI), return the pulldown menu so it can be inserted into the top-level menubar.

Overrides:
compose in class mvp.View

getScheduleAppointmentDialog

public ScheduleAppointmentDialog getScheduleAppointmentDialog()
Return the ScheduleAppointmentDialog.


getScheduleMeetingDialog

public ScheduleMeetingDialog getScheduleMeetingDialog()
Return the ScheduleMeetingDialog.


getScheduleTaskDialog

public ScheduleTaskDialog getScheduleTaskDialog()
Return the ScheduleTaskDialog.


getScheduleEventDialog

public ScheduleEventDialog getScheduleEventDialog()
Return the ScheduleEventDialog.


getCategoriesEditor

public CategoriesEditor getCategoriesEditor()
Return the CategoriesEditor.