Class TodoList.TodoItem

    • Constructor Detail

      • TodoItem

        public TodoItem()
        Constructor.
      • TodoItem

        public TodoItem​(TodoList.TodoItem item)
        Copy constructor.
        Parameters:
        item - the item to copy the values from.
    • Method Detail

      • isChecked

        public boolean isChecked()
        Returns:
        Returns the checked property.
      • setChecked

        public void setChecked​(boolean checked)
        Sets the checked property.
        Parameters:
        checked - The checked property to set.
      • getText

        public String getText()
        Gets the description of the item.
        Returns:
        Returns the text.
      • setText

        public void setText​(String text)
        Sets the description of the item.
        Parameters:
        text - The text to set.