|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bitmechanic.maxq.JTextAreaTestScriptAdapter
public class JTextAreaTestScriptAdapter
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 |
---|
public JTextAreaTestScriptAdapter(javax.swing.JTextArea jTextArea)
Method Detail |
---|
public void append(java.lang.String text)
IScriptAdapter
append
in interface IScriptAdapter
text
- - the text to appendpublic void insert(java.lang.String text, int position)
IScriptAdapter
insert
in interface IScriptAdapter
text
- - the text to insertposition
- - starting position >= 0public java.lang.String getText()
IScriptAdapter
getText
in interface IScriptAdapter
public void setText(java.lang.String text)
IScriptAdapter
setText
in interface IScriptAdapter
text
- - the text to be setpublic void replace(java.lang.String string, int start, int end) throws java.lang.IllegalArgumentException
IScriptAdapter
replace
in interface IScriptAdapter
string
- the text to use as the replacementstart
- - the start position >= 0end
- - the end position >= start
java.lang.IllegalArgumentException
- - if part of the range is an invalid position in the model
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |