|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Object org.grails.plugin.platform.themes.Themes
class Themes
Script to allow execution of an existing Closure as if it was a Script
Property Summary | |
---|---|
static java.lang.Object |
ATTRIB_CURRENT_SITEMESH_LAYOUT
|
static java.lang.Object |
ATTRIB_CURRENT_THEME
|
static java.lang.Object |
ATTRIB_CURRENT_THEME_LAYOUT
|
static java.lang.Object |
ATTRIB_CURRENT_THEME_LAYOUT_FOUND
|
static java.lang.Object |
CORE_LAYOUTS
|
static java.lang.Object |
DEFAULT_LAYOUT
|
static java.lang.Object |
DEFAULT_THEME_NAME
|
java.util.List |
availableThemes
|
ThemeDefinition |
defaultTheme
|
java.lang.Object |
grailsApplication
|
java.lang.Object |
grailsPluginConfiguration
|
java.lang.Object |
grailsUiExtensions
|
java.lang.Object |
grailsViewFinder
|
java.lang.Object |
log
|
org.codehaus.groovy.grails.plugins.GrailsPlugin |
platformUiPlugin
|
java.lang.Object |
pluginConfig
|
java.lang.Object |
pluginManager
|
java.util.Map |
themesByName
|
Constructor Summary | |
Themes()
|
Method Summary | |
---|---|
void
|
afterPropertiesSet()
|
protected java.lang.Object
|
appendToContentBuffer(java.lang.Object request, java.lang.Object bufferName, java.lang.Object body)
|
java.lang.Object
|
appendToZone(java.lang.Object request, java.lang.String zone, java.lang.Object content)
|
ViewInfo
|
getDefaultTemplateForZone(java.lang.Object request, java.lang.Object zone)
Returns the template path for dummy text for the specific zone, for the current theme
Tries for files in the theme's _themes/ |
protected java.lang.Object
|
getPage(java.lang.Object request)
|
boolean
|
getRequestLayoutFound()
|
java.lang.String
|
getRequestSitemeshLayout(java.lang.Object request)
|
java.lang.String
|
getRequestStyle(java.lang.Object request)
|
ThemeDefinition
|
getRequestTheme(java.lang.Object request = null, boolean returnDefault = true)
|
ViewInfo
|
getRequestThemeTemplateView(java.lang.Object request, java.lang.Object template)
|
java.util.List
|
getThemeNames()
|
void
|
loadConfig()
|
void
|
loadThemes()
|
void
|
reload()
|
void
|
resolveLayoutForStyle(java.lang.Object request, java.lang.String styleName)
Take a requested page layout name and resolve it to a theme sitemesh layout path, and store this in the request. |
void
|
setRequestLayoutFound(java.lang.Object request, boolean found)
|
void
|
setRequestSitemeshLayout(java.lang.Object request, java.lang.Object layout)
|
void
|
setRequestStyle(java.lang.Object request, java.lang.String layoutName)
|
void
|
setRequestTheme(java.lang.Object request, java.lang.String theme)
|
void
|
setSessionTheme(java.lang.Object request, java.lang.String theme)
|
protected java.lang.Object
|
wrapContentInBuffer(java.lang.Object content)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Property Detail |
---|
static java.lang.Object ATTRIB_CURRENT_SITEMESH_LAYOUT
static java.lang.Object ATTRIB_CURRENT_THEME
static java.lang.Object ATTRIB_CURRENT_THEME_LAYOUT
static java.lang.Object ATTRIB_CURRENT_THEME_LAYOUT_FOUND
static java.lang.Object CORE_LAYOUTS
static java.lang.Object DEFAULT_LAYOUT
static java.lang.Object DEFAULT_THEME_NAME
java.util.List availableThemes
ThemeDefinition defaultTheme
java.lang.Object grailsApplication
java.lang.Object grailsPluginConfiguration
java.lang.Object grailsUiExtensions
java.lang.Object grailsViewFinder
final java.lang.Object log
org.codehaus.groovy.grails.plugins.GrailsPlugin platformUiPlugin
java.lang.Object pluginConfig
java.lang.Object pluginManager
java.util.Map themesByName
Constructor Detail |
---|
Themes()
Method Detail |
---|
void afterPropertiesSet()
protected java.lang.Object appendToContentBuffer(java.lang.Object request, java.lang.Object bufferName, java.lang.Object body)
java.lang.Object appendToZone(java.lang.Object request, java.lang.String zone, java.lang.Object content)
ViewInfo getDefaultTemplateForZone(java.lang.Object request, java.lang.Object zone)
protected java.lang.Object getPage(java.lang.Object request)
boolean getRequestLayoutFound()
java.lang.String getRequestSitemeshLayout(java.lang.Object request)
java.lang.String getRequestStyle(java.lang.Object request)
ThemeDefinition getRequestTheme(java.lang.Object request = null, boolean returnDefault = true)
ViewInfo getRequestThemeTemplateView(java.lang.Object request, java.lang.Object template)
java.util.List getThemeNames()
void loadConfig()
void loadThemes()
void reload()
void resolveLayoutForStyle(java.lang.Object request, java.lang.String styleName)
request
- The current requeststyleName
- The name of the page layo1ut requested
void setRequestLayoutFound(java.lang.Object request, boolean found)
void setRequestSitemeshLayout(java.lang.Object request, java.lang.Object layout)
void setRequestStyle(java.lang.Object request, java.lang.String layoutName)
void setRequestTheme(java.lang.Object request, java.lang.String theme)
void setSessionTheme(java.lang.Object request, java.lang.String theme)
protected java.lang.Object wrapContentInBuffer(java.lang.Object content)
Groovy Documentation