|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.lightdev.app.allday.ui.YearPanel
public class YearPanel
A user interface component producing a year calendar.
Application,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
YearPanel(com.lightdev.lib.holiday.data.GregorianEventModel dataModel)
construct a year view |
|
| Method Summary | |
|---|---|
void |
addDayComponentListener(DayComponentListener listener)
add an event listener. |
void |
dayChanged(EventObject e)
handle dayChanged events from month boxes and notify own DayComponentListeners |
GregorianCalendar |
getDate()
get the date this YearPanel currently reflects |
com.lightdev.lib.holiday.data.GregorianEventModel |
getEvents()
get the data model this YearPanel currently displays events from |
long |
getYear()
get the year that is currently displayed |
void |
removeDayComponentListener(DayComponentListener listener)
remove an event listener. |
void |
resetViewPrefs()
|
void |
selectToday()
highlight today's month and day if the year that is currently shown is this year |
void |
setModel(com.lightdev.lib.holiday.data.GregorianEventModel dataModel)
set the data model having events to display |
void |
setYear(long year)
set the year this YearPanel currently displays |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public YearPanel(com.lightdev.lib.holiday.data.GregorianEventModel dataModel)
dataModel - the data model having events to displayApplication,
GregorianEventModel| Method Detail |
|---|
public void setModel(com.lightdev.lib.holiday.data.GregorianEventModel dataModel)
dataModel - the data model having events to displaypublic com.lightdev.lib.holiday.data.GregorianEventModel getEvents()
getEvents in interface com.lightdev.lib.holiday.data.EventModelProviderpublic void setYear(long year)
year - the year to displaypublic long getYear()
public GregorianCalendar getDate()
getDate in interface com.lightdev.lib.holiday.date.GregorianDateProviderpublic void resetViewPrefs()
public void selectToday()
public void addDayComponentListener(DayComponentListener listener)
listener - the event listener to addpublic void removeDayComponentListener(DayComponentListener listener)
listener - the event listener to removepublic void dayChanged(EventObject e)
e - the EventObject
|
Copyright (c) 1989 - 2005 Ulrich Hilger | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||