Package org.japura.controller

Examples of org.japura.controller.Controller


  panel = new ExecutionPanel("", progressBarIcon);
  }

  @Override
  protected void delayedStart() {
  Controller controller = Application.getControllerManager().getRoot(groupId);
  if (controller != null) {
    controller.addModal(panel, null, JLayeredPane.POPUP_LAYER + 1);
    panel.start();
  }
  }
View Full Code Here


  }

  @Override
  protected void finish() {
  panel.stop();
  Controller rootController =
    Application.getControllerManager().getRoot(groupId);
  if (rootController != null) {
    rootController.closeModal(panel);
  }
  panel = null;
  }
View Full Code Here

  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

    }

    Context context = controller.getContext();
    context.unregister(controller);

    Controller parentController = controller.getParent();
    if (parentController != null) {
    controller.unregisterParent();
    parentController.unregisterChild(controller);
    }
    controller.unregisterChildren();

    unregister(controller);
View Full Code Here

  ControllerA_Parent controllerA_Parent =
    collection.get(ControllerA_Parent.class);
  Assert.assertNotNull(controllerA_Parent);

  Controller controller = collection.get(Controller.class);
  Assert.assertNotNull(controller);

  Controller controller2 = collection.get(controller.getControllerId());
  Assert.assertEquals(controller, controller2);

  Collection<Controller> all = collection.getAll();
  Assert.assertEquals(3, all.size());
View Full Code Here

TOP

Related Classes of org.japura.controller.Controller

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.