com.bitmechanic.maxq
Interface IScriptAdapter

All Known Implementing Classes:
JTextAreaTestScriptAdapter

public interface IScriptAdapter

Created by IntelliJ IDEA. User: Wayne_Hearn Date: Sep 15, 2003 Time: 2:42:01 PM To change this template use Options | File Templates.


Method Summary
 void append(java.lang.String text)
          Appends the given text to the end of the model.
 java.lang.String getText()
          Returns the text contained in the model If the underlying model is null, will give a NullPointerException.
 void insert(java.lang.String text, int position)
          Inserts the specified text at the specified position
 void replace(java.lang.String string, int start, int end)
          Replaces text from the indicated start to end position with the new text specified
 void setText(java.lang.String text)
          Sets the text of this TextComponent to the specified text.
 

Method Detail

append

void append(java.lang.String text)
Appends the given text to the end of the model.

Parameters:
text - - the text to append

insert

void insert(java.lang.String text,
            int position)
Inserts the specified text at the specified position

Parameters:
text - - the text to insert
position - - starting position >= 0

getText

java.lang.String getText()
Returns the text contained in the model If the underlying model is null, will give a NullPointerException.

Returns:
- the text

setText

void setText(java.lang.String text)
Sets the text of this TextComponent to the specified text. If the text is null or empty, has the effect of simply deleting the old text.

Parameters:
text - - the text to be set

replace

void replace(java.lang.String string,
             int start,
             int end)
             throws java.lang.IllegalArgumentException
Replaces text from the indicated start to end position with the new text specified

Parameters:
string - the text to use as the replacement
start - - the start position >= 0
end - - the end position >= start
Throws:
java.lang.IllegalArgumentException - - if part of the range is an invalid position in the model