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 |
static String |
OPTION_ICONSRC_PROPERTY_NAME |
static String |
OPTION_LABEL_PROPERTY_NAME |
static String |
OPTION_NAME_PROPERTY_NAME |
static String |
OPTION_SELECTED_PROPERTY_NAME |
static String |
OPTION_VALUE_PROPERTY_NAME |
Constructor and Description |
---|
SelectFieldDefinition() |
Modifier and Type | Method and Description |
---|---|
void |
addOption(SelectFieldOptionDefinition option) |
Class<? extends Comparator<SelectFieldOptionDefinition>> |
getComparatorClass() |
com.vaadin.v7.shared.ui.combobox.FilteringMode |
getFilteringMode()
Defines the filtering mode (off, startswith, contains) of this select field.
|
String |
getLabelProperty() |
List<SelectFieldOptionDefinition> |
getOptions() |
int |
getPageLength() |
String |
getPath() |
String |
getRepository() |
String |
getValueProperty() |
boolean |
isSortOptions() |
boolean |
isTextInputAllowed() |
void |
setComparatorClass(Class<? extends Comparator<SelectFieldOptionDefinition>> comparatorClass) |
void |
setFilteringMode(com.vaadin.v7.shared.ui.combobox.FilteringMode filteringMode) |
void |
setFilteringMode(int filteringMode)
Deprecated.
since 5.3.15, use
setFilteringMode(FilteringMode) instead. |
void |
setLabelProperty(String labelProperty) |
void |
setOptions(List<SelectFieldOptionDefinition> options) |
void |
setPageLength(int pageLength) |
void |
setPath(String path) |
void |
setRepository(String repository) |
void |
setSortOptions(boolean sortOptions)
By default, options labels are sorted alphabetically (in ascending order) unless
false is specified. |
void |
setTextInputAllowed(boolean textInputAllowed) |
void |
setValueProperty(String valueProperty) |
addValidator, getConverterClass, getDefaultValue, getDescription, getI18nBasename, getLabel, getName, getRequiredErrorMessage, getStyleName, getTransformerClass, getType, getValidators, isI18n, isReadOnly, isRequired, setConverterClass, setDefaultValue, setDescription, 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 © 2018 Magnolia International Ltd.. All rights reserved.