|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmvp.View
caltool.caltool_ui.CalendarToolWindow
caltool.view_ui.MonthlyAgendaDisplay
public class MonthlyAgendaDisplay
Class MonthlyAgendaDisplay is the companion view of a MonthlyAgenda model. The fixed layout of the display is a three-part vertical box. The box contains a date banner, a row of header labels for the days of the week, and the seven-column grid for the days of the month. The size and layout of the days grid is computed dynamically by the update method, based on the data from the model.
| Field Summary | |
|---|---|
protected javax.swing.JPanel |
dateBanner
The date banner at the top of the display. |
protected javax.swing.JPanel |
dayGrid
The day grid. |
protected SmallDayViewDisplay[] |
days
Array of day displays for convenient access by date number. |
protected javax.swing.JPanel |
daysOfWeek
The days-of-the week labeling row. |
protected int |
defaultCellHeight
Default constant for the height of one day display cell. |
protected int |
defaultCellWidth
Default constant for the width of one day display cell. |
protected java.awt.Dimension |
defaultSize
Initial default size of the day grid. |
protected int |
numberOfWeeks
Number or weeks (hence display rows) in the current display. |
protected javax.swing.JPanel |
vbox
Outermost box of the laid-out display. |
| Fields inherited from class caltool.caltool_ui.CalendarToolWindow |
|---|
calToolUI |
| Fields inherited from class mvp.View |
|---|
closeAdapter, editable, model, screen, shown, widget, window |
| Constructor Summary | |
|---|---|
MonthlyAgendaDisplay(mvp.Screen s,
MonthlyAgenda monthlyAgenda,
CalendarToolUI calToolUI)
Construct this by constructing subpanels for the three parts of the display. |
|
| Method Summary | |
|---|---|
java.awt.Component |
compose()
Compose this as a vertical box, consisting of a date-banner row, a days-of-the-week labels row, and an empty days grid. |
protected javax.swing.JPanel |
composeDateBanner()
Compose the date banner. |
protected javax.swing.JPanel |
greyDay()
Build an empty grey-background, black-border day display. |
void |
update(java.util.Observable o,
java.lang.Object arg)
Display the model data in the appropriate daily positions. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SmallDayViewDisplay[] days
protected javax.swing.JPanel vbox
protected javax.swing.JPanel dateBanner
protected javax.swing.JPanel daysOfWeek
protected javax.swing.JPanel dayGrid
protected int numberOfWeeks
protected java.awt.Dimension defaultSize
protected final int defaultCellHeight
protected final int defaultCellWidth
| Constructor Detail |
|---|
public MonthlyAgendaDisplay(mvp.Screen s,
MonthlyAgenda monthlyAgenda,
CalendarToolUI calToolUI)
| Method Detail |
|---|
public java.awt.Component compose()
compose in class mvp.Viewprotected javax.swing.JPanel composeDateBanner()
public void update(java.util.Observable o,
java.lang.Object arg)
update in interface java.util.Observerupdate in class mvp.Viewprotected javax.swing.JPanel greyDay()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||