caltool.schedule_ui
Class ScheduleEventDialogGridBag
java.lang.Object
mvp.View
caltool.schedule_ui.ScheduleEventDialogGridBag
- All Implemented Interfaces:
- java.io.Serializable, java.util.Observer
public class ScheduleEventDialogGridBag
- extends mvp.View
Class ScheduleEventDialog provides a view of Event as an input to the
scheduleEvent method. Hence, the dialog is a view of both an Event object
as well as the scheduleEvent method. The data-entry components of the
dialog are the Event view. The 'OK' button is the view of the ScheduleEvent
method.
The data components consist of JLabels, JTextFields, and a JComboBox. The
'OK', 'Clear', and 'Cancel' buttons are JButtons. The description of the compose method has details of how the components
are laid out in the dialog window.
The companion model for ScheduleEventDialog is the Schedule class, since
Schedule has the method that must be invoked from the 'OK' button action
listener. See class
OKScheduleEventButtonListener.html for details of how the
Schedule.scheduleEvent method is invoked.
- See Also:
- Serialized Form
Field Summary |
protected java.awt.GridBagLayout |
layout
The grid bag that controls component layout in the panel |
protected javax.swing.JPanel |
panel
The background panel of this |
Fields inherited from class mvp.View |
closeAdapter, editable, model, screen, shown, widget, window |
Method Summary |
java.awt.Component |
compose()
|
protected void |
composeButtonRow()
|
protected void |
composeCategoryAndLocationRow()
|
protected void |
composeStartAndEndDateRow()
|
protected void |
composeTitleRow()
|
protected void |
il(javax.swing.JLabel l,
int x,
int y)
|
protected void |
insertLabel(javax.swing.JLabel label,
double weightx,
boolean relative,
int width)
|
protected void |
insertLabeledItem(java.awt.Component item,
double weightx,
int ipadx,
boolean remainder,
int width)
|
protected void |
itf(javax.swing.JTextField tf,
int x,
int y,
int pad)
|
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 |
layout
protected java.awt.GridBagLayout layout
- The grid bag that controls component layout in the panel
panel
protected javax.swing.JPanel panel
- The background panel of this
ScheduleEventDialogGridBag
public ScheduleEventDialogGridBag(mvp.Screen screen,
Schedule schedule)
compose
public java.awt.Component compose()
- Overrides:
compose
in class mvp.View
composeTitleRow
protected void composeTitleRow()
composeStartAndEndDateRow
protected void composeStartAndEndDateRow()
composeCategoryAndLocationRow
protected void composeCategoryAndLocationRow()
composeButtonRow
protected void composeButtonRow()
il
protected void il(javax.swing.JLabel l,
int x,
int y)
itf
protected void itf(javax.swing.JTextField tf,
int x,
int y,
int pad)
insertLabel
protected void insertLabel(javax.swing.JLabel label,
double weightx,
boolean relative,
int width)
insertLabeledItem
protected void insertLabeledItem(java.awt.Component item,
double weightx,
int ipadx,
boolean remainder,
int width)