caltool.schedule_ui
Class RecurringInfoSubdialog

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

public class RecurringInfoSubdialog
extends mvp.View

Class RecurringInfoSubDialog is a component of the ScheduleAppointment, ConfirmMeeting, and ScheduleTask Dialogs. The companion model is RecurringInfo. RecurringInfoSubDialog displays the row of recurring information in its varying forms, including the monthly details dialog when appropriate. A meeting request dialog has a slightly different version of the recurring info row. The subclass RecurringInfoMeetingRequestSubDialog displays this information.

See Also:
Serialized Form

Field Summary
protected  javax.swing.JCheckBox friCheckBox
          The Friday checkbox.
protected  javax.swing.JLabel friLabel
          The Friday label.
protected  javax.swing.JComboBox intervalComboBox
          The interval combobox for weekly, biweekly, monthly, or yearly.
protected  javax.swing.JLabel intervalLabel
          The label for the interval combobox.
protected  double maxComponentHeight
          The max height of a text field or combobox; this is necessary since these components strech when the outer frame is resized, and look very funky when they do
protected  int maxComponentWidth
          The max width of any component; this is only necessary because the max height cannot be set separately, so we must pick some max width.
protected  javax.swing.JCheckBox monCheckBox
          The Monday checkbox.
protected  javax.swing.JLabel monLabel
          The Monday label.
protected  javax.swing.JCheckBox recurringCheckBox
          The checkbox that indicates whether the scheculed item recurs.
protected  javax.swing.JCheckBox satCheckBox
          The Saturday checkbox.
protected  javax.swing.JLabel satLabel
          The Saturday label.
protected  javax.swing.JCheckBox sunCheckBox
          The Sunday checkbox.
protected  javax.swing.JLabel sunLabel
          The Sunday label.
protected  javax.swing.JCheckBox thuCheckBox
          The Thursday checkbox.
protected  javax.swing.JLabel thuLabel
          The Thursday label.
protected  javax.swing.JCheckBox tueCheckBox
          The Tuesday checkbox.
protected  javax.swing.JLabel tueLabel
          The Tuesday label.
protected  javax.swing.JCheckBox wedCheckBox
          The Wednesday checkbox.
protected  javax.swing.JLabel wedLabel
          The Wednesday label.
 
Fields inherited from class mvp.View
closeAdapter, editable, model, screen, shown, widget, window
 
Constructor Summary
RecurringInfoSubdialog(mvp.Screen screen, ScheduleAppointmentDialog parentView)
          Construct this with a parent view.
 
Method Summary
 java.awt.Component compose()
          Compose this as the default configuration consisting of a recurring checkbox, a interval combo box, and the weekly interval details.
protected  javax.swing.Box composeWeeklyCheckBoxes()
          Compose the seven day-of-the-week checkboxes.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class mvp.View
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setExitOnClose, setModel, show, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

recurringCheckBox

protected javax.swing.JCheckBox recurringCheckBox
The checkbox that indicates whether the scheculed item recurs.


intervalComboBox

protected javax.swing.JComboBox intervalComboBox
The interval combobox for weekly, biweekly, monthly, or yearly.


intervalLabel

protected javax.swing.JLabel intervalLabel
The label for the interval combobox. It's a data field since it needs to be set enabled or disabled dynamically


sunCheckBox

protected javax.swing.JCheckBox sunCheckBox
The Sunday checkbox.


sunLabel

protected javax.swing.JLabel sunLabel
The Sunday label.


monCheckBox

protected javax.swing.JCheckBox monCheckBox
The Monday checkbox.


monLabel

protected javax.swing.JLabel monLabel
The Monday label.


tueCheckBox

protected javax.swing.JCheckBox tueCheckBox
The Tuesday checkbox.


tueLabel

protected javax.swing.JLabel tueLabel
The Tuesday label.


wedCheckBox

protected javax.swing.JCheckBox wedCheckBox
The Wednesday checkbox.


wedLabel

protected javax.swing.JLabel wedLabel
The Wednesday label.


thuCheckBox

protected javax.swing.JCheckBox thuCheckBox
The Thursday checkbox.


thuLabel

protected javax.swing.JLabel thuLabel
The Thursday label.


friCheckBox

protected javax.swing.JCheckBox friCheckBox
The Friday checkbox.


friLabel

protected javax.swing.JLabel friLabel
The Friday label.


satCheckBox

protected javax.swing.JCheckBox satCheckBox
The Saturday checkbox.


satLabel

protected javax.swing.JLabel satLabel
The Saturday label.


maxComponentHeight

protected final double maxComponentHeight
The max height of a text field or combobox; this is necessary since these components strech when the outer frame is resized, and look very funky when they do


maxComponentWidth

protected final int maxComponentWidth
The max width of any component; this is only necessary because the max height cannot be set separately, so we must pick some max width.

Constructor Detail

RecurringInfoSubdialog

public RecurringInfoSubdialog(mvp.Screen screen,
                              ScheduleAppointmentDialog parentView)
Construct this with a parent view. Since this is a subview, it need not have its own model, since it only handles view details. The parent dialogs for appointments, meetings, and tasks communicate with the model.

Method Detail

compose

public java.awt.Component compose()
Compose this as the default configuration consisting of a recurring checkbox, a interval combo box, and the weekly interval details.

Overrides:
compose in class mvp.View

composeWeeklyCheckBoxes

protected javax.swing.Box composeWeeklyCheckBoxes()
Compose the seven day-of-the-week checkboxes.


update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer
Overrides:
update in class mvp.View