|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.grails.plugin.vaadin.gsp.GspAttacher
class GspAttacher
Attaches a Vaadin Component or ComponentConfig to the Vaadin Component that is currently active.
Used in constructing GSP views containing Vaadin components.
Property Summary | |
---|---|
GspContext |
context
The context that holds the active Vaadin Component |
java.io.Writer |
out
The writer to use to write out the result of attaching the component. |
Constructor Summary | |
GspAttacher(GspContext context, java.io.Writer out)
Constructs a new attacher, for adding a new Component to the active Vaadin Component in the context. |
Method Summary | |
---|---|
def
|
attachComponent(Component component, Map params = null)
Attaches the specified Component to the context's active Vaadin Component. |
def
|
attachConfig(GspComponentConfig config)
Applies the specified Component configuration to the context's active Vaadin Component |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Property Detail |
---|
GspContext context
java.io.Writer out
Constructor Detail |
---|
GspAttacher(GspContext context, java.io.Writer out)
context
- The context for getting a handle to the active Vaadin Componentout
- The writer to use to print out the result (if any) of attaching the Component
Method Detail |
---|
def attachComponent(Component component, Map params = null)
component
- The Vaadin Component to attachparams
- The (optional) params to use when adding the child component to this node's component. Typically will contain 'location'
def attachConfig(GspComponentConfig config)
config
- The configuration to apply to the active Vaadin Component
Groovy Documentation