@Deprecated public static class Grid.EditorFieldFactory extends DefaultFieldGroupFieldFactory
CAPTION_PROPERTY_ID
Modifier | Constructor and Description |
---|---|
protected |
EditorFieldFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSelect |
createCompatibleSelect(Class<? extends AbstractSelect> fieldType)
Deprecated.
|
<T extends Field> |
createField(Class<?> type,
Class<T> fieldType)
Deprecated.
Creates a field based on the data type that we want to edit.
|
static Grid.EditorFieldFactory |
get()
Deprecated.
Returns the singleton instance.
|
protected void |
populateWithEnumData(AbstractSelect select,
Class<? extends Enum> enumClass)
Deprecated.
Populates the given select with all the enums in the given
Enum
class. |
anyField, anySelect, createAbstractTextField, createBooleanField, createDefaultField, createRichTextArea
public static Grid.EditorFieldFactory get()
public <T extends Field> T createField(Class<?> type, Class<T> fieldType)
FieldGroupFieldFactory
createField
in interface FieldGroupFieldFactory
createField
in class DefaultFieldGroupFieldFactory
type
- 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 acceptedprotected AbstractSelect createCompatibleSelect(Class<? extends AbstractSelect> fieldType)
createCompatibleSelect
in class DefaultFieldGroupFieldFactory
protected void populateWithEnumData(AbstractSelect select, Class<? extends Enum> enumClass)
DefaultFieldGroupFieldFactory
Enum
class. Uses Enum
.toString() for caption.populateWithEnumData
in class DefaultFieldGroupFieldFactory
select
- The select to populateenumClass
- The Enum class to useCopyright © 2020 Vaadin Ltd. All rights reserved.