137138139140141142143144145146147
File files[] = dir.listFiles(fileFilter); 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]);
273274275276277278279280281282283
*/ public void fileAdded(ListItem f) { int len = this.fileListItemUIs.size(); for(int i=0; i<len; i++) { ListItem activeItem = this.fileListItemUIs.get(i).getItem(); if(activeItem == f){ this.fileListItemUIs.get(i).setSelected(true); } } }
284285286287288289290291292293294
public void fileRemoved(ListItem f) { int len = this.fileListItemUIs.size(); for(int i=0; i<len; i++) { ListItem activeItem = this.fileListItemUIs.get(i).getItem(); if(activeItem == f){ this.fileListItemUIs.get(i).setSelected(false); } } }
5354555657585960616263
{ int curIndex = 0; int len = this.listItemUIs.size(); while(this.cancelLoading != true && curIndex<len) { ListItem item = this.listItemUIs.get(curIndex).getItem(); ImageItem imgItem = (ImageItem)item; imgItem.init(); curIndex++; }