com.bitmechanic.maxq
Class JTextAreaTestScriptAdapter

java.lang.Object
  extended by com.bitmechanic.maxq.JTextAreaTestScriptAdapter
All Implemented Interfaces:
IScriptAdapter

public class JTextAreaTestScriptAdapter
extends java.lang.Object
implements IScriptAdapter

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


Constructor Summary
JTextAreaTestScriptAdapter(javax.swing.JTextArea jTextArea)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTextAreaTestScriptAdapter

public JTextAreaTestScriptAdapter(javax.swing.JTextArea jTextArea)
Method Detail

append

public void append(java.lang.String text)
Description copied from interface: IScriptAdapter
Appends the given text to the end of the model.

Specified by:
append in interface IScriptAdapter
Parameters:
text - - the text to append

insert

public void insert(java.lang.String text,
                   int position)
Description copied from interface: IScriptAdapter
Inserts the specified text at the specified position

Specified by:
insert in interface IScriptAdapter
Parameters:
text - - the text to insert
position - - starting position >= 0

getText

public java.lang.String getText()
Description copied from interface: IScriptAdapter
Returns the text contained in the model If the underlying model is null, will give a NullPointerException.

Specified by:
getText in interface IScriptAdapter
Returns:
- the text

setText

public void setText(java.lang.String text)
Description copied from interface: IScriptAdapter
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.

Specified by:
setText in interface IScriptAdapter
Parameters:
text - - the text to be set

replace

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

Specified by:
replace in interface IScriptAdapter
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