org.millstone.base.data.util
Class BeanItem

java.lang.Object
  |
  +--org.millstone.base.data.util.PropertysetItem
        |
        +--org.millstone.base.data.util.BeanItem
All Implemented Interfaces:
Item, Item.PropertySetChangeNotifier

public class BeanItem
extends PropertysetItem

A wrapper class for adding the Item interface to any Java Bean.

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

Nested Class Summary
 
Nested classes inherited from class org.millstone.base.data.Item
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer
 
Constructor Summary
BeanItem(java.lang.Object bean)
          Creates a new instance of BeanItem and adds all properties of a Java Bean to it.
 
Methods inherited from class org.millstone.base.data.util.PropertysetItem
addItemProperty, addListener, getItemProperty, getItemPropertyIds, removeItemProperty, removeListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanItem

public BeanItem(java.lang.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 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


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.