org.eclipse.mylar.internal.tasks.ui
Class TaskListNotificationReminder

java.lang.Object
  extended by org.eclipse.mylar.internal.tasks.ui.TaskListNotificationReminder
All Implemented Interfaces:
java.lang.Comparable<ITaskListNotification>, ITaskListNotification

public class TaskListNotificationReminder
extends java.lang.Object
implements ITaskListNotification

Author:
Rob Elves

Field Summary
private  java.util.Date date
           
private  org.eclipse.jface.viewers.DecoratingLabelProvider labelProvider
           
private  ITask task
           
 
Constructor Summary
TaskListNotificationReminder(ITask task)
           
 
Method Summary
 int compareTo(ITaskListNotification anotherNotification)
           
 boolean equals(java.lang.Object o)
           
 java.util.Date getDate()
           
 java.lang.String getDescription()
           
 java.lang.String getLabel()
           
 org.eclipse.swt.graphics.Image getNotificationIcon()
           
 org.eclipse.swt.graphics.Image getOverlayIcon()
           
private  ITask getTask()
           
 int hashCode()
           
 void openTask()
           
 void setDate(java.util.Date date)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

task

private final ITask task

labelProvider

private org.eclipse.jface.viewers.DecoratingLabelProvider labelProvider

date

private java.util.Date date
Constructor Detail

TaskListNotificationReminder

public TaskListNotificationReminder(ITask task)
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface ITaskListNotification

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface ITaskListNotification

openTask

public void openTask()
Specified by:
openTask in interface ITaskListNotification

getNotificationIcon

public org.eclipse.swt.graphics.Image getNotificationIcon()
Specified by:
getNotificationIcon in interface ITaskListNotification

getOverlayIcon

public org.eclipse.swt.graphics.Image getOverlayIcon()
Specified by:
getOverlayIcon in interface ITaskListNotification

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getTask

private ITask getTask()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getDate

public java.util.Date getDate()
Specified by:
getDate in interface ITaskListNotification

setDate

public void setDate(java.util.Date date)
Specified by:
setDate in interface ITaskListNotification

compareTo

public int compareTo(ITaskListNotification anotherNotification)
              throws java.lang.ClassCastException
Specified by:
compareTo in interface java.lang.Comparable<ITaskListNotification>
Throws:
java.lang.ClassCastException