arcade.mod.controller
Class FrameFactory

java.lang.Object
  extended by arcade.mod.controller.FrameFactory

public class FrameFactory
extends java.lang.Object

Create a ListFrame object based on a specified resource type. Right now these are hard coded from a map, but eventually we would like to abstract to make this process more data driven


Constructor Summary
FrameFactory()
          Creates a new instance of FrameFactory and populates the map
 
Method Summary
 AbstractListFrame createFrame(java.lang.String resourceType, IResourceNode node)
          Creates a ListFrame from a ResourceNode for use in the Controller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameFactory

public FrameFactory()
Creates a new instance of FrameFactory and populates the map

Method Detail

createFrame

public AbstractListFrame createFrame(java.lang.String resourceType,
                                     IResourceNode node)
Creates a ListFrame from a ResourceNode for use in the Controller

Parameters:
resourceType - respresents the type of resource (i.e.image, sound, etc.)
node - ResourceNode to be converted
Returns:
AbstractListFrame to be used for the user interface