|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.grails.plugin.vaadin.gsp.GspEvaluator
class GspEvaluator
Evaluates a Gsp body, adds any nested Vaadin components to the specified container and returns the resulting text and Vaadin components.
| Nested Class Summary | |
|---|---|
protected class |
GspEvaluator.GspLayoutNode
A special GspComponentNode that keeps a collection of any Vaadin Components that are added to it, and returns an HTML snippet of the form <div location='component_0' /> to the child component, which should then add this snippet to the page's body text. |
static class |
GspEvaluator.Result
Holds the result of an evaluation |
| Property Summary | |
|---|---|
Application |
application
The Vaadin application (required) |
CustomLayout |
parent
The parent component (required) |
boolean |
root
True if this is the root component (optional) |
| Constructor Summary | |
GspEvaluator()
Empty constructor |
|
GspEvaluator(CustomLayout parent, Application application, boolean root = false)
Initialise with specified values. |
|
| Method Summary | |
|---|---|
GspEvaluator.Result
|
evaluate(Closure body)
Executes the body closure (could be a tag body) and stores the resulting text and components. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Property Detail |
|---|
Application application
CustomLayout parent
boolean root
| Constructor Detail |
|---|
GspEvaluator()
GspEvaluator(CustomLayout parent, Application application, boolean root = false)
parent - The parent componentapplication - The Vaadin applicationroot - True if this is the root component
| Method Detail |
|---|
GspEvaluator.Result evaluate(Closure body)
parent - The parent componentapplication - The vaadin applicationbody - The closure to execute to obtain the GSP text and componentsroot - True if this is the root component
Groovy Documentation