|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.data.util.PropertysetItem
com.itmill.toolkit.data.util.BeanItem
public class BeanItem
A wrapper class for adding the Item interface to any Java Bean.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.itmill.toolkit.data.Item |
|---|
Item.Editor, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer |
| Constructor Summary | |
|---|---|
BeanItem(Object bean)
Creates a new instance of BeanItem and adds all properties
of a Java Bean to it. |
|
BeanItem(Object bean,
Collection propertyIds)
Creates a new instance of BeanItem and adds all listed
properties of a Java Bean to it - in specified order. |
|
| Method Summary | |
|---|---|
Object |
getBean()
Gets the underlying JavaBean object. |
| Methods inherited from class com.itmill.toolkit.data.util.PropertysetItem |
|---|
addItemProperty, addListener, clone, equals, getItemProperty, getItemPropertyIds, hashCode, removeItemProperty, removeListener, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BeanItem(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.
bean - the Java Bean to copy properties from.
public BeanItem(Object bean,
Collection propertyIds)
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.
bean - the Java Bean to copy properties from.propertyIds - id of the property.| Method Detail |
|---|
public Object getBean()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||