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
-
HeaderFactory()
- Constructs a new HeaderFactory.
Method index
-
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.
-
getHeaderList()
- Gets the list of headers type available in the HeaderFactory property
file.
-
getHeaderType(String)
- Gets the type of the header (specified in the template file) at the
specified index
-
getTemplateLoader()
- Gets the template loader used by this factory.
-
setTemplateFileLocation(String)
- Sets the template file loaction used by the HeaderFactory to the
specified filename.
Constructors
HeaderFactory
public HeaderFactory()
- Constructs a new HeaderFactory.
Methods
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
getHeaderType
public String getHeaderType(String index)
- Gets the type of the header (specified in the template file) at the
specified index
getTemplateLoader
public TemplateLoader getTemplateLoader()
- Gets the template loader used by this factory.
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
getHeaderList
public static String[] getHeaderList()
- Gets the list of headers type available in the HeaderFactory property
file.