public abstract class SelectionFormControl.Options extends ScriptableDelegate implements SelectionOptions
NULL_SCRIPT_ENGINE| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
claimUniqueValues(List values,
SelectionFormControl.Option[] options) |
protected abstract void |
ensureUniqueOption(SelectionFormControl.Option[] options,
int i) |
Object |
get(int index)
get the Object at the given index
check that the index is not out of bounds
|
int |
getLength()
Returns the length of this array
|
protected abstract int |
noOptionSelectedIndex() |
void |
put(int i,
SelectionOption option)
Specify the specified option
|
protected void |
reportNoMatches(List values)
report if there are no matches
be aware of [ 1100437 ] Patch for ClassCastException in FormControl
TODO implement patch if test get's available
|
void |
setLength(int length)
Modified by gklopp - 12/19/2005
[ 1396835 ] Javascript : length of a select element cannot be increased
Bug corrected : The length can be greater than the original length
|
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, handleEvent, runScript, set, setScriptEngine, supportsScriptLanguageprotected abstract boolean claimUniqueValues(List values, SelectionFormControl.Option[] options)
protected final void reportNoMatches(List values)
values - protected abstract int noOptionSelectedIndex()
public int getLength()
SelectionOptionsgetLength in interface SelectionOptionspublic void setLength(int length)
setLength in interface SelectionOptionspublic void put(int i,
SelectionOption option)
SelectionOptionsput in interface SelectionOptionsprotected abstract void ensureUniqueOption(SelectionFormControl.Option[] options, int i)
public Object get(int index)
get in class ScriptableDelegateindex - - the index of the object to getCopyright © 2012. All Rights Reserved.