Package com.vaadin.v7.data.fieldgroup
Class DefaultFieldGroupFieldFactory
- java.lang.Object
-
- com.vaadin.v7.data.fieldgroup.DefaultFieldGroupFieldFactory
-
- All Implemented Interfaces:
FieldGroupFieldFactory
,Serializable
- Direct Known Subclasses:
Grid.EditorFieldFactory
@Deprecated public class DefaultFieldGroupFieldFactory extends Object implements FieldGroupFieldFactory
Deprecated.As of 8.0, no direct replacement available.Binder.forMemberField(HasValue)
andBinder.bindInstanceFields(Object)
should be used instead.This class contains a basic implementation forFieldGroupFieldFactory
.The class is singleton, useget()
method to get reference to the instance.- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static Object
CAPTION_PROPERTY_ID
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultFieldGroupFieldFactory()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
anyField(Class<?> fieldType)
Deprecated.protected boolean
anySelect(Class<? extends Field> fieldType)
Deprecated.protected <T extends AbstractTextField>
TcreateAbstractTextField(Class<T> fieldType)
Deprecated.protected <T extends Field>
TcreateBooleanField(Class<T> fieldType)
Deprecated.protected AbstractSelect
createCompatibleSelect(Class<? extends AbstractSelect> fieldType)
Deprecated.protected <T extends Field>
TcreateDefaultField(Class<?> type, Class<T> fieldType)
Deprecated.Fallback when no specific field has been created.<T extends Field>
TcreateField(Class<?> type, Class<T> fieldType)
Deprecated.Creates a field based on the data type that we want to edit.protected RichTextArea
createRichTextArea()
Deprecated.static DefaultFieldGroupFieldFactory
get()
Deprecated.Gets the singleton instance.protected void
populateWithEnumData(AbstractSelect select, Class<? extends Enum> enumClass)
Deprecated.Populates the given select with all the enums in the givenEnum
class.
-
-
-
Field Detail
-
CAPTION_PROPERTY_ID
public static final Object CAPTION_PROPERTY_ID
Deprecated.
-
-
Method Detail
-
get
public static DefaultFieldGroupFieldFactory get()
Deprecated.Gets the singleton instance.- Returns:
- the singleton instance
- Since:
- 7.4
-
createField
public <T extends Field> T createField(Class<?> type, Class<T> fieldType)
Deprecated.Description copied from interface:FieldGroupFieldFactory
Creates a field based on the data type that we want to edit.- Specified by:
createField
in interfaceFieldGroupFieldFactory
- Parameters:
type
- The type that we want to edit using the fieldfieldType
- The type of field we want to create. If set toField
then any type of field is accepted- Returns:
- A field that can be assigned to the given fieldType and that is capable of editing the given type of data
-
createRichTextArea
protected RichTextArea createRichTextArea()
Deprecated.
-
createCompatibleSelect
protected AbstractSelect createCompatibleSelect(Class<? extends AbstractSelect> fieldType)
Deprecated.
-
anyField
protected boolean anyField(Class<?> fieldType)
Deprecated.- Parameters:
fieldType
- the type of the field- Returns:
- true if any AbstractField can be assigned to the field
- Since:
- 7.4
-
anySelect
protected boolean anySelect(Class<? extends Field> fieldType)
Deprecated.- Parameters:
fieldType
- the type of the field- Returns:
- true if any AbstractSelect can be assigned to the field
- Since:
- 7.4
-
createBooleanField
protected <T extends Field> T createBooleanField(Class<T> fieldType)
Deprecated.
-
createAbstractTextField
protected <T extends AbstractTextField> T createAbstractTextField(Class<T> fieldType)
Deprecated.
-
createDefaultField
protected <T extends Field> T createDefaultField(Class<?> type, Class<T> fieldType)
Deprecated.Fallback when no specific field has been created. Typically returns a TextField.- Type Parameters:
T
- The type of field to create- Parameters:
type
- The type of data that should be editedfieldType
- The type of field to create- Returns:
- A field capable of editing the data or null if no field could be created
-
populateWithEnumData
protected void populateWithEnumData(AbstractSelect select, Class<? extends Enum> enumClass)
Deprecated.Populates the given select with all the enums in the givenEnum
class. UsesEnum
.toString() for caption.- Parameters:
select
- The select to populateenumClass
- The Enum class to use
-
-