Android Open Source - Tree-Task Meta Data






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 ww . j a  v  a 2  s.  c  o m*/
import java.io.Serializable;
import java.util.ArrayList;

public class MetaData implements Serializable {
  
  private static final long serialVersionUID = 1L;
  private ArrayList<String> taskIds, archiveIds;
  
  public MetaData() {
    taskIds = new ArrayList<String>();
    archiveIds = new ArrayList<String>();
  }
  
  public ArrayList<String> getTasks() {
    return taskIds;
  }
  
  public ArrayList<String> getArchive() {
    return archiveIds;
  }
  
  public void moveTask(TaskHead th, int index) {
    taskIds.remove(th.taskID);
    taskIds.add(index, th.taskID);
  }
  
  public void moveArchiveTask(TaskHead th, int index) {
    archiveIds.remove(th.taskID);
    archiveIds.add(index, th.taskID);
  }
  
  public void setTasks(ArrayList<String> tasks) {
    taskIds = tasks;
  }
  
  public void setArchive(ArrayList<String> tasks) {
    taskIds = tasks;
  }
  
  public void buildTasksOrder(ArrayList<TaskHead> tasks) {
    this.taskIds = new ArrayList<String>();
    
    for (TaskHead th : tasks) {
      this.taskIds.add(th.taskID);
    }
    
  }
  
  public void buildArchiveOrder(ArrayList<TaskHead> tasks) {
    this.archiveIds = new ArrayList<String>();
    
    for (TaskHead th : tasks) {
      this.archiveIds.add(th.taskID);
    }
    
  }
  
}




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