Package com.ebasetech.xi.api
Interface FileItemIterator
- All Superinterfaces:
java.io.Serializable
public interface FileItemIterator
extends java.io.Serializable
-
Method Summary
Modifier and Type Method Description FileItemgetFileItem()Returns the current FileItem in the list.intgetSize()Returns the number of items in the list.booleannext()Iterates through the file items and sets the next file item as the current item, returns false if no more items exist.
-
Method Details
-
next
boolean next()Iterates through the file items and sets the next file item as the current item, returns false if no more items exist.All file items referenced by an iterator can be processed within a loop within
while (iter.next())as shown in the example below.Javascript example:
var items = controls.fileUploadControl.list.items; while (items.next()) { var fileItem = items.fileItem; if (fileItem.errorMessage == "Failure") { controls.fileUploadControl.backgroundColor = "red"; } }- Returns:
- false when all file items have been processed, true otherwise
- Since:
- V5.3
-
getSize
int getSize()Returns the number of items in the list.- Since:
- V5.10
-
getFileItem
FileItem getFileItem()Returns the current FileItem in the list.- Since:
- V5.10
-