Groovy Documentation

org.grails.plugin.vaadin.gsp
[Groovy] Class GspContext

java.lang.Object
  org.grails.plugin.vaadin.gsp.GspContext

class GspContext

For executing a tag's body, using the tag's Vaadin Component as the 'active' component, to which nested tags will append their Vaadin Components.

Authors:
Francis McKenzie


Property Summary
HttpSession session

The current active Vaadin Component node is stored in the session.

 
Constructor Summary
GspContext(HttpSession session)

Creates a new GspContext using the specified session to store the current active Vaadin Component.

 
Method Summary
CharSequence evaluate(GspComponentNode node, boolean isRoot = false)

Evaluates the body of the specified Gsp Component Node, but first sets the specified node to be the 'active' component node.

GspComponentNode getNode()

Gets the current active node, to which any child nodes will attach their Vaadin Components.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Property Detail

session

HttpSession session
The current active Vaadin Component node is stored in the session.


 
Constructor Detail

GspContext

GspContext(HttpSession session)
Creates a new GspContext using the specified session to store the current active Vaadin Component.
Parameters:
session - The session that will store the active component


 
Method Detail

evaluate

CharSequence evaluate(GspComponentNode node, boolean isRoot = false)
Evaluates the body of the specified Gsp Component Node, but first sets the specified node to be the 'active' component node. This means that whenever any child tags add components to their parent, they will be adding those components to the node specified here.
Parameters:
node - The node that will be the 'active' node, and whose body will be evaluated
node - True if the node is the top-level Gsp - if so, the context has no active node when done
Returns:
The output of executing the node's body


getNode

GspComponentNode getNode()
Gets the current active node, to which any child nodes will attach their Vaadin Components.
Returns:
The current active node


 

Groovy Documentation