All Packages Class Hierarchy This Package Previous Next Index

Class org.jfouffa.jslider.HeaderFactory

java.lang.Object
   |
   +----org.jfouffa.jslider.HeaderFactory

public class HeaderFactory
extends Object
This class builds new instance of Headers.


Constructor index

 o HeaderFactory()
Constructs a new HeaderFactory.

Method index

 o create(String, String)
Returns a new instance of Header for the specified index, depending on the specified name or null if no headers have the specified name.
 o getHeaderList()
Gets the list of headers type available in the HeaderFactory property file.
 o getHeaderType(String)
Gets the type of the header (specified in the template file) at the specified index
 o getTemplateLoader()
Gets the template loader used by this factory.
 o setTemplateFileLocation(String)
Sets the template file loaction used by the HeaderFactory to the specified filename.

Constructors

 o HeaderFactory
 public HeaderFactory()
Constructs a new HeaderFactory.

Methods

 o setTemplateFileLocation
 public void setTemplateFileLocation(String filename) throws MalformedURLException, IOException
Sets the template file loaction used by the HeaderFactory to the specified filename.

Parameters:
filename - the template filename
 o getHeaderType
 public String getHeaderType(String index)
Gets the type of the header (specified in the template file) at the specified index

 o getTemplateLoader
 public TemplateLoader getTemplateLoader()
Gets the template loader used by this factory.

 o create
 public Header create(String name,
                      String index)
Returns a new instance of Header for the specified index, depending on the specified name or null if no headers have the specified name.

Parameters:
name - the name of the header
index - the header's index
 o getHeaderList
 public static String[] getHeaderList()
Gets the list of headers type available in the HeaderFactory property file.