Package com.pegaa.uploader.ui.filelist.item

Examples of com.pegaa.uploader.ui.filelist.item.ListItemUI


         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);
         }
View Full Code Here


    public void removeAllSelected()
    {
        int len = this.fileListItemUIs.size();
        for(int i=0; i<len; i++)
        {
            ListItemUI itemUI = this.fileListItemUIs.get(i);
            if(itemUI.isSelected()){
                this.selectedFileListModel.remove(itemUI.getItem());
            }
        }
    }
View Full Code Here

     *
     * @param e
     */
    public void itemStateChanged(ItemEvent e)
    {
        ListItemUI itemUI = (ListItemUI)e.getItem();
       
        if(e.getID() == SelectedFileLister.EVENT_ADD){
            this.selectedFileList.add(itemUI);
        }else{
            this.selectedFileList.remove(itemUI);
View Full Code Here

     *
     * @param f
     */
    public void fileAdded(ListItem f) {
        UploadPolicy policy = (UploadPolicy)this.configHolder.getObject("global.policy");
        ListItemUI itemUI = new ListItemUI();
        itemUI.setConfigHolder(this.configHolder);
        itemUI.setItem(f, policy.getPolicyType() == ImageUploadPolicy.POLICY_TYPE_IMG ? true : false);
        itemUI.setSelected(true);
        itemUI.addItemSelectionListener(this);

        this.notifyFileAdded(itemUI);
        this.listItemUIs.add(itemUI);
    }
View Full Code Here

TOP

Related Classes of com.pegaa.uploader.ui.filelist.item.ListItemUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.