|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.data.fieldgroup.DefaultFieldGroupFieldFactory
public class DefaultFieldGroupFieldFactory
This class contains a basic implementation for FieldGroupFieldFactory
.The class is singleton, use get() method to get reference to the
instance.
| Field Summary | |
|---|---|
static java.lang.Object |
CAPTION_PROPERTY_ID
|
| Constructor Summary | |
|---|---|
protected |
DefaultFieldGroupFieldFactory()
|
| Method Summary | ||
|---|---|---|
protected boolean |
anyField(java.lang.Class<?> fieldType)
|
|
protected boolean |
anySelect(java.lang.Class<? extends Field> fieldType)
|
|
protected
|
createAbstractTextField(java.lang.Class<T> fieldType)
|
|
protected
|
createBooleanField(java.lang.Class<T> fieldType)
|
|
protected AbstractSelect |
createCompatibleSelect(java.lang.Class<? extends AbstractSelect> fieldType)
|
|
protected
|
createDefaultField(java.lang.Class<?> type,
java.lang.Class<T> fieldType)
Fallback when no specific field has been created. |
|
|
createField(java.lang.Class<?> type,
java.lang.Class<T> fieldType)
Creates a field based on the data type that we want to edit |
|
protected RichTextArea |
createRichTextArea()
|
|
static DefaultFieldGroupFieldFactory |
get()
Gets the singleton instance. |
|
protected void |
populateWithEnumData(AbstractSelect select,
java.lang.Class<? extends java.lang.Enum> enumClass)
Populates the given select with all the enums in the given Enum
class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.Object CAPTION_PROPERTY_ID
| Constructor Detail |
|---|
protected DefaultFieldGroupFieldFactory()
| Method Detail |
|---|
public static DefaultFieldGroupFieldFactory get()
public <T extends Field> T createField(java.lang.Class<?> type,
java.lang.Class<T> fieldType)
FieldGroupFieldFactory
createField in interface FieldGroupFieldFactorytype - The type that we want to edit using the fieldfieldType - The type of field we want to create. If set to Field
then any type of field is accepted
protected RichTextArea createRichTextArea()
protected AbstractSelect createCompatibleSelect(java.lang.Class<? extends AbstractSelect> fieldType)
protected boolean anyField(java.lang.Class<?> fieldType)
fieldType - the type of the field
protected boolean anySelect(java.lang.Class<? extends Field> fieldType)
fieldType - the type of the field
protected <T extends Field> T createBooleanField(java.lang.Class<T> fieldType)
protected <T extends AbstractTextField> T createAbstractTextField(java.lang.Class<T> fieldType)
protected <T extends Field> T createDefaultField(java.lang.Class<?> type,
java.lang.Class<T> fieldType)
T - The type of field to createtype - The type of data that should be editedfieldType - The type of field to create
protected void populateWithEnumData(AbstractSelect select,
java.lang.Class<? extends java.lang.Enum> enumClass)
Enum
class. Uses Enum.toString() for caption.
select - The select to populateenumClass - The Enum class to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||