|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.joseluismartin.vaadin.ui.form.ComboBoxFieldBuilder
public class ComboBoxFieldBuilder
FieldBuilder that creates ComboBox and fill its with items from persistent service
Constructor Summary | |
---|---|
ComboBoxFieldBuilder()
Creates a new ComboBoxFieldFactory |
|
ComboBoxFieldBuilder(PersistentServiceFactory persistentServiceFactory)
Creates a new ComboBoxFieldBuilder |
Method Summary | |
---|---|
com.vaadin.ui.Field |
build(Class<?> clazz,
String name)
Build a Field |
protected ContainerDataSource<?> |
buildContainerDataSource(Class<?> clazz)
Creates a ContainerDataSource for entity class |
protected void |
fillComboBox(com.vaadin.ui.ComboBox combo,
Class<?> clazz,
String name)
Fill the ComboBox with items from PersistentService |
PersistentServiceFactory |
getPersistentServiceFactory()
|
void |
setPersistentServiceFactory(PersistentServiceFactory persistentServiceFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComboBoxFieldBuilder()
public ComboBoxFieldBuilder(PersistentServiceFactory persistentServiceFactory)
persistentServiceFactory
- persistentServiceFactory for creating persistent serivicesMethod Detail |
---|
public com.vaadin.ui.Field build(Class<?> clazz, String name)
build
in interface FieldBuilder
protected void fillComboBox(com.vaadin.ui.ComboBox combo, Class<?> clazz, String name)
combo
- ComboBox to fillclazz
- Class of Bean containing property namename
- property nameprotected ContainerDataSource<?> buildContainerDataSource(Class<?> clazz)
clazz
- entity classpublic PersistentServiceFactory getPersistentServiceFactory()
public void setPersistentServiceFactory(PersistentServiceFactory persistentServiceFactory)
persistentServiceFactory
- the persistentServiceFactory to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |