public class SelectField extends Field
| Constructor and Description |
|---|
SelectField() |
SelectField(String name,
boolean required) |
SelectField(String name,
boolean required,
String nullValueLabel) |
SelectField(String name,
Object defaultValue,
boolean required,
Map<? extends Object,? extends Object> options) |
SelectField(String name,
String defaultValue,
boolean required) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOption(int index,
Object value,
String stringValue,
String label) |
void |
addOption(Object value,
Object label) |
void |
addOption(Object value,
Object stringValue,
String label) |
void |
addOption(Object value,
String label) |
void |
addOption(Object value,
String stringValue,
String label) |
void |
addOption(String label) |
void |
addOption(String value,
String label) |
void |
addOptions(Map<Object,String> options) |
SelectField |
clone() |
Object |
getDefaultValue() |
String |
getNullValueLabel() |
FieldValue |
getSelectedOption() |
String |
getStringValue() |
boolean |
hasValue() |
void |
initialize(Form form,
javax.servlet.http.HttpServletRequest request) |
boolean |
isValid() |
void |
serializeElement(XmlWriter out) |
void |
setDefaultValue(Object defaultValue) |
void |
setNullValueLabel(String nullValueLabel) |
void |
setOnChange(String onChange) |
void |
setOptions(Map<Object,String> options) |
void |
setValue(Object value) |
addValidationError, getDefaultInstructions, getInitialValue, getInitialValue, getLabel, getName, getValidationErrors, getValue, getValue, hasValidationErrors, isReadOnly, isRequired, postInit, setDefaultInstructions, setInitialValue, setLabel, setName, setReadOnly, setRequired, toStringgetContainer, getDecorator, getForm, initialize, serialize, serialize, serialize, serialize, setContainer, setDecoratorpublic SelectField()
public SelectField(String name, boolean required)
public SelectField(String name, Object defaultValue, boolean required, Map<? extends Object,? extends Object> options)
public void addOption(String label)
public SelectField clone()
public Object getDefaultValue()
public String getNullValueLabel()
public FieldValue getSelectedOption()
public String getStringValue()
public void initialize(Form form, javax.servlet.http.HttpServletRequest request)
initialize in class Fieldpublic void serializeElement(XmlWriter out)
serializeElement in class Elementpublic void setDefaultValue(Object defaultValue)
public void setNullValueLabel(String nullValueLabel)
public void setOnChange(String onChange)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.