|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.data.util.AbstractProperty
com.vaadin.addon.jpacontainer.fieldfactory.PropertyTranslator
com.vaadin.addon.jpacontainer.fieldfactory.ListTranslator
public class ListTranslator
Generic wrapper property that translates items (Set from Vaadin selects) to a property of type List. The list order is taken from the selects order of items.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.data.util.AbstractProperty |
|---|
com.vaadin.data.util.AbstractProperty.ReadOnlyStatusChangeEvent |
| Nested classes/interfaces inherited from interface com.vaadin.data.Property |
|---|
com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.Transactional<T>, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewer |
| Constructor Summary | |
|---|---|
ListTranslator(com.vaadin.ui.AbstractSelect select)
|
|
| Method Summary | |
|---|---|
Object |
translateFromDatasource(Object value)
This method must be implemented to translate the value received from DataSource. |
Object |
translateToDatasource(Object formattedValue)
This method is used by setValue() method to translate given value to be suitable for the datasource. |
| Methods inherited from class com.vaadin.addon.jpacontainer.fieldfactory.PropertyTranslator |
|---|
getPropertyDataSource, getType, getValue, isReadOnly, readOnlyStatusChange, setPropertyDataSource, setReadOnly, setValue, toString, valueChange |
| Methods inherited from class com.vaadin.data.util.AbstractProperty |
|---|
addListener, addListener, addReadOnlyStatusChangeListener, addValueChangeListener, fireReadOnlyStatusChange, fireValueChange, getListeners, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValueChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListTranslator(com.vaadin.ui.AbstractSelect select)
| Method Detail |
|---|
public Object translateFromDatasource(Object value)
PropertyTranslator
translateFromDatasource in class PropertyTranslatorvalue - Value object got from the datasource. This is guaranteed to be
non-null and of the type compatible with getType() of the
datasource.
public Object translateToDatasource(Object formattedValue)
throws Exception
PropertyTranslator
translateToDatasource in class PropertyTranslatorException - Any type of exception can be thrown to indicate that the
conversion was not succesful.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||