Back to project page Tree-Task.
The source code is released under:
Apache License
If you think the Android project Tree-Task 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 com.ghsoft.treetask; //from w w w . j ava2 s . c o m import java.io.Serializable; public class TaskLeaf extends Task implements Serializable { private static final long serialVersionUID = 1L; private boolean complete; public TaskLeaf(TaskNode parent) { super(parent); this.complete = false; } public static TaskLeaf fromNode(TaskNode from) { TaskLeaf tl = new TaskLeaf((TaskNode) from.getParent()); tl.setName(from.getName()); tl.setDescription(from.getDescription()); tl.setColor(from.getColor()); tl.setTimeStamp(from.getTimeStamp()); tl.setWeight(from.getWeight()); tl.setDeadline(from.getDeadline()); return tl; } @Override public int completion() { return complete ? 100 : 0; } @Override public int subTaskCount() { return 0; } public void setFinished(boolean set) { this.complete = set; } public boolean getFinished() { return complete; } }