|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defined in widgetsBasic.js
SelectWidget is a wrapper around the <select> widget, because it is a pain to deal with in .content specifications.
Terminology note: I refer to what the user sees on the screen as the human choice, and what the widget returns as the value as the computer choice. For example, with <option value='#FF0000'>red</option>, the human value is "red", but the computer value is "#FF0000".
Relevant Parameters:
Inheritances:
The <select> DOM node inherits everything ("*").
Constructor Summary | |
SelectWidget
()
SelectWidget - a wrap around <select> |
Method Summary | |
void
|
addOption(computerValue, humanValue)
Adds a single option to the end of the widget. |
void
|
empty()
empty - remove all choices from the widget |
Constructor Detail |
SelectWidget()
Method Detail |
void addOption(computerValue, humanValue)
computerValue
- The value that will be used as the computer value for the choice.
humanValue
- The value the human will see. If not given, the computer value will be used instead.
void empty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |