|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmvp.View
caltool.caltool_ui.CalendarToolWindow
caltool.schedule_ui.ScheduleAppointmentDialog
caltool.schedule_ui.ScheduleTaskDialog
public class ScheduleTaskDialog
Class ScheduleTaskDialog provides a view of Task as an input to the scheduleTask method. Hence, the dialog is a view of both an Task object as well as the scheduleTask method. The data-entry components of the dialog constitute the Task view. The 'OK' button is the view of the scheduleTask method.
For expedience, ScheduleTaskDialog extends ScheduleAppointmentDialog. Appointment and task dialogs have a significant amount of structure in common, though there are some key differences that require specialiation here. The additional design comments in the definition of ScheduleAppointmentDialog are generally relevant here.
Field Summary |
---|
Fields inherited from class caltool.schedule_ui.ScheduleAppointmentDialog |
---|
categoryComboBox, detailsTextArea, durationTextField, endDateLabel, endDateTextField, locationComboBox, maxComponentHeight, maxComponentWidth, panel, priorityComboBox, recurringInfo, remindInfo, securityComboBox, startDateLabel, startDateTextField, startTimeTextField, titleTextField |
Fields inherited from class caltool.caltool_ui.CalendarToolWindow |
---|
calToolUI |
Fields inherited from class mvp.View |
---|
closeAdapter, editable, model, screen, shown, widget, window |
Constructor Summary | |
---|---|
ScheduleTaskDialog(mvp.Screen screen,
Schedule schedule,
CalendarToolUI calToolUI)
Construct this with the given Schedule as companion model. |
Method Summary | |
---|---|
protected void |
clear()
Clear each of the text fields of this to empty. |
java.awt.Component |
compose()
Compose this in six parts: (1) a top part consisting of the title, date, end date, due time, and duration components; (2) a part consisting of recurring info components; (3) a middle part with category, security, and priority; (4) reminder info components; (5) details components; (6) the bottom row consisting of the 'OK', 'Clear', and 'Cancel' buttons. |
protected javax.swing.Box |
composeButtonRow()
Compose the buttons row with three JButtons. |
protected javax.swing.Box |
composeEndDateRow()
Compose the end date row as a label/textField pair. |
protected javax.swing.Box |
composeMiddlePart()
Compose the middle part of the dialog, consisting of the category, location, security, and priority. |
protected javax.swing.Box |
composePriorityRow()
Compose the priority row using two pairs of labels and text fields. |
protected javax.swing.Box |
composeStartDateRow()
Compose the start date row using two pairs of labels and text fields. |
Methods inherited from class caltool.schedule_ui.ScheduleAppointmentDialog |
---|
composeCategorySecurityRow, composeDetails, composeLocationPriorityRow, composeRecurringInfo, composeRemindInfo, composeRows, composeTitleRow, composeTopPart |
Methods inherited from class caltool.caltool_ui.CalendarToolWindow |
---|
show |
Methods inherited from class mvp.View |
---|
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setExitOnClose, setModel, show, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScheduleTaskDialog(mvp.Screen screen, Schedule schedule, CalendarToolUI calToolUI)
Method Detail |
---|
public java.awt.Component compose()
compose
in class ScheduleAppointmentDialog
protected javax.swing.Box composeStartDateRow()
composeStartDateRow
in class ScheduleAppointmentDialog
protected javax.swing.Box composeEndDateRow()
composeEndDateRow
in class ScheduleAppointmentDialog
protected javax.swing.Box composeMiddlePart()
composeMiddlePart
in class ScheduleAppointmentDialog
protected javax.swing.Box composePriorityRow()
protected javax.swing.Box composeButtonRow()
composeButtonRow
in class ScheduleAppointmentDialog
protected void clear()
clear
in class ScheduleAppointmentDialog
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |