Class StudyTask

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Task

public class StudyTask extends JPanel implements Task
Implements a simple study task type, following the Task.java interface class. This file licensed under the Creative Commons (CC) BY 4.0 license.
See Also:
  • Constructor Details

    • StudyTask

      public StudyTask()
      This is the constructor for the task, initiating the GUI component for the task. Several listeners are used to react to various events in the GUI.
  • Method Details

    • getText

      public String getText()
      Specified by:
      getText in interface Task
      Returns:
      a short description/title of the task
    • getTaskType

      public String getTaskType()
      Specified by:
      getTaskType in interface Task
      Returns:
      the name of the task type, e.g., "Work" for work related tasks.
    • setTaskListener

      public void setTaskListener(TaskListener t)
      Description copied from interface: Task
      Sets the task listener on which this task reports various events.
      Specified by:
      setTaskListener in interface Task
      Parameters:
      t - the listener to use.
    • getTaskListener

      public TaskListener getTaskListener()
      Specified by:
      getTaskListener in interface Task
      Returns:
      the task listener currently used.
    • isComplete

      public boolean isComplete()
      Specified by:
      isComplete in interface Task
      Returns:
      true if the task has status "complete", otherwise false.
    • getGuiComponent

      public Component getGuiComponent()
      Specified by:
      getGuiComponent in interface Task
      Returns:
      the graphical user interface component representing this task.