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