Class DwtSelect
Note: Currently this does not support multiple selection.
Class Detail
DwtSelect(params, layout)
Creates a select element.
Method Detail
addChangeListener(listener)
Adds a change listener.
{number}
addOption(option, selected, value, image)
Adds an option.
clearOptions()
Clears the options.
disable()
Disables the select.
enable()
Enables the select.
enableOption(value, enabled)
Enables or disables an option.
{number}
getIndexForValue(value)
Gets the index for a given value.
{string}
getName()
Gets the select name.
{number}
getOptionCount()
Gets the option count.
{AjxVector}
getOptions()
Gets the options.
{DwtSelectOption}
getOptionWithHandle(optionHandle)
Gets the option .
{DwtSelectOption}
getOptionWithValue(optionValue)
Gets the option for a given value.
{number}
getSelectedIndex()
Gets the selected option index.
{DwtSelectOption}
getSelectedOption()
Gets the selected option.
{Object}
getValue()
Gets the selected value.
{number}
removeOption(option)
Removes an option.
{number}
removeOptionWithValue(value)
Removes an option based on its value.
rename(value, newValue)
Renames an option.
setName(name)
Sets the select name.
setSelected(optionHandle)
Sets the option as the selected option.
setSelectedOption(optionObj)
Sets the selected option.
setSelectedValue(optionValue)
Sets the selected value.
{number}
size()
Gets the count of options.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:29 GMT-0400 (EDT)
|