Groovy Documentation

org.grails.plugin.platform
[Groovy] Class ThemeTagLib

java.lang.Object
  org.grails.plugin.platform.ThemeTagLib

class ThemeTagLib

Property Summary
static java.lang.Object REQ_ATTR_TITLE

static java.lang.Object REQ_ATTR_ZONE_LIST

java.lang.Object body

Defines the body part of a Theme layout, body should contain tags like theme:layoutZone

java.lang.Object current

java.lang.Object debugMode

java.lang.Object defaultContent

java.lang.Object grailsThemes

java.lang.Object grailsViewFinder

java.lang.Object head

java.lang.Object ifLayoutIs

java.lang.Object ifLayoutIsNot

java.lang.Object ifNoZoneContent

java.lang.Object ifThemeIs

java.lang.Object ifThemeIsNot

java.lang.Object ifZoneContent

java.lang.Object layout

java.lang.Object layoutHTMLTitle

Render the page title in the head section

java.lang.Object layoutTemplate

java.lang.Object layoutTitle

Render the page title in the content

java.lang.Object layoutZone

Used by themes to render application-supplied content from zones defined in GSP pages or GSP templates.

java.lang.Object listThemes

java.lang.Object name

static java.lang.Object namespace

java.lang.Object resources

static java.lang.Object returnObjectForTags

java.lang.Object servletContext

java.lang.Object set

Set the theme to use for the current request @attr name The theme name to use

java.lang.Object title

Set the title of the page with i18n support, can be called in a GSP Page or a Layout.

java.lang.Object zone

 
Constructor Summary
ThemeTagLib()

 
Method Summary
private void doDefineZone(java.lang.Object id)

protected java.lang.Object getMessageOrBody(java.util.Map attrs, groovy.lang.Closure tagBody)

protected java.lang.Object getPage()

private boolean isDebugMode()

private boolean isZoneDefined(java.lang.Object id, boolean includeImplicitBody = false)

void mustBeInALayout(java.lang.Object tagName)

 
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

REQ_ATTR_TITLE

static java.lang.Object REQ_ATTR_TITLE


REQ_ATTR_ZONE_LIST

static java.lang.Object REQ_ATTR_ZONE_LIST


body

java.lang.Object body
Defines the body part of a Theme layout, body should contain tags like theme:layoutZone


current

java.lang.Object current


debugMode

java.lang.Object debugMode


defaultContent

java.lang.Object defaultContent


grailsThemes

java.lang.Object grailsThemes


grailsViewFinder

java.lang.Object grailsViewFinder


head

java.lang.Object head


ifLayoutIs

java.lang.Object ifLayoutIs


ifLayoutIsNot

java.lang.Object ifLayoutIsNot


ifNoZoneContent

java.lang.Object ifNoZoneContent


ifThemeIs

java.lang.Object ifThemeIs


ifThemeIsNot

java.lang.Object ifThemeIsNot


ifZoneContent

java.lang.Object ifZoneContent


layout

java.lang.Object layout


layoutHTMLTitle

java.lang.Object layoutHTMLTitle
Render the page title in the head section


layoutTemplate

java.lang.Object layoutTemplate


layoutTitle

java.lang.Object layoutTitle
Render the page title in the content


layoutZone

java.lang.Object layoutZone
Used by themes to render application-supplied content from zones defined in GSP pages or GSP templates. Typically for "footer" or other common elements that would normally be in the application SiteMesh layout. Themes may have varying support for these. These also allow the page to override the content. The content is located so: 1. A check is made for a "zone" with the name "template.", if found this is rendered 2. A check is made for a GSP template in the application at the path /_theme_templates/_.gsp 3. Failing (1) and (2), the body is rendered, assumed to contain theme's default sample content


listThemes

java.lang.Object listThemes


name

java.lang.Object name


namespace

static java.lang.Object namespace


resources

java.lang.Object resources


returnObjectForTags

static java.lang.Object returnObjectForTags


servletContext

java.lang.Object servletContext


set

java.lang.Object set
Set the theme to use for the current request
attr:
name The theme name to use


title

java.lang.Object title
Set the title of the page with i18n support, can be called in a GSP Page or a Layout.


zone

java.lang.Object zone


 
Constructor Detail

ThemeTagLib

ThemeTagLib()


 
Method Detail

doDefineZone

private void doDefineZone(java.lang.Object id)


getMessageOrBody

protected java.lang.Object getMessageOrBody(java.util.Map attrs, groovy.lang.Closure tagBody)


getPage

protected java.lang.Object getPage()


isDebugMode

private boolean isDebugMode()


isZoneDefined

private boolean isZoneDefined(java.lang.Object id, boolean includeImplicitBody = false)


mustBeInALayout

void mustBeInALayout(java.lang.Object tagName)


 

Groovy Documentation