com.sun.rave.web.ui.model
Class OptionsList
java.lang.Object
com.sun.rave.web.ui.model.OptionsList
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DefaultOptionsList
- public class OptionsList
- extends java.lang.Object
- implements java.io.Serializable
Represents a list of selectable options, which can be used to
initialize the items
property of all selector-based components
(Listbox
, Dropdown
, JumpDropdown
,
CheckboxGroup
, RadioButtonGroup
), and
AddRemove
.
- Author:
- gjmurphy
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionsList
public OptionsList()
isMultiple
public boolean isMultiple()
setMultiple
public void setMultiple(boolean isMultiple)
setOptions
public void setOptions(Option[] options)
getOptions
public Option[] getOptions()
setSelectedValue
public void setSelectedValue(java.lang.Object value)
- If this options list is in "multiple" mode, value specified may be
an array of objects or a singleton. Otherwise, the value is treated as
a singleton.
getSelectedValue
public java.lang.Object getSelectedValue()
- If this options list is in "multiple" mode, returns an array of objects;
otherwise, returns a singleton. By default, in "multiple" mode, returns
an empty object array, otherwise, returns a null object.