Holger's
Java API

com.antelmann.calendar
Class Alert

java.lang.Object
  extended by com.antelmann.calendar.Alert
All Implemented Interfaces:
Serializable

public class Alert
extends Object
implements Serializable

Author:
Holger Antelmann
See Also:
AlertTimer, Serialized Form

Constructor Summary
Alert(CalendarEntry ce, String alertMessage, Date executionTime)
           
 
Method Summary
 void acknowledge()
          if this is the first acknowledgement, the AlertHandler of the AlertTimer is notified.
 boolean equals(Object obj)
           
 String getAlertMessage()
           
 CalendarEntry getCalendarEntry()
           
 Date getExecutionTime()
           
 int hashCode()
          hashes based on execution time
 boolean isAcknowledged()
           
 boolean isActive()
           
 void setActive(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Alert

public Alert(CalendarEntry ce,
             String alertMessage,
             Date executionTime)
Method Detail

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