Back to project page rtwong-notes.
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.
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; } } }