Package limelight.ui.events.stage

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


    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

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

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

  {
    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

Related Classes of limelight.ui.events.stage.StageActivatedEvent

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.