|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.data.fieldgroup.FieldGroup
com.vaadin.data.fieldgroup.BeanFieldGroup<T>
public class BeanFieldGroup<T>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.data.fieldgroup.FieldGroup |
|---|
FieldGroup.BindException, FieldGroup.CommitEvent, FieldGroup.CommitException, FieldGroup.CommitHandler |
| Constructor Summary | |
|---|---|
BeanFieldGroup(java.lang.Class<T> beanType)
|
|
| Method Summary | |
|---|---|
void |
bind(Field field,
java.lang.Object propertyId)
Binds the field with the given propertyId from the current item. |
protected void |
configureField(Field<?> field)
Configures a field with the settings set for this FieldBinder. |
BeanItem<T> |
getItemDataSource()
Gets the item used by this FieldBinder. |
protected java.lang.Class<?> |
getPropertyType(java.lang.Object propertyId)
Gets the type of the property with the given property id. |
protected static boolean |
isBeanValidationImplementationAvailable()
Checks whether a bean validation implementation (e.g. |
void |
setItemDataSource(Item item)
Updates the item that is used by this FieldBinder. |
void |
setItemDataSource(T bean)
Helper method for setting the data source directly using a bean. |
| Methods inherited from class com.vaadin.data.fieldgroup.FieldGroup |
|---|
addCommitHandler, bindMemberFields, build, buildAndBind, buildAndBind, buildAndBind, buildAndBindMemberFields, buildAndBindMemberFields, commit, discard, getBoundPropertyIds, getCommitHandlers, getField, getFieldFactory, getFields, getItemProperty, getPropertyId, getUnboundPropertyIds, isBuffered, isEnabled, isModified, isReadOnly, isValid, removeCommitHandler, setBuffered, setEnabled, setFieldFactory, setReadOnly, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanFieldGroup(java.lang.Class<T> beanType)
| Method Detail |
|---|
protected java.lang.Class<?> getPropertyType(java.lang.Object propertyId)
FieldGroup
getPropertyType in class FieldGrouppropertyId - The propertyId. Must be find
public void setItemDataSource(T bean)
BeanItem and calls
setItemDataSource(Item).
bean - The bean to use as data source.public void setItemDataSource(Item item)
FieldGroup
setItemDataSource in class FieldGroupitem - The new item to usepublic BeanItem<T> getItemDataSource()
FieldGroupFieldGroup.commit() for the item to be updated unless buffered mode has
been switched off.
getItemDataSource in class FieldGroupFieldGroup.setBuffered(boolean),
FieldGroup.commit()
public void bind(Field field,
java.lang.Object propertyId)
FieldGroupFieldGroup.setItemDataSource(Item).
This method also adds validators when applicable.
bind in class FieldGroupfield - The field to bindpropertyId - The propertyId to bind to the fieldprotected void configureField(Field<?> field)
FieldGroupBy default this updates the buffered, read only and enabled state of the field. Also adds validators when applicable. Fields with read only data source are always configured as read only.
configureField in class FieldGroupfield - The field to updateprotected static boolean isBeanValidationImplementationAvailable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||