Groovy Documentation

org.grails.plugin.vaadin.data
[Groovy] Class DomainPropertyDescriptor.DomainProperty

java.lang.Object
  com.vaadin.data.util.AbstractProperty
      org.grails.plugin.vaadin.data.DomainPropertyDescriptor.DomainProperty

protected class DomainPropertyDescriptor.DomainProperty
extends AbstractProperty

Accesses the property of the specified instance using the details from the enclosing descriptor class.

Authors:
Francis McKenzie


Field Summary
protected Map changedProperties

protected DT instance

 
Constructor Summary
DomainPropertyDescriptor.DomainProperty(DT instance, Map changedProperties)

Construct the property with the specified domain instance and map for pooling multiple-properties' values.

 
Method Summary
String getName()

The fully-qualified name of the property of the domain instance

Class getType()

The type of the property

Object getValue()

The value of the property of the domain instance

void setValue(Object newValue)

The value of the property of the domain instance.

 
Methods inherited from class AbstractProperty
toString, setReadOnly, isReadOnly, getListeners, addListener, addListener, removeListener, removeListener, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll, getValue, getType, setValue
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

changedProperties

protected Map changedProperties


instance

protected DT instance


 
Constructor Detail

DomainPropertyDescriptor.DomainProperty

DomainPropertyDescriptor.DomainProperty(DT instance, Map changedProperties)
Construct the property with the specified domain instance and map for pooling multiple-properties' values.
Parameters:
instance - The domain instance
changedProperties - The 'pool' of changed values for the domain instance


 
Method Detail

getName

String getName()
The fully-qualified name of the property of the domain instance


getType

Class getType()
The type of the property


getValue

Object getValue()
The value of the property of the domain instance


setValue

void setValue(Object newValue)
The value of the property of the domain instance.

Note setting is done using domainInstance.properties = changedProperties as this takes advantage of Grails's built-in validation and error-handling.


 

Groovy Documentation