AbstractSelectFieldDefinition
instead.@Deprecated @MgnlDeprecated(since="6.2", description="Use new framework and info.magnolia.ui.field.AbstractSelectFieldDefinition instead.") public class SelectFieldDefinition extends ConfiguredFieldDefinition
Offers two distinct ways of populating selection options:
option definitions
can be provided via setOptions(List)
setPath(String)
, setLabelProperty(String)
and setValueProperty(String)
methodsModifier and Type | Field and Description |
---|---|
static String |
DEFAULT_REPOSITORY_NAME
Deprecated.
|
static String |
OPTION_ICONSRC_PROPERTY_NAME
Deprecated.
|
static String |
OPTION_LABEL_PROPERTY_NAME
Deprecated.
|
static String |
OPTION_NAME_PROPERTY_NAME
Deprecated.
|
static String |
OPTION_SELECTED_PROPERTY_NAME
Deprecated.
|
static String |
OPTION_VALUE_PROPERTY_NAME
Deprecated.
|
Constructor and Description |
---|
SelectFieldDefinition()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addOption(SelectFieldOptionDefinition option)
Deprecated.
|
Class<? extends Comparator<SelectFieldOptionDefinition>> |
getComparatorClass()
Deprecated.
|
com.vaadin.v7.shared.ui.combobox.FilteringMode |
getFilteringMode()
Deprecated.
Defines the filtering mode (off, startswith, contains) of this select field.
|
String |
getLabelProperty()
Deprecated.
|
List<SelectFieldOptionDefinition> |
getOptions()
Deprecated.
|
int |
getPageLength()
Deprecated.
|
String |
getPath()
Deprecated.
|
String |
getRepository()
Deprecated.
|
String |
getValueProperty()
Deprecated.
|
boolean |
isSortOptions()
Deprecated.
|
boolean |
isTextInputAllowed()
Deprecated.
|
void |
setComparatorClass(Class<? extends Comparator<SelectFieldOptionDefinition>> comparatorClass)
Deprecated.
|
void |
setFilteringMode(com.vaadin.v7.shared.ui.combobox.FilteringMode filteringMode)
Deprecated.
|
void |
setFilteringMode(int filteringMode)
Deprecated.
since 5.3.15, use
setFilteringMode(FilteringMode) instead. |
void |
setLabelProperty(String labelProperty)
Deprecated.
|
void |
setOptions(List<SelectFieldOptionDefinition> options)
Deprecated.
|
void |
setPageLength(int pageLength)
Deprecated.
|
void |
setPath(String path)
Deprecated.
|
void |
setRepository(String repository)
Deprecated.
|
void |
setSortOptions(boolean sortOptions)
Deprecated.
By default, options labels are sorted alphabetically (in ascending order) unless
false is specified. |
void |
setTextInputAllowed(boolean textInputAllowed)
Deprecated.
|
void |
setValueProperty(String valueProperty)
Deprecated.
|
addValidator, getConverterClass, getDefaultValue, getDescription, getFieldType, getI18nBasename, getLabel, getName, getRequiredErrorMessage, getStyleName, getTransformerClass, getType, getValidators, isI18n, isReadOnly, isRequired, setConverterClass, setDefaultValue, setDescription, setFieldType, setI18n, setI18nBasename, setLabel, setName, setReadOnly, setRequired, setRequiredErrorMessage, setStyleName, setTransformerClass, setType, setValidators
public static final String OPTION_VALUE_PROPERTY_NAME
public static final String OPTION_NAME_PROPERTY_NAME
public static final String OPTION_SELECTED_PROPERTY_NAME
public static final String OPTION_ICONSRC_PROPERTY_NAME
public static final String OPTION_LABEL_PROPERTY_NAME
public static final String DEFAULT_REPOSITORY_NAME
public List<SelectFieldOptionDefinition> getOptions()
public void setOptions(List<SelectFieldOptionDefinition> options)
public void addOption(SelectFieldOptionDefinition option)
public String getPath()
public void setPath(String path)
public String getRepository()
public void setRepository(String repository)
public String getValueProperty()
public void setValueProperty(String valueProperty)
public String getLabelProperty()
public void setLabelProperty(String labelProperty)
public com.vaadin.v7.shared.ui.combobox.FilteringMode getFilteringMode()
off
.com.vaadin.shared.ui.combobox.FilteringMode
public void setFilteringMode(com.vaadin.v7.shared.ui.combobox.FilteringMode filteringMode)
@Deprecated public void setFilteringMode(int filteringMode)
setFilteringMode(FilteringMode)
instead.public void setSortOptions(boolean sortOptions)
false
is specified. In that case, the JCR "natural order" should be kept.public boolean isSortOptions()
public Class<? extends Comparator<SelectFieldOptionDefinition>> getComparatorClass()
public void setComparatorClass(Class<? extends Comparator<SelectFieldOptionDefinition>> comparatorClass)
public boolean isTextInputAllowed()
public void setTextInputAllowed(boolean textInputAllowed)
public int getPageLength()
public void setPageLength(int pageLength)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.