Examples of addTaskListener()


Examples of com.sun.enterprise.web.connector.grizzly.ReadTask.addTaskListener()

                    readTask.setBytesAvailable(true);
                    byteBuffer.limit(limit);
                    byteBuffer.position(position);

                    // Get notification once the task has completed.
                    readTask.addTaskListener(this);
                    readTask.execute();
                } else {
                    fireTaskEvent(taskEvent);
                }  
            } else {
View Full Code Here

Examples of com.sun.enterprise.web.connector.grizzly.ReadTask.addTaskListener()

                    readTask.setBytesAvailable(true);
                    byteBuffer.limit(limit);
                    byteBuffer.position(position);

                    // Get notification once the task has completed.
                    readTask.addTaskListener(this);
                    readTask.execute();
                } else {
                    fireTaskEvent(taskEvent);
                }  
            } else {
View Full Code Here

Examples of hermes.browser.tasks.TaskSupport.addTaskListener()

        final ProgressMonitor progress = new ProgressMonitor(HermesBrowser.getBrowser(), "Saving from " + from + " to " + file.getName(),
            "Browsing...", 0, 3);
        progress.setMillisToPopup(0);
        progress.setMillisToDecideToPopup(0);

        task.addTaskListener(new MessageTaskListener() {

          public void onMessage(Task task, Message message) {
            if (progress.isCanceled()) {
              task.stop();
            }
View Full Code Here

Examples of net.sf.mzmine.taskcontrol.Task.addTaskListener()

              "Obtained malformed sample file for \"" + sampleID
                  + '"');
          return true;
        }

        newTask.addTaskListener(this);
        tasks.add(newTask);
      } catch (FileNotFoundException e) {
        logger.severe("Could not find expected sample \"" + sampleID
            + '"');
        MZmineCore.getDesktop().displayErrorMessage(
View Full Code Here

Examples of net.sf.mzmine.taskcontrol.Task.addTaskListener()

    if (newTask == null) {
      logger.warning("Cannot determine file type of file " + fileName);
      return true;
    }

    newTask.addTaskListener(this);
    tasks.add(newTask);
    return false;
  }

  private Task chooseCsvReadTask(File fileName,
View Full Code Here

Examples of net.sourceforge.ganttproject.task.TaskManager.addTaskListener()

        TaskListenerImpl listener = new TaskListenerImpl() {
            public void taskAdded(TaskHierarchyEvent e) {
                setHasBeenCalled(true);
            }
        };
        taskManager.addTaskListener(listener);
        Task task = taskManager.createTask();
        assertTrue("Event taskAdded() is expected to be sent", listener
                .hasBeenCalled());
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.task.TaskManager.addTaskListener()

        TaskListenerImpl listener = new TaskListenerImpl() {
            public void dependencyAdded(TaskDependencyEvent e) {
                setHasBeenCalled(true);
            }
        };
        taskManager.addTaskListener(listener);
        Task task1 = taskManager.createTask();
        Task task2 = taskManager.createTask();
        //
        taskManager.getDependencyCollection().createDependency(task2, task1,
                new FinishStartConstraintImpl());
View Full Code Here

Examples of net.sourceforge.ganttproject.task.TaskManager.addTaskListener()

        TaskListenerImpl listener = new TaskListenerImpl() {
            public void dependencyRemoved(TaskDependencyEvent e) {
                setHasBeenCalled(true);
            }
        };
        taskManager.addTaskListener(listener);
        Task task1 = taskManager.createTask();
        Task task2 = taskManager.createTask();
        //
        TaskDependency dep = taskManager
                .getDependencyCollection()
View Full Code Here

Examples of net.sourceforge.ganttproject.task.TaskManager.addTaskListener()

public class TestTaskScheduleEvent extends TaskTestCase {
    public void testTaskScheduleEventIsSendOnTaskEndChange() {
        TaskManager taskManager = getTaskManager();
        Task task1 = taskManager.createTask();
        TaskListenerImpl listener = new TaskListenerImpl(taskManager);
        taskManager.addTaskListener(listener);
        GanttCalendar taskEnd = task1.getEnd().Clone();
        taskEnd.add(1);
        TaskMutator mutator = task1.createMutator();
        mutator.setEnd(taskEnd);
        mutator.commit();
View Full Code Here

Examples of net.sourceforge.ganttproject.task.TaskManager.addTaskListener()

    public void testTaskScheduleEventIsSendOnTaskStartChange() {
        TaskManager taskManager = getTaskManager();
        Task task1 = taskManager.createTask();
        TaskListenerImpl listener = new TaskListenerImpl(taskManager);
        taskManager.addTaskListener(listener);
        GanttCalendar taskStart = task1.getStart().Clone();
        taskStart.add(-1);
        TaskMutator mutator = task1.createMutator();
        mutator.setStart(taskStart);
        mutator.commit();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.