BeanType
- Type of java bean wrapped by this classpublic class MyBeanItem<BeanType> extends Object implements com.vaadin.data.Item
Custom bean item to also generate properties for public fields (i.e. even without getter and setter methods)
Modifier and Type | Field and Description |
---|---|
static String |
NO_PREFIX |
static char |
PROP_SEPARATOR |
Constructor and Description |
---|
MyBeanItem(BeanType bean) |
MyBeanItem(BeanType bean,
String prefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFieldProperties(String prefix,
Object bean) |
boolean |
addItemProperty(Object id,
com.vaadin.data.Property property) |
protected void |
addMethodProperties(String prefix,
Object bean) |
protected void |
addProperties(String prefix,
Object bean) |
protected void |
collectFields(List<Field> selectedFields,
Class<?> clazz,
int modifier) |
BeanType |
getBean() |
protected List<Field> |
getFields(Class<?> beanClass,
int modifier) |
protected PropertyDescriptor[] |
getGettersAndSetters(Class<?> beanClass) |
String |
getItemId() |
com.vaadin.data.Property<?> |
getItemProperty(Object id) |
Collection<?> |
getItemPropertyIds() |
boolean |
removeItemProperty(Object id) |
String |
toString() |
public static final String NO_PREFIX
public static final char PROP_SEPARATOR
public MyBeanItem(BeanType bean)
public BeanType getBean()
protected void collectFields(List<Field> selectedFields, Class<?> clazz, int modifier)
protected PropertyDescriptor[] getGettersAndSetters(Class<?> beanClass)
public com.vaadin.data.Property<?> getItemProperty(Object id)
getItemProperty
in interface com.vaadin.data.Item
public Collection<?> getItemPropertyIds()
getItemPropertyIds
in interface com.vaadin.data.Item
public boolean addItemProperty(Object id, com.vaadin.data.Property property) throws UnsupportedOperationException
addItemProperty
in interface com.vaadin.data.Item
UnsupportedOperationException
public boolean removeItemProperty(Object id) throws UnsupportedOperationException
removeItemProperty
in interface com.vaadin.data.Item
UnsupportedOperationException
public String getItemId()
Copyright © 2016 Sensia Software LLC. All rights reserved.