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

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

public class TaskListNotificationQueryIncoming
extends java.lang.Object
implements ITaskListNotification

Author:
Rob Elves

Field Summary
private  java.util.Date date
           
private  AbstractQueryHit hit
           
private  org.eclipse.jface.viewers.DecoratingLabelProvider labelProvider
           
 
Constructor Summary
TaskListNotificationQueryIncoming(AbstractQueryHit hit)
           
 
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()
           
 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

hit

private final AbstractQueryHit hit

labelProvider

private org.eclipse.jface.viewers.DecoratingLabelProvider labelProvider

date

private java.util.Date date
Constructor Detail

TaskListNotificationQueryIncoming

public TaskListNotificationQueryIncoming(AbstractQueryHit hit)
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

equals

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

hashCode

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

getOverlayIcon

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

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