Package org.zkoss.bind.impl
Class AbstractForEachStatus
java.lang.Object
org.zkoss.bind.impl.AbstractForEachStatus
- All Implemented Interfaces:
Serializable,ForEachStatus
The Class AbstractForEachStatus.
- Since:
- 6.0.0
- Author:
- dennis
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBegin()Returns the index (starting from 0) that the iteration begins at, or null if not specified (and 0 is assumed).intgetCount()Retrieves the "count" of the current round of the iteration.getEach()Returns the status of the enclosing forEach statement.getStep()Returns the value of the 'step' attribute for the associated tag, or null if no 'step' attribute was specified.booleanisFirst()Returns whether the current round is the first pass through the iterationbooleanisLast()Returns whether the current round is the last pass through the iterationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zkoss.zk.ui.util.ForEachStatus
getCurrent, getEnd, getIndex
-
Constructor Details
-
AbstractForEachStatus
public AbstractForEachStatus()
-
-
Method Details
-
getPrevious
Description copied from interface:ForEachStatusReturns the status of the enclosing forEach statement.- Specified by:
getPreviousin interfaceForEachStatus
-
getBegin
Description copied from interface:ForEachStatusReturns the index (starting from 0) that the iteration begins at, or null if not specified (and 0 is assumed).- Specified by:
getBeginin interfaceForEachStatus
-
getStep
Description copied from interface:ForEachStatusReturns the value of the 'step' attribute for the associated tag, or null if no 'step' attribute was specified.- Specified by:
getStepin interfaceForEachStatus
-
isFirst
public boolean isFirst()Description copied from interface:ForEachStatusReturns whether the current round is the first pass through the iteration- Specified by:
isFirstin interfaceForEachStatus
-
isLast
public boolean isLast()Description copied from interface:ForEachStatusReturns whether the current round is the last pass through the iteration- Specified by:
isLastin interfaceForEachStatus
-
getEach
-
getCount
public int getCount()Description copied from interface:ForEachStatusRetrieves the "count" of the current round of the iteration. The count is a relative, 1-based sequence number identifying the current "round" of iteration (in context with all rounds the current iteration will perform). As an example, an iteration with begin = 5, end = 15, and step = 5 produces the counts 1, 2, and 3 in that order.- Specified by:
getCountin interfaceForEachStatus
-