info.magnolia.ui.form.field.definition
Class SwitchableFieldDefinition
java.lang.Object
info.magnolia.ui.form.field.definition.ConfiguredFieldDefinition
info.magnolia.ui.form.field.definition.CompositeFieldDefinition
info.magnolia.ui.form.field.definition.SwitchableFieldDefinition
- All Implemented Interfaces:
- FieldDefinition
public class SwitchableFieldDefinition
- extends CompositeFieldDefinition
Field definition for a switchable field.
Methods inherited from class info.magnolia.ui.form.field.definition.ConfiguredFieldDefinition |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwitchableFieldDefinition
public SwitchableFieldDefinition()
- Set default
Transformer
.
getSelectionType
public String getSelectionType()
- Default selectionType is 'radio'.
- Returns:
- the desired selection field (radio:OptionGroupFieldDefinition, select:).
getOptions
public List<SelectFieldOptionDefinition> getOptions()
- Returns:
- SelectFieldOptionDefinition. The value (for example 'text') of the Option should match with a
ConfiguredFieldDefinition name of the fields list.
setSelectionType
public void setSelectionType(String selectionType)
setOptions
public void setOptions(List<SelectFieldOptionDefinition> options)
Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.