|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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.
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 |
---|
protected Map changedProperties
protected DT instance
Constructor Detail |
---|
DomainPropertyDescriptor.DomainProperty(DT instance, Map changedProperties)
instance
- The domain instancechangedProperties
- The 'pool' of changed values for the domain instance
Method Detail |
---|
String getName()
Class getType()
Object getValue()
void setValue(Object newValue)
Note setting is done using domainInstance.properties = changedProperties
as this takes advantage of Grails's built-in validation and error-handling.
Groovy Documentation