This class provides an interface to the meta-information regarding a particular theme. This entails for instanace the inheritance tree of the various xsl-template files, the different requirments that the theme imposes on the client browser, etc.
The WebAdapter uses themes to convert the UIDL description into client representation, typically HTML or XHTML. A theme consists of set of XSL template files which are used to perform XSL transform.
XSL files are divided into sets, which can have requirements. A file set is included in transformation only if the given requirements are met. Following requirements are supported:
User-Agent HTTP header substring matching
Markup language version
JavaScript version
Additionally following boolean operators may be applied to above requirements:
NOT
AND
OR
The requirements are introduced in XML description file. See example below.
The theme description is XML data, and it can be loaded from file or stream.
The default filename is specified by
Theme.DESCRIPTIONFILE
.
3.0
Inheritance Path. java.lang.Object-> org.xml.sax.helpers.DefaultHandler-> com.itmill.toolkit.terminal.web.Theme
Parameters
descriptionFile
Description file
Exceptions
FileNotFoundException
Thrown if the given file is not found.
Creates a new instance using XML description file. Instantiate new theme, by loading the description from given File.
Parameters
descriptionStream
XML input to parse
Creates a new instance using XML description stream. Instantiate new theme, by loading the description from given InputSource.
Parse character data in XML stream.
Parse end tag in XML stream.
Parameters
List of filenames belonging to this theme.
Get list of all files in this theme.
Parameters
list of filenames in this theme supporting the given terminal.
Get list of file names matching WebBrowserType.
Get the preferred operating mode supported by this theme for given terminal.
Parse start tag in XML stream.