[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit/scripting ScriptableDelegate.java,NONE,1.
Brought to you by:
russgold
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/scripting In directory usw-pr-cvs1:/tmp/cvs-serv16831/src/com/meterware/httpunit/scripting Modified Files: SelectionOption.java SelectionOptions.java Added Files: ScriptableDelegate.java ScriptingEngine.java ScriptingEngineFactory.java Log Message: Class renaming, added support for Option constructor and options property writing ***** Error reading new file[Errno 2] No such file or directory: 'ScriptableDelegate.java' ***** Error reading new file[Errno 2] No such file or directory: 'ScriptingEngine.java' ***** Error reading new file[Errno 2] No such file or directory: 'ScriptingEngineFactory.java' Index: SelectionOption.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/scripting/SelectionOption.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SelectionOption.java 7 Aug 2002 20:36:24 -0000 1.1 +++ SelectionOption.java 8 Aug 2002 20:47:22 -0000 1.2 @@ -30,7 +30,7 @@ String getText(); -// void setText( String text ); + void setText( String text ); String getValue(); @@ -49,5 +49,8 @@ int getIndex(); + + + void initialize( String text, String value, boolean defaultSelected, boolean selected ); } Index: SelectionOptions.java =================================================================== RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/scripting/SelectionOptions.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SelectionOptions.java 7 Aug 2002 20:36:24 -0000 1.1 +++ SelectionOptions.java 8 Aug 2002 20:47:22 -0000 1.2 @@ -23,11 +23,27 @@ /** + * Represents an array of Options * * @author <a href="mailto:rus...@ac...">Russell Gold</a> **/ public interface SelectionOptions { + /** + * Returns the length of this array + */ int getLength(); + + + /** + * Sets a new length to this array + */ + void setLength( int length ); + + + /** + * Specify the specified option + */ + void put( int i, SelectionOption option ); } |