Examples of StageActivatedEvent


Examples of limelight.ui.events.stage.StageActivatedEvent

  public void openSceneWithActiveStage() throws Exception
  {
    production.loadProduction();
    MockStage stage = new MockStage("active");
    production.getTheater().add(stage);
    new StageActivatedEvent().dispatch(stage);

    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", Util.toMap());
View Full Code Here

Examples of limelight.ui.events.stage.StageActivatedEvent

    theater.add(defaultStage);
    theater.add(stage2);

    assertEquals(null, theater.getActiveStage());

    new StageActivatedEvent().dispatch(stage2);
    assertEquals(stage2, theater.getActiveStage());

    new StageActivatedEvent().dispatch(defaultStage);
    assertEquals(defaultStage, theater.getActiveStage());
  }
View Full Code Here

Examples of limelight.ui.events.stage.StageActivatedEvent

  public void removedStagesDoNotGetActivated() throws Exception
  {
    theater.add(defaultStage);
    theater.remove(defaultStage);

    new StageActivatedEvent().dispatch(defaultStage);
    assertEquals(null, theater.getActiveStage());
  }
View Full Code Here

Examples of limelight.ui.events.stage.StageActivatedEvent

  {
    MockStage stage2 = new MockStage("two");
    theater.add(defaultStage);
    theater.add(stage2);

    new StageActivatedEvent().dispatch(defaultStage);
    new StageDeactivatedEvent().dispatch(defaultStage);
    assertEquals(null, theater.getActiveStage());
  }
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.