CVS: TapestryBook/examples/src/examples Toppings.java,1.1,1.2 TextField1.java,1.1,1.2 ToDo.java,1.1,NONE ToDoItem.java,1.1,NONE
Howard Lewis Ship <[email protected]> Thu, 27 Feb 2003 16:26:18 -0800
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/TapestryBook/examples/src/examples
In directory sc8-pr-cvs1:/tmp/cvs-serv10808/examples/src/examples
Modified Files:
Toppings.java TextField1.java
Removed Files:
ToDo.java ToDoItem.java
Log Message:
Checkpoint; pretty much done with chapter 3.
Index: Toppings.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/src/examples/Toppings.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Toppings.java 20 Feb 2003 15:13:45 -0000 1.1
--- Toppings.java 28 Feb 2003 00:25:46 -0000 1.2
***************
*** 20,24 ****
}
! public String[] getToppings()
{
return TOPPINGS;
--- 20,24 ----
}
! public String[] getAllToppings()
{
return TOPPINGS;
Index: TextField1.java
===================================================================
RCS file: /cvsroot/tapestry/TapestryBook/examples/src/examples/TextField1.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TextField1.java 20 Feb 2003 15:13:45 -0000 1.1
--- TextField1.java 28 Feb 2003 00:25:46 -0000 1.2
***************
*** 5,18 ****
public abstract class TextField1 extends BasePage
{
! public abstract int getRealProperty();
! public abstract void setRealProperty(int realProperty);
public abstract void setErrorMessage(String errorMessage);
! public void setStringProperty(String stringProperty)
{
try
{
! int value = Integer.parseInt(stringProperty);
! setRealProperty(value);
}
catch (NumberFormatException ex)
--- 5,18 ----
public abstract class TextField1 extends BasePage
{
! public abstract int getIntValue();
! public abstract void setIntValue(int realProperty);
public abstract void setErrorMessage(String errorMessage);
! public void setStringValue(String stringValue)
{
try
{
! int intValue = Integer.parseInt(stringValue);
! setIntValue(intValue);
}
catch (NumberFormatException ex)
***************
*** 22,28 ****
}
! public String getStringProperty()
{
! return Integer.toString(getRealProperty());
}
--- 22,28 ----
}
! public String getStringValue()
{
! return Integer.toString(getIntValue());
}
--- ToDo.java DELETED ---
--- ToDoItem.java DELETED ---
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf