model.show
Class ShowFactory

java.lang.Object
  extended by model.show.ShowFactory

public class ShowFactory
extends Object

This class will produce a show given a show data file.

TODO: Should this file be merged into Show, or should the code to save files be merged into this file, or something else? It seems wierd to have the saving code in the class, and the loading code in a separate class.


Constructor Summary
ShowFactory()
           
 
Method Summary
static Show openShow(String fileName)
          This method will load a Show given the filename of the show data file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowFactory

public ShowFactory()
Method Detail

openShow

public static Show openShow(String fileName)
This method will load a Show given the filename of the show data file.

TODO: Add better error handling to this method. Need to notify the user through a dialog box when there is an error loading the file.

Parameters:
fileName - The file name and path of the show data file.
Returns:
The Show object represented by the show data file.