webwork.util
Class Counter
java.lang.Object
webwork.util.Counter
- All Implemented Interfaces:
- java.util.Iterator
- public class Counter
- extends java.lang.Object
- implements java.util.Iterator
A bean that can be used to keep track of a counter.
Since it is an Iterator it can be used by the iterator tag
- Version:
- $Revision: 1.9 $
- Author:
- Rickard Öberg (rickard@middleware-company.com)
- See Also:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Counter
public Counter()
getNext
public long getNext()
getPrevious
public long getPrevious()
getFirst
public long getFirst()
getLast
public long getLast()
getInterval
public long getInterval()
isWrap
public boolean isWrap()
setFirst
public void setFirst(long first)
setCurrent
public void setCurrent(long current)
setAdd
public void setAdd(long addition)
getCurrent
public long getCurrent()
setInterval
public void setInterval(long interval)
setLast
public void setLast(long last)
setWrap
public void setWrap(boolean wrap)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next
in interface java.util.Iterator
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator
Copyright © 2001-2003 WebWork All Rights Reserved.