CVS: TapestryBook/examples/src/examples/todo2 ToDo2.java,1.3,1.4

Howard Lewis Ship <[email protected]> Mon, 21 Apr 2003 12:14:55 -0700
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/TapestryBook/examples/src/examples/todo2
In directory sc8-pr-cvs1:/tmp/cvs-serv24940/examples/src/examples/todo2

Modified Files:
	ToDo2.java 
Log Message:
Minor tweaks to reflect recent changes in the framework.

Index: ToDo2.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/src/examples/todo2/ToDo2.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ToDo2.java	16 Mar 2003 02:55:41 -0000	1.3
--- ToDo2.java	21 Apr 2003 19:14:22 -0000	1.4
***************
*** 9,12 ****
--- 9,13 ----
  
  import examples.todo1.ToDo;
+ import examples.todo1.ToDoItem;
  
  /**
***************
*** 28,48 ****
      }
  
!     public void addTodoItem(IRequestCycle cycle)
!     {
!         getToDoList().add(new ToDoItem2("New Item"));
!     }
! 
!     public void beginResponse(IMarkupWriter writer, IRequestCycle cycle)
      {
!         List list = getToDoList();
! 
!         if (list == null)
!         {
!             list = new ArrayList();
!             list.add(new ToDoItem2("Finish reading Tapestry Book"));
!             list.add(new ToDoItem2("Download latest version of Tapestry"));
! 
!             setToDoList(list);
!         }
      }
  
--- 29,35 ----
      }
  
!     protected ToDoItem createNewItem(String title)
      {
!         return new ToDoItem2(title);
      }
  



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf