| java.lang.Object org.netbeans.spi.tasklist.Task
Task | final public class Task (Code) | | A class holding the description of a single Task that will appear in TaskList's window.
author: S. Aubrecht |
Method Summary | |
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. Parameters: groupName - Name of the group this task belongs to (error, warning, todo, etc). Parameters: description - A brief summary of the task (one line if possible), cannot be null. Parameters: line - Line number in a text file, use negative value if line number is not applicable. | 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. Parameters: groupName - Name of the group this task belongs to (error, warning, todo, etc). Parameters: description - A brief summary of the task (one line if possible), cannot be null. Parameters: al - Task's default action, e.g. | static TaskGroup | createGroup(Map<String, String> attrs) Create a new TaskGroup, called from XML layer. | public boolean | equals(Object o) | ActionListener | getActionListener() Action to be invoked when user double-clicks the task in the Task List window. | String | getDescription() Task description. | TaskGroup | getGroup() | int | getLine() One-based line number in a text file this task applies to, -1 if the line number is not applicable. | FileObject | getResource() Resource (file or folder) this taks applies to. | public int | hashCode() | public String | toString() |
create | public static Task create(FileObject resource, String groupName, String description, int line)(Code) | | Create a new Task
Parameters: resource - File or folder which the Task applies to, cannot be null. Parameters: groupName - Name of the group this task belongs to (error, warning, todo, etc). Parameters: description - A brief summary of the task (one line if possible), cannot be null. Parameters: line - Line number in a text file, use negative value if line number is not applicable. New task. |
create | public static Task create(FileObject resource, String groupName, String description, ActionListener al)(Code) | | Create a new Task
Parameters: resource - File or folder which the Task applies to, cannot be null. Parameters: groupName - Name of the group this task belongs to (error, warning, todo, etc). Parameters: description - A brief summary of the task (one line if possible), cannot be null. Parameters: al - Task's default action, e.g. double-click or Enter key in the Task List window. New task. |
getActionListener | ActionListener getActionListener()(Code) | | Action to be invoked when user double-clicks the task in the Task List window.
Task's default action or null if not available. |
getDescription | String getDescription()(Code) | | Task description.
Task description. |
getGroup | TaskGroup getGroup()(Code) | | The group this task belongs to (error, warning, todo, etc)
The group this task belongs to (error, warning, todo, etc) |
getLine | int getLine()(Code) | | One-based line number in a text file this task applies to, -1 if the line number is not applicable.
One-based line number in a text file this task applies to, -1 if the line number is not applicable. |
getResource | FileObject getResource()(Code) | | Resource (file or folder) this taks applies to.
Resource (file or folder) this taks applies to. |
hashCode | public int hashCode()(Code) | | |
|
|