Table of Contents
Provides various utility classes that implement the data layer functionality.
The first
Property
class,
ObjectProperty
, provides
a simple class containing a typed data value. The second,
MethodProperty
, provides
a way to bind a field of an object to the Property interface using the
accessor methods for the field.
The next level of the data layer, the
Item
, is implemented by
BeanItem
, though it is only a
simple wrapper to the former to provide the Item interface for any regular
Java Bean.
The third level, the
Container
,
has several implementations in the
com.itmill.toolkit.data.util
package.
<!-- Put @see and @since tags down here. -->
A wrapper class for adding the Item interface to any Java Bean.
3.0
Inheritance Path. java.lang.Object-> com.itmill.toolkit.data.util.PropertysetItem -> com.itmill.toolkit.data.util.BeanItem
Parameters
bean
the Java Bean to copy properties from
Creates a new instance of BeanItem and adds all properties of a Java Bean to it. The properties are identified by their respective bean names.
Note that this version only supports introspectable bean properties and their getter and setter methods. Stand-alone "is" and "are" methods are not supported.
Parameters
bean
the Java Bean to copy properties from
Creates a new instance of BeanItem and adds all listed properties of a Java Bean to it - in specified order. The properties are identified by their respective bean names.
Note that this version only supports introspectable bean properties and their getter and setter methods. Stand-alone "is" and "are" methods are not supported.