Android Open Source - 301Assignment1 Todo Task






From Project

Back to project page 301Assignment1.

License

The source code is released under:

Apache License

If you think the Android project 301Assignment1 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.ckchan.assignment1.ckchan_todolist;
/*w ww. j  a v a  2 s .co  m*/
//Implemented similar to Planet object from: http://stackoverflow.com/questions/9990676/how-can-i-get-values-from-checkbox-in-android 2014-09-23
public class TodoTask {
  
  private String taskDescription = "";
  private boolean checked = false;
  
  public TodoTask(String taskDescription, boolean taskCompleted) {
    
    this.taskDescription = taskDescription;
    this.checked = taskCompleted;
  }
  
  public String getTaskDescription() {
    
    return taskDescription;
  }
  
  public boolean isChecked() {
    
    return checked;
  }
  
  public void setChecked(boolean checked) {
    
    this.checked = checked;
  }
  
  public void setTaskDescription (String taskDescription) {
    
    this.taskDescription = taskDescription;
  }
  
  public void toggleChecked() {
    
    checked = !checked;
  }
}




Java Source Code List

com.ckchan.assignment1.adapter.TabsPagerAdapter.java
com.ckchan.assignment1.adapter.TaskArrayAdapter.java
com.ckchan.assignment1.ckchan_todolist.ArchiveFragment.java
com.ckchan.assignment1.ckchan_todolist.DatabaseInterface.java
com.ckchan.assignment1.ckchan_todolist.Email.java
com.ckchan.assignment1.ckchan_todolist.MainActivity.java
com.ckchan.assignment1.ckchan_todolist.SettingsActivity.java
com.ckchan.assignment1.ckchan_todolist.SummaryInfoActivity.java
com.ckchan.assignment1.ckchan_todolist.TaskDatabase.java
com.ckchan.assignment1.ckchan_todolist.TaskFragmentInterface.java
com.ckchan.assignment1.ckchan_todolist.TodoFragment.java
com.ckchan.assignment1.ckchan_todolist.TodoTask.java