@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // toDo = new ToDo(); // UUID toDoId = (UUID) getActivity().getIntent().getSerializableExtra("id"); UUID toDoId = (UUID) getArguments().getSerializable("id"); ToDoList toDoList = ToDoList.get(); toDo = toDoList.getToDo(toDoId); }
/** * Notify the user interface that this ToDoItem has changed. Currently, this is used to update the * progress bar. */ public void changed() { ToDoList list = Designer.theDesigner().getToDoList(); list.fireToDoItemChanged(this); }
public static void main(String[] args) { ToDoList toDoList = new ToDoList(); toDoList.add("Empty trash", 'C', 4); toDoList.add("Feed dog", 'A', 2); toDoList.add("Feed bird", 'B', 7); toDoList.add("Mow lawn", 'C', 3); toDoList.add("Water lawn", 'A', 1); toDoList.add("Feed cat", 'B', 1); while (!toDoList.isEmpty()) System.out.println(toDoList.remove()); }