Groovy Documentation

org.grails.plugin.vaadin.utils
[Groovy] Class DomainProxyPropertyConverter

java.lang.Object
  com.vaadin.data.util.AbstractProperty
      org.grails.plugin.vaadin.utils.PropertyConverter
          org.grails.plugin.vaadin.utils.DomainProxyPropertyConverter

@SuppressWarnings("unchecked")
protected class DomainProxyPropertyConverter
extends PropertyConverter

Wraps an underyling value in a proxy that implements the equals() method

Authors:
Francis McKenzie


Property Summary
String equalsProperty

 
Constructor Summary
DomainProxyPropertyConverter()

Initialise empty

DomainProxyPropertyConverter(Property propertyDataSource, String equalsProperty)

Initialise with data source

 
Method Summary
Object convert(Object value)

Converts value to proxy

Class getType()

Returns class of dataSource or Object if none exists

Object restore(Object value)

Restores value from proxy

 
Methods inherited from class PropertyConverter
convert, getPropertyDataSource, getType, getValue, isReadOnly, readOnlyStatusChange, restore, setPropertyDataSource, setReadOnly, setValue, toString, valueChange
 
Methods inherited from class AbstractProperty
toString, setReadOnly, isReadOnly, getListeners, addListener, addListener, removeListener, removeListener, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll, getValue, getType, setValue
 

Property Detail

equalsProperty

String equalsProperty


 
Constructor Detail

DomainProxyPropertyConverter

DomainProxyPropertyConverter()
Initialise empty


DomainProxyPropertyConverter

DomainProxyPropertyConverter(Property propertyDataSource, String equalsProperty)
Initialise with data source


 
Method Detail

convert

@Override
Object convert(Object value)
Converts value to proxy


getType

@Override
Class getType()
Returns class of dataSource or Object if none exists


restore

@Override
Object restore(Object value)
Restores value from proxy


 

Groovy Documentation