public class SelectFieldDefinition extends ConfiguredFieldDefinition
Modifier 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) |
com.vaadin.shared.ui.combobox.FilteringMode |
getFilteringMode() |
String |
getLabelProperty() |
List<SelectFieldOptionDefinition> |
getOptions() |
String |
getPath() |
String |
getRepository() |
String |
getValueProperty() |
boolean |
isSortOptions() |
void |
setFilteringMode(int filteringMode) |
void |
setLabelProperty(String labelProperty) |
void |
setOptions(List<SelectFieldOptionDefinition> options) |
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 |
setValueProperty(String valueProperty) |
addValidator, getDefaultValue, getDescription, getI18nBasename, getLabel, getName, getRequiredErrorMessage, getStyleName, getTransformerClass, getType, getValidators, isI18n, isReadOnly, isRequired, 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.shared.ui.combobox.FilteringMode getFilteringMode()
public void setFilteringMode(int filteringMode)
public void setSortOptions(boolean sortOptions)
false
is specified. In that case, the JCR "natural order" should be kept.public boolean isSortOptions()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.