public interface Theme
Modifier and Type | Interface and Description |
---|---|
static class |
Theme.Type |
Modifier and Type | Method and Description |
---|---|
String |
getImportName() |
Properties |
getMessages(Locale locale)
Same as getMessages(baseBundlename, locale), but uses a default baseBundlename
such as "messages".
|
Properties |
getMessages(String baseBundlename,
Locale locale)
Retrieve localized messages from a message bundle.
|
String |
getName() |
String |
getParentName() |
Properties |
getProperties() |
URL |
getResource(String path) |
InputStream |
getResourceAsStream(String path) |
URL |
getTemplate(String name) |
InputStream |
getTemplateAsStream(String name) |
Theme.Type |
getType() |
String getName()
String getParentName()
String getImportName()
Theme.Type getType()
URL getTemplate(String name) throws IOException
IOException
InputStream getTemplateAsStream(String name) throws IOException
IOException
URL getResource(String path) throws IOException
IOException
InputStream getResourceAsStream(String path) throws IOException
IOException
Properties getMessages(Locale locale) throws IOException
locale
- The locale of the desired message bundle.IOException
- If bundle can not be read.Properties getMessages(String baseBundlename, Locale locale) throws IOException
baseBundlename
- The base name of the bundle, such as "messages" in
messages_en.properties.locale
- The locale of the desired message bundle.IOException
- If bundle can not be read.Properties getProperties() throws IOException
IOException
Copyright © 2016 JBoss by Red Hat. All rights reserved.