Package se.his.it401g.todo
Interface Task
public interface Task
This interface class represents a task type. All communication between individual task objects and the main application should be made using method specified here, or in the related interface TaskListener.
This file licensed under the Creative Commons (CC) BY 4.0 license.
-
Method Summary
Modifier and TypeMethodDescriptiongetText()
boolean
void
Sets the task listener on which this task reports various events.
-
Method Details
-
getText
String getText()- Returns:
- a short description/title of the task
-
getTaskType
String getTaskType()- Returns:
- the name of the task type, e.g., "Work" for work related tasks.
-
setTaskListener
Sets the task listener on which this task reports various events.- Parameters:
t
- the listener to use.
-
getTaskListener
TaskListener getTaskListener()- Returns:
- the task listener currently used.
-
isComplete
boolean isComplete()- Returns:
- true if the task has status "complete", otherwise false.
-
getGuiComponent
Component getGuiComponent()- Returns:
- the graphical user interface component representing this task.
-