Skip to main content

ChoiceField Class

Base class for choice fields (combo box and list box).

Declaration

public abstract class ChoiceField extends FormField

Remarks

Refer to the following help topic for additional information:

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
FormField
ChoiceField

Methods

getItems() Method

Returns choice items in this field.

Declaration

public List<ChoiceFieldItem> getItems()

Returns

Type Description
java.util.List<ChoiceFieldItem>

Choice items.

getValue() Method

Returns the current value of this choice field.

Declaration

public String getValue()

Returns

Type Description
String

The current value of this choice field.

setItems(List<ChoiceFieldItem> value) Method

Sets choice items in this field.

Declaration

public void setItems(List<ChoiceFieldItem> value)

Parameters

Name Type Description
value java.util.List<ChoiceFieldItem>

Choice items.

setValue(String value) Method

Sets the current value of this choice field.

Declaration

public void setValue(String value)

Parameters

Name Type Description
value String

The value to assign to this choice field.