Package penny.downloadmanager.model.task

Examples of penny.downloadmanager.model.task.TaskData


                int changeType = listChanges.getType();

                switch (changeType) {
                    case ListEvent.DELETE:
                        changeList.getReadWriteLock().readLock().lock();
                        TaskData t1 = (TaskData) listChanges.getOldValue();
                        changeList.getReadWriteLock().readLock().unlock();
                        t1.removePropertyChangeListener(this);
                        saveList();
                        break;
                    case ListEvent.INSERT:
                        changeList.getReadWriteLock().readLock().lock();
                        TaskData t2 = (TaskData) changeList.get(sourceIndex);
                        changeList.getReadWriteLock().readLock().unlock();
                        t2.addPropertyChangeListener(this);
                        saveList();
                        break;
                    case ListEvent.UPDATE:

                        break;
View Full Code Here


    /**
     * @param selectedTask the selectedTask to set
     */
    public void setSelectedTask(TaskData selectedTask) {
        TaskData oldValue = this.selectedTask;
        this.selectedTask = selectedTask;
        propertySupport.firePropertyChange(PROP_SELTASK, oldValue, selectedTask);
    }
View Full Code Here

        public void run() {
            model.setRunning(true);
            start:
            for (int i = 0; i < model.getTasks().size() && model.isRunning(); i++) {
                TaskData t = model.getTasks().get(i);
                switch (t.getStatus()) {
                    case QUEUED:
                        try {
                            Task.getTask(t).run();
                        } catch (Exception e) {
                            Logger.getLogger(TaskRunnable.class.getName()).log(Level.SEVERE, null, e);
View Full Code Here

TOP

Related Classes of penny.downloadmanager.model.task.TaskData

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.