Package limelight.ui.model

Examples of limelight.ui.model.FakeScene


    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());

    assertEquals("scenePath", production.loadedScenePath);
View Full Code Here


  public void openSceneWithStage() throws Exception
  {
    production.loadProduction();
    MockStage stage = new MockStage("mock");
    production.getTheater().add(stage);
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", "mock", Util.toMap());

    assertEquals("scenePath", production.loadedScenePath);
View Full Code Here

  @Test
  public void openSceneUpdatesOptionsWithNameAndPath() throws Exception
  {
    production.loadProduction();
    production.getTheater().add(new MockStage("mock"));
    production.stubbedScene = new FakeScene();
    final Map<String,Object> options = Util.toMap();

    production.openScene("scenePath/sceneName", "mock", options);

    assertNotSame(options, production.loadedSceneOptions);
View Full Code Here

  public void openSceneLoadsStylesExtendingProductionStyles() throws Exception
  {
    production.loadProduction();
    production.getTheater().add(new MockStage("mock"));
    production.getStyles().put("newStyle", new RichStyle());
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", "mock", Util.toMap());

    assertEquals(HashMap.class, scene.getStyles().getClass());
    assertEquals(true, scene.getStyles().containsKey("limelight_builtin_curtains"));
    assertEquals(true, scene.getStyles().containsKey("newStyle"));
  }
View Full Code Here

  {
    production.getEventHandler().add(ProductionOpenedEvent.class, action);
    MockStage stage = new MockStage();
    production.getTheater().add(stage);
    stage.setDefaultSceneName("defaultScene");
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.open(new Opts());

    assertEquals(true, action.invoked);
View Full Code Here

  public void defaultScenesCanBeDisabled() throws Exception
  {
    MockStage stage = new MockStage();
    production.getTheater().add(stage);
    stage.setDefaultSceneName("defaultScene");
    production.stubbedScene = new FakeScene();

    production.open(Util.toMap("open-default-scenes", false));

    assertEquals(false, stage.isOpen());
    assertEquals(null, stage.getScene());
View Full Code Here

  @Before
  public void setUp() throws Exception
  {
    panel = new TestableInputPanel();
    root = new FakeScene();
    root.add(panel);
  }
View Full Code Here

  public void setUp() throws Exception
  {
    panel = new CheckBoxPanel();
    parent = new PropPanel(new FakePropProxy());
    parent.add(panel);
    root = new FakeScene();
    root.add(parent);
  }
View Full Code Here

  {
    manager = new limelight.ui.KeyboardFocusManager();
    manager.install();
    panel = new MockInputPanel();

    FakeScene root = new FakeScene();
    root.add(panel);
  }
View Full Code Here

TOP

Related Classes of limelight.ui.model.FakeScene

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.