| java.lang.Object com.xoetrope.template.XTemplateEngine com.xoetrope.carousel.catalog.XCustomXmlTemplateEngine
XCustomXmlTemplateEngine | public class XCustomXmlTemplateEngine extends XTemplateEngine (Code) | | A test application for the template engine
Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
$Revision: 1.2 $
|
XCustomXmlTemplateEngine | public XCustomXmlTemplateEngine(XProject proj, String source, String target)(Code) | | Creates a new instance of XCustomXmlTemplateEngine
|
addContent | public void addContent(String key, String content)(Code) | | Add content to the xml template
Parameters: key - String containing the key for the content Parameters: content - String containing the content |
addInclude | public void addInclude(String s, boolean b)(Code) | | Include a given element
Parameters: s - the name of the element. Parameters: b - boolean specifying whether the element is to be used or not. |
getContent | public String getContent(String elementName)(Code) | | Returns the content to be used in the xml template
Parameters: elementName - String containing the key for the content String containing the content |
includes | public boolean includes(String elementName)(Code) | | Returns a boolean when given a key specifying whether the element is to be included or not.
Parameters: elementName - String specifying the element name. true if the element is included, false if it is to be excluded. |
setSubTitle | public void setSubTitle(String text)(Code) | | Sets the sub-title text that will be displayed on the welcome page of the catalogue
String containing the sub-title text |
setWelcomeText | public void setWelcomeText(String text)(Code) | | Sets the welcome text that will be displayed on the welcome page of the catalogue
String containing the welcome text |
useSampleProducts | public void useSampleProducts(int s)(Code) | | Sets how many sample products are to be used within the catalogue
Parameters: a - int specifying the amount of products to be included |
|
|