Package limelight.java

Source Code of limelight.java.JavaScene

//- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved.
//- Limelight and all included source files are distributed under terms of the MIT License.

package limelight.java;

import limelight.model.api.PlayerRecruiter;
import limelight.model.api.SceneProxy;
import limelight.ui.model.PropPanel;
import limelight.ui.model.ScenePanel;

import java.util.Map;

public class JavaScene extends JavaProp implements SceneProxy
{

  public JavaScene(JavaProduction production, PlayerRecruiter recruiter, Map<String, Object> options)
  {
    super(options);
    peer = new ScenePanel(this, recruiter, options);
    getPeer().setProduction(production);
  }

  @Override
  protected PropPanel createPeer(Map<String, Object> options)
  {
    return null; // Wierd I know.
  }

  public ScenePanel getPeer()
  {
    return (ScenePanel)peer;
  }

  public JavaProduction getProduction()
  {
    return (JavaProduction)getPeer().getProduction();
  }

  public JavaProp findProp(String id)
  {
    final PropPanel panel = getPeer().find(id);
    if(panel != null)
      return (JavaProp)panel.getProxy();
    else
      return null;
  }
}
TOP

Related Classes of limelight.java.JavaScene

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.