com.meterware.httpunit.controls
Class SelectionFormControl.Options

java.lang.Object
  extended by com.meterware.httpunit.scripting.ScriptableDelegate
      extended by com.meterware.httpunit.controls.SelectionFormControl.Options
All Implemented Interfaces:
ScriptingEventHandler, ScriptingHandler, SelectionOptions
Enclosing class:
SelectionFormControl

public abstract class SelectionFormControl.Options
extends ScriptableDelegate
implements SelectionOptions


Field Summary
 
Fields inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
NULL_SCRIPT_ENGINE
 
Method Summary
protected abstract  boolean claimUniqueValues(java.util.List values, SelectionFormControl.Option[] options)
           
protected abstract  void ensureUniqueOption(SelectionFormControl.Option[] options, int i)
           
 java.lang.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(java.util.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
 
Methods inherited from class com.meterware.httpunit.scripting.ScriptableDelegate
clearCaches, doEvent, doEventScript, evaluateExpression, get, getDelegates, getScriptEngine, getScriptEngine, handleEvent, runScript, set, setScriptEngine, supportsScriptLanguage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

claimUniqueValues

protected abstract boolean claimUniqueValues(java.util.List values,
                                             SelectionFormControl.Option[] options)

reportNoMatches

protected final void reportNoMatches(java.util.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

Parameters:
values -

noOptionSelectedIndex

protected abstract int noOptionSelectedIndex()

getLength

public int getLength()
Description copied from interface: SelectionOptions
Returns the length of this array

Specified by:
getLength in interface SelectionOptions

setLength

public 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

Specified by:
setLength in interface SelectionOptions

put

public void put(int i,
                SelectionOption option)
Description copied from interface: SelectionOptions
Specify the specified option

Specified by:
put in interface SelectionOptions

ensureUniqueOption

protected abstract void ensureUniqueOption(SelectionFormControl.Option[] options,
                                           int i)

get

public java.lang.Object get(int index)
get the Object at the given index check that the index is not out of bounds

Overrides:
get in class ScriptableDelegate
Parameters:
index - - the index of the object to get
Since:
[ 1124057 ] Out of Bounds Exception should be avoided


Copyright © 2011. All Rights Reserved.