Groovy Documentation

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

java.lang.Object
  org.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.

Authors:
Francis McKenzie


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

context

GspContext context
The context that holds the active Vaadin Component


out

java.io.Writer out
The writer to use to write out the result of attaching the component. This should just be the 'out' of the tag library.


 
Constructor Detail

GspAttacher

GspAttacher(GspContext context, java.io.Writer out)
Constructs a new attacher, for adding a new Component to the active Vaadin Component in the context.
Parameters:
context - The context for getting a handle to the active Vaadin Component
out - The writer to use to print out the result (if any) of attaching the Component


 
Method Detail

attachComponent

def attachComponent(Component component, Map params = null)
Attaches the specified Component to the context's active Vaadin Component.
Parameters:
component - The Vaadin Component to attach
params - The (optional) params to use when adding the child component to this node's component. Typically will contain 'location'


attachConfig

def attachConfig(GspComponentConfig config)
Applies the specified Component configuration to the context's active Vaadin Component
Parameters:
config - The configuration to apply to the active Vaadin Component


 

Groovy Documentation