public class SLRichTextBox extends SLBase
修飾子 | コンストラクタと説明 |
---|---|
protected |
SLRichTextBox(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい SLRichTextBox を作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
clear()
すべてのテキストをテキスト ボックスから削除します。
|
String |
getSelectedText()
[読み取り専用] 選択したテキスト。
|
String |
getText()
[読み取り専用] テキスト ボックスに表示されるテキスト。
|
void |
setPosition(int position)
テキスト ボックス内の挿入位置を設定します。
|
void |
setSelection(int startPosition,
int length)
テキスト ボックス内のテキストの範囲を選択します。
|
void |
setText(String text)
テキスト ボックスの内容を指定したテキストで置換します。
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAutomationId, getClassName, getName, getRawChildren, getRawChildren, isEnabled, isFocused, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected SLRichTextBox(JtfObjectHandle handle, Desktop desktop)
handle
- SLRichTextBox を識別するハンドルdesktop
- このオブジェクトが存在するデスクトップpublic void clear()
public void setPosition(int position)
position
- テキスト ボックス内のキャレットの位置。. The value is zero-based.public void setSelection(int startPosition, int length)
startPosition
- 選択範囲の開始インデックス. The value is zero-based.length
- 開始位置から選択する文字数public void setText(String text)
text
- 新しいテキストpublic String getSelectedText()
選択範囲にイメージなどの非テキスト要素が含まれる場合、これらの要素は空白文字として表示されます
public String getText()
テキスト ボックスにイメージなどの非テキスト要素が含まれる場合、これらの要素は空白文字として表示されます
getText
クラス内 TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.