if(files == null)return;
int len = files.length;
for(int i=0; i<len; i++)
{
ListItem item = null;
ListItemUI itemUI = new ListItemUI();
itemUI.setConfigHolder(this.configHolder);
int ind = this.selectedFileListModel.contains(files[i]);
if(ind == -1) {
item = this.createListItem(files[i]);
} else {
item = this.selectedFileListModel.getItem(ind);
itemUI.setSelected(true);
}
itemUI.setItem(item, policy.getPolicyType() == ImageUploadPolicy.POLICY_TYPE_IMG ? true : false);
itemUI.addItemSelectionListener(this);
this.fileListItemUIs.add(itemUI);
this.notifyListItemAdded(itemUI);
}