Android Open Source - rtwong-notes To Do






From Project

Back to project page rtwong-notes.

License

The source code is released under:

GNU General Public License

If you think the Android project rtwong-notes 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 ca.ualberta.cs.rtwong_notes;
/*  w  w w . jav a  2s.co m*/
import java.io.Serializable;

// simple class that contains basic information about a ToDo listing
public class ToDo implements Serializable{
  
  protected String task;
  
  protected boolean checked;
  
  public ToDo(String testtask) {
    task = testtask;
    checked = false;
  }

  // returns the description of the task
  public String getTask() {
    return task;
  }
  
  // returns True if it is Checked or False if unchecked
  public boolean getChecked() {
    return checked;
  }
  
  // toggles between checked and unchecked
  public void toggleChecked() {
    checked = !checked;
  }
  
  public String toString() {
    if (this.getChecked()) {
      return "[X] " + task;
    }
    else {
      return "[ ] " + task;
    }
  }
}




Java Source Code List

ca.ualberta.cs.rtwong_notes.ArchiveActivity.java
ca.ualberta.cs.rtwong_notes.DataManager.java
ca.ualberta.cs.rtwong_notes.EmailActivity.java
ca.ualberta.cs.rtwong_notes.EmailArchived.java
ca.ualberta.cs.rtwong_notes.EmailCurrent.java
ca.ualberta.cs.rtwong_notes.MainActivity.java
ca.ualberta.cs.rtwong_notes.SummaryActivity.java
ca.ualberta.cs.rtwong_notes.ToDoList.java
ca.ualberta.cs.rtwong_notes.ToDo.java