/* ************************************************************************* IT Mill Toolkit Development of Browser User Interfaces Made Easy Copyright (C) 2000-2006 IT Mill Ltd ************************************************************************* This product is distributed under commercial license that can be found from the product package on license.pdf. Use of this product might require purchasing a commercial license from IT Mill Ltd. For guidelines on usage, see licensing-guidelines.html ************************************************************************* For more information, contact: IT Mill Ltd phone: +358 2 4802 7180 Ruukinkatu 2-4 fax: +358 2 4802 7181 20540, Turku email: info@itmill.com Finland company www: www.itmill.com Primary source for information and releases: www.itmill.com ********************************************************************** */ package com.itmill.toolkit.data.util; import java.beans.BeanInfo; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.Method; import java.util.Collection; import java.util.Iterator; import com.itmill.toolkit.data.Property; /** * A wrapper class for adding the Item interface to any Java Bean. * * @author IT Mill Ltd. * @version * @VERSION@ * @since 3.0 */ public class BeanItem extends PropertysetItem { /** * The bean which this Item is based on. */ private Object bean; /** *
* 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 : This version only supports introspectable bean properties and
* their getter and setter methods. Stand-alone is
and
* are
methods are not supported.
*
* 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 : This version only supports introspectable bean properties and
* their getter and setter methods. Stand-alone is
and
* are
methods are not supported.
*