java.lang.Object
edu.ntnu.idata1002.prosjekt2021.model.TodoTask

public class TodoTask
extends java.lang.Object
Represents a task. Holds a checkbox and a specified time of day for the tasks "deadline".
  • Constructor Summary

    Constructors
    Constructor Description
    TodoTask​(java.lang.String description, java.lang.String timeOfDay)
    Creates an instance of todotask.
  • Method Summary

    Modifier and Type Method Description
    javafx.scene.control.CheckBox getCheckbox()
    Returns the checkbox this todotask holds on.
    java.lang.String getTimeOfDay()
    Returns the time of day when this todotask should be done.
    boolean isDone()
    Returns if this todotask is done or not.
    void setDescription​(java.lang.String description)
    Sets the description of the todotask.
    void setTimeOfDay​(java.lang.String timeOfDay)
    Sets the time of day when this todotask should be done.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TodoTask

      public TodoTask​(java.lang.String description, java.lang.String timeOfDay)
      Creates an instance of todotask.
      Parameters:
      description - description of task.
      timeOfDay - the time of day when the task is to be done.
  • Method Details

    • getCheckbox

      public javafx.scene.control.CheckBox getCheckbox()
      Returns the checkbox this todotask holds on.
      Returns:
      checkbox this todotask holds on.
    • setDescription

      public void setDescription​(java.lang.String description)
      Sets the description of the todotask.
      Parameters:
      description - description of the todotask to be set.
    • getTimeOfDay

      public java.lang.String getTimeOfDay()
      Returns the time of day when this todotask should be done.
      Returns:
      time of day when this todotask should be done.
    • setTimeOfDay

      public void setTimeOfDay​(java.lang.String timeOfDay)
      Sets the time of day when this todotask should be done.
      Parameters:
      timeOfDay - time of day this todotask should be done.
    • isDone

      public boolean isDone()
      Returns if this todotask is done or not.
      Returns:
      true if the todotask is done. false if the todotask is not done.