Package limelight.util

Examples of limelight.util.Opts


  @Test
  public void backstage() throws Exception
  {
    assertEquals(0, root.backstage_PRIVATE().size());
    root.add(child);
    Opts backstage = root.getBackstage(child);
    assertEquals(1, root.backstage_PRIVATE().size());
    assertEquals(0, backstage.size());
    assertSame(backstage, root.getBackstage(child));
  }
View Full Code Here


    PanelEvent event = (PanelEvent)e;
    final Production production = event.getRecipient().getRoot().getProduction();
    final List<Stage> stages = production.getTheater().getStages();
    for(Stage stage : stages)
    {
      production.openScene(stage.getScene().getResourceLoader().getRoot(), stage, new Opts());
    }

//      (let [scene (.getRoot (.getRecipient e))
//        stage (.getStage scene)
//        production (.getProduction scene)
View Full Code Here

    return "fake_scene/path";
  }

  public Opts getBackstage(Prop child)
  {
    Opts result = backstage.get(child);
    if(result == null)
    {
      result = new Opts();
      backstage.put(child, result);
    }
    return result;
  }
View Full Code Here

    production.getTheater().add(stage);
    stage.setDefaultSceneName("defaultScene");
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.open(new Opts());

    assertEquals(true, action.invoked);
    assertEquals(true, stage.isOpen());
    assertEquals(scene, stage.getScene());
  }
View Full Code Here

    return Context.fs().filename(path);
  }

  public Map<String, Object> applyOptions(PropPanel prop, Map<String, Object> options)
  {
    appliedOptions = new Opts(options);
    return options;
  }
View Full Code Here

  @Test
  public void loadsSceneWithProps() throws Exception
  {
    fs.createTextFile("/testProduction/aScene/props.xml", "<props><child><grandchild/></child><child2/></props>");
    final Opts options = Opts.with("backgroundColor", "red", "shouldAllowClose", false);
    ScenePanel scene = (ScenePanel)production.loadScene("aScene", options.merge("name", "aScene", "path", "aScene"));

    scene.illuminate();
    assertEquals(2, scene.getChildren().size());
    final PropPanel child1 = (PropPanel)scene.getChildren().get(0);
    assertEquals("child", child1.getName());
View Full Code Here

  }

  @Test
  public void loadEmptyStylesForScene() throws Exception
  {
    final Scene scene = production.loadScene("aScene", new Opts());

    final Map<String, RichStyle> styles = production.loadStyles(scene, new HashMap<String, RichStyle>());

    assertEquals(0, styles.size());
  }
View Full Code Here

  }

  @Test
  public void whenEmpty() throws Exception
  {
    assertEquals(new Opts(), form.getData());
  }
View Full Code Here

  }

  public void openRigger()
  {
    establishStage("rigger", riggerStageOptions);
    production.openScene("rigger", "rigger", new Opts());
  }
View Full Code Here

        final List<Stage> stages = production.getTheater().getStages();
        for(Stage stage : stages)
        {
          final Scene scene = stage.getScene();
          if(scene != null)
            production.openScene(scene.getAbsoluteName(), stage.getName(), new Opts());
        }
      }
    }
View Full Code Here

TOP

Related Classes of limelight.util.Opts

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.