Package org.japura.controller

Examples of org.japura.controller.Group


  }

  private String getGroupId(TaskExecutionUIEvent event) {
  TaskExecutor owner = event.getTaskOwner();
  if (owner instanceof Group) {
    Group group = (Group) owner;
    Controller c = group.getRootController();
    if (c != null && Application.getControllerManager().contains(c)) {
    return group.getId();
    }
  }
  return null;
  }
View Full Code Here


  for (Controller controller : freeList) {
    ControllerStatus newStatus = ControllerStatus.UNREGISTERING;
    controller.setControllerStatus(newStatus);

    Group group = controller.getGroup();
    group.fireListeners(controller, newStatus);
    Context context = controller.getContext();
    context.fireListeners(controller, newStatus);
    fireListeners(controller, newStatus);
  }

  // cancel all tasks
  if (cancelGroupTaskExecution) {
    for (Controller controller : freeList) {
    controller.getGroup().cancelTasks();
    }
  }

  // unregister all
  for (Controller controller : freeList) {
    Application.getMessageManager().unregister(controller);

    Group group = controller.getGroup();
    group.unregister(controller);
    if (group.count() == 0) {
    group.shutdown();
    }

    Context context = controller.getContext();
    context.unregister(controller);
View Full Code Here

TOP

Related Classes of org.japura.controller.Group

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.