com.antelmann.calendar
Class Alert
java.lang.Object
com.antelmann.calendar.Alert
- All Implemented Interfaces:
- Serializable
public class Alert
- extends Object
- implements Serializable
- Author:
- Holger Antelmann
- See Also:
AlertTimer,
Serialized Form
Alert
public Alert(CalendarEntry ce,
String alertMessage,
Date executionTime)
isActive
public boolean isActive()
setActive
public void setActive(boolean flag)
getCalendarEntry
public CalendarEntry getCalendarEntry()
getAlertMessage
public String getAlertMessage()
getExecutionTime
public Date getExecutionTime()
isAcknowledged
public boolean isAcknowledged()
acknowledge
public void acknowledge()
- if this is the first acknowledgement, the AlertHandler of the
AlertTimer is notified.
If the alert has already been acknowledged, nothing happens.
- See Also:
AlertHandler,
AlertTimer
hashCode
public int hashCode()
- hashes based on execution time
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
(c) 2001-2006 Holger Antelmann - all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads