Android Open Source - Tree-Task Task Leaf






From Project

Back to project page Tree-Task.

License

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.

Java Source Code

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;
  }

}




Java Source Code List

com.ghsoft.treetask.MetaData.java
com.ghsoft.treetask.TaskDummy.java
com.ghsoft.treetask.TaskHead.java
com.ghsoft.treetask.TaskLeaf.java
com.ghsoft.treetask.TaskManager.java
com.ghsoft.treetask.TaskNode.java
com.ghsoft.treetask.Task.java
com.ghsoft.treetask.TextTreeBuilder.java
com.ghsoft.treetaskapp.About.java
com.ghsoft.treetaskapp.EditTask.java
com.ghsoft.treetaskapp.ExportView.java
com.ghsoft.treetaskapp.HtmlTreeBuilder.java
com.ghsoft.treetaskapp.MainListItem.java
com.ghsoft.treetaskapp.MainViewFragment.java
com.ghsoft.treetaskapp.Main.java
com.ghsoft.treetaskapp.ModifyTaskActivity.java
com.ghsoft.treetaskapp.NewTask.java
com.ghsoft.treetaskapp.NewTreeTask.java
com.ghsoft.treetaskapp.NewTreeView.java
com.ghsoft.treetaskapp.Settings.java
com.ghsoft.treetaskapp.TaskViewListItem.java
com.ghsoft.treetaskapp.TaskView.java
com.ghsoft.treetaskapp.TreeTaskProgressBar.java
com.ghsoft.treetaskapp.TreeView.java