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

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

public class TaskListNotificationIncoming
extends java.lang.Object
implements ITaskListNotification

Author:
Rob Elves

Field Summary
private  java.util.Date date
           
private  java.lang.String description
           
private  org.eclipse.jface.viewers.DecoratingLabelProvider labelProvider
           
private  AbstractRepositoryTask task
           
 
Constructor Summary
TaskListNotificationIncoming(AbstractRepositoryTask 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)
           
 void setDescription(java.lang.String description)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

task

private final AbstractRepositoryTask task

description

private java.lang.String description

labelProvider

private org.eclipse.jface.viewers.DecoratingLabelProvider labelProvider

date

private java.util.Date date
Constructor Detail

TaskListNotificationIncoming

public TaskListNotificationIncoming(AbstractRepositoryTask 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

setDescription

public void setDescription(java.lang.String description)

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

getTask

private ITask getTask()

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