caltool.schedule_ui
Class RemindInfoSubdialog

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

public class RemindInfoSubdialog
extends mvp.View

Class RemindInfoSubDialog is a component of the ScheduleAppointment, ConfirmMeeting, and ScheduleTask Dialogs. The companion model is RemindInfo. RemindInfoSubDialog displays the row of remind information.

See Also:
Serialized Form

Field Summary
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 remindCheckBox
          The checkbox that indicates whether there's a reminder.
protected  javax.swing.JComboBox remindLocationComboBox
          The remind location combo box.
protected  javax.swing.JComboBox remindTimeComboBox
          The remind time combo box.
protected  javax.swing.JTextField remindTimeTextField
          The remind time text field.
 
Fields inherited from class mvp.View
closeAdapter, editable, model, screen, shown, widget, window
 
Constructor Summary
RemindInfoSubdialog(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 remind checkbox, a time-before text field, a time-before combo box, and a remind-location combo box.
 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

remindCheckBox

protected javax.swing.JCheckBox remindCheckBox
The checkbox that indicates whether there's a reminder.


remindTimeTextField

protected javax.swing.JTextField remindTimeTextField
The remind time text field.


remindTimeComboBox

protected javax.swing.JComboBox remindTimeComboBox
The remind time combo box.


remindLocationComboBox

protected javax.swing.JComboBox remindLocationComboBox
The remind location combo box.


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

RemindInfoSubdialog

public RemindInfoSubdialog(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 remind checkbox, a time-before text field, a time-before combo box, and a remind-location combo box.

Overrides:
compose in class mvp.View

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