|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SwingTextArea
SwingTextArea is created to represent javax.swing.JTextArea component
The following code fragment illustrates how to create an
SwingTextArea
element.
var element = engine.createSwingTextArea(1, 5);where engine is object of
IScriptEngine
Method Summary | |
---|---|
boolean |
append(java.lang.String text)
Appends the given text to the text area's current text. |
int |
getColumns()
Returns the number of columns in this text area. |
int |
getLineCount()
Determines the number of lines contained in the area. |
int |
getRows()
Returns the number of rows in the text area. |
boolean |
insert(java.lang.String text,
int pos)
Inserts the specified text at the specified position in this text area. |
boolean |
replaceRange(java.lang.String text,
int start,
int end)
Replaces text between the indicated start and end positions with the specified replacement text. |
boolean |
setColumns(int columns)
Sets the number of columns for this text area. |
boolean |
setRows(int rows)
Sets the number of rows for this text area. |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.SwingTextComponent |
---|
getCaretPos, getSelectedText, getSelectionEnd, getSelectionStart, isEditable, setCaretPos, setEditable, setSelection |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtContainer |
---|
getComponentCount |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent |
---|
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout |
Method Detail |
---|
boolean append(java.lang.String text)
Note that passing null
or inconsistent parameters is
invalid and will result in unspecified behavior.
text
- the non-null
text to append
int getColumns()
int getLineCount()
int getRows()
boolean insert(java.lang.String text, int pos)
Note that passing null
or inconsistent parameters is
invalid and will result in unspecified behavior.
text
- the non-null
text to insertpos
- the position at which to insert
boolean replaceRange(java.lang.String text, int start, int end)
Note that passing null
or inconsistent parameters is
invalid and will result in unspecified behavior.
text
- the non-null
text to use as the replacementstart
- the start positionend
- the end position
boolean setColumns(int columns)
columns
- the number of columns
boolean setRows(int rows)
rows
- the number of rows
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |