|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.web.JarThemeSource
public class JarThemeSource
Theme source for reading themes from a JAR archive. At this time only jar files are supported and an archive may not contain any recursive archives.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.itmill.toolkit.terminal.web.ThemeSource |
|---|
ThemeSource.ThemeException, ThemeSource.XSLStream |
| Constructor Summary | |
|---|---|
JarThemeSource(File file,
ApplicationServlet webAdapterServlet,
String path)
Creates a new instance of ThemeRepository by reading the themes from a local directory. |
|
| Method Summary | |
|---|---|
long |
getModificationTime()
Returns modication time of the jar file. |
String |
getName()
Gets the name of the ThemeSource. |
InputStream |
getResource(String resourceId)
Gets the input stream for the resource with the specified resource id. |
Theme |
getThemeByName(String name)
Gets the Theme instance by name. |
Collection |
getThemes()
Gets the list of themes in the theme source. |
Collection |
getXSLStreams(Theme theme,
WebBrowser type)
Gets the XSL stream for the specified theme and web-browser type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JarThemeSource(File file,
ApplicationServlet webAdapterServlet,
String path)
throws ThemeSource.ThemeException,
FileNotFoundException,
IOException
file - the Path to the JAR archive .webAdapterServlet - path - the Path inside the archive to be processed.
ThemeException - If the resource is not found or there was some problem
finding the resource.
FileNotFoundException - if no theme files are found.
IOException - if the writing failed due to input/output error.
ThemeSource.ThemeException| Method Detail |
|---|
public Collection getXSLStreams(Theme theme,
WebBrowser type)
throws ThemeSource.ThemeException
getXSLStreams in interface ThemeSourcetheme - the Theme, which XSL should be returned.type - the type of the current client.
ThemeSource.ThemeException - If the resource is not found or there was some problem
finding the resource.ThemeSource.getXSLStreams(Theme,
WebBrowser)public long getModificationTime()
getModificationTime in interface ThemeSourceThemeSource.getModificationTime()
public InputStream getResource(String resourceId)
throws ThemeSource.ThemeException
getResource in interface ThemeSourceresourceId - the resource id.
ThemeSource.ThemeException - If the resource is not found or there was some problem
finding the resource.ThemeSource.getResource(String)public Collection getThemes()
getThemes in interface ThemeSourceThemeSource.getThemes()public String getName()
getName in interface ThemeSourceThemeSource.getName()public Theme getThemeByName(String name)
getThemeByName in interface ThemeSourcename - the Theme name.
ThemeSource.getThemeByName(String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||