|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.redcarton.alarmclock.Alarm
| Constructor Summary | |
Alarm(AlarmListener listener,
boolean twentyFourHourFormat)
Instantiates a new instance of Alarm. |
|
Alarm(AlarmListener listener,
boolean twentyFourHourFormat,
int hours,
int minutes)
Instantiates a new instance of Alarm with a default time. |
|
| Method Summary | |
int |
getHours()
Returns the alarm hour in the appropriate format (24hr or 12hr). |
int |
getMinutes()
Returns the alarm minutes from 0 through 59. |
JSlider |
getSlider()
Returns a slider for setting the alarm time. |
boolean |
isAm()
Returns whether the alarm is in the AM. |
boolean |
isTwentyFourHourFormat()
Returns whether the alarm's display should be in 24hr format. |
void |
snooze()
Snoozes the alarm. |
void |
stateChanged(ChangeEvent e)
Do not call directly. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Alarm(AlarmListener listener,
boolean twentyFourHourFormat)
Alarm.
twentyFourHourFormat - true if it is in 24hr format,
false if it is in 12hr format
public Alarm(AlarmListener listener,
boolean twentyFourHourFormat,
int hours,
int minutes)
Alarm with a default time.
twentyFourHourFormat - true if it is in 24hr format,
false if it is in 12hr formathours - the hour in 24hr formatminutes - the minutes| Method Detail |
public int getHours()
public int getMinutes()
public JSlider getSlider()
public boolean isAm()
true if it is in the AM,
false if it is in the PMpublic boolean isTwentyFourHourFormat()
true if it is in 24hr format,
false if it is in 12hr formatpublic void snooze()
public void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||