org.apache.tapestry.bean
Class EvenOdd
java.lang.Object
org.apache.tapestry.bean.EvenOdd
public class EvenOdd
- extends Object
Used to emit a stream of alterating string values: "even", "odd", etc. This
is often used in the Inspector pages to make the class of a <tr>
alternate for presentation reasons.
- Author:
- Howard Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EvenOdd
public EvenOdd()
getNext
public String getNext()
- Returns "even" or "odd". Whatever it returns on one invocation, it will
return the opposite on the next. By default, the first value returned is
"even".
isEven
public boolean isEven()
setEven
public void setEven(boolean value)
- Overrides the even flag.
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.