|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.primix.tapestry.inspector.EvenOdd
Used to emit a stream of alteranting string values: "even", "odd", etc. This is often used in the Inspector pages to make the class of a <tr> alternate for presentation reasons.
Constructor Summary | |
EvenOdd()
|
Method Summary | |
java.lang.String |
getNext()
Returns "even" or "odd". |
boolean |
isEven()
|
void |
resetForPool()
Resets the internal flag such that the next value from getNext() will be "even". |
void |
setEven(boolean value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EvenOdd()
Method Detail |
public java.lang.String getNext()
public boolean isEven()
public void setEven(boolean value)
public void resetForPool()
getNext()
will be "even".resetForPool
in interface IPoolable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |