01: /* LoopStatus.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Tue Oct 25 17:14:40 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2005 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.web.servlet.dsp.action;
20:
21: /**
22: * Exposes the current status of an iteration.
23: * Used with {@link ForEach} if {@link ForEach#setVarStatus} is called.
24: *
25: * @author tomyeh
26: */
27: public interface LoopStatus {
28: /** Retrieves the index of the current round of the iteration (0-based).
29: */
30: public int getIndex();
31:
32: /** Retrieves the current item in the interation.
33: */
34: public Object getCurrent();
35: }
|