org.netbeans.spi.tasklist/1 1.0.1 1

org.netbeans.spi.tasklist
Class Task

java.lang.Object
  extended by org.netbeans.spi.tasklist.Task

public final class Task
extends Object

A class holding the description of a single Task that will appear in TaskList's window.


Method Summary
static Task create(FileObject resource, String groupName, String description, ActionListener al)
          Create a new Task
static Task create(FileObject resource, String groupName, String description, int line)
          Create a new Task
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static Task create(FileObject resource,
                          String groupName,
                          String description,
                          int line)
Create a new Task

Parameters:
resource - File or folder which the Task applies to, cannot be null.
groupName - Name of the group this task belongs to (error, warning, todo, etc).
description - A brief summary of the task (one line if possible), cannot be null.
line - Line number in a text file, use negative value if line number is not applicable.
Returns:
New task.

create

public static Task create(FileObject resource,
                          String groupName,
                          String description,
                          ActionListener al)
Create a new Task

Parameters:
resource - File or folder which the Task applies to, cannot be null.
groupName - Name of the group this task belongs to (error, warning, todo, etc).
description - A brief summary of the task (one line if possible), cannot be null.
al - Task's default action, e.g. double-click or Enter key in the Task List window.
Returns:
New task.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.spi.tasklist/1 1.0.1 1

Built on January 29 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.