public class AWTTextComponent extends AWTComponent
修飾子 | コンストラクタと説明 |
---|---|
protected |
AWTTextComponent(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい AWTTextComponent を作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
clear()
すべてのテキストをテキスト コンポーネントから削除します。
|
int |
getCaretPosition()
[読み取り専用] テキスト コンポーネントのテキスト挿入キャレットの位置。.
|
String |
getSelectedText()
[読み取り専用] 現在選択されているテキスト。
|
int |
getSelectionEnd()
[読み取り専用] 選択されたテキストの終了位置。.
|
int |
getSelectionStart()
[読み取り専用] 選択されたテキストの開始位置。.
|
String |
getText()
[読み取り専用] テキスト領域のテキスト。
|
boolean |
isEditable()
[読み取り専用] テキスト コンポーネントのテキストをユーザーが変更できるかどうか。
|
void |
selectAll()
テキスト コンポーネント内のすべてのテキストを選択します。
|
void |
setCaretPosition(int index)
テキスト コンポーネントのテキスト挿入キャレットの位置を設定します。
|
void |
setSelectionRange(int selectionStart,
int selectionEnd)
指定した範囲のテキストを選択します。
|
void |
setText(String text)
テキスト コンポーネントのテキストを指定したテキストに設定します。
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAccessibleName, getAccessibleRole, getBackground, getCursor, getFont, getForeground, getHeight, getName, getNativeHandle, getWidth, isEnabled, isFocusable, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, scrollIntoView, 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 AWTTextComponent(JtfObjectHandle handle, Desktop desktop)
handle
- AWTTextComponent を識別するハンドルdesktop
- このオブジェクトが存在するデスクトップpublic void clear()
public void selectAll()
public void setCaretPosition(int index)
index
- テキスト挿入キャレットの新しい位置。. The value is zero-based.public void setSelectionRange(int selectionStart, int selectionEnd)
selectionStart
- 選択範囲の開始位置。. The value is zero-based.selectionEnd
- 選択範囲の終了位置。. The value is zero-based.public void setText(String text)
text
- テキスト コンポーネントの新しいテキストpublic int getCaretPosition()
public boolean isEditable()
public String getSelectedText()
public int getSelectionEnd()
public int getSelectionStart()
public String getText()
getText
クラス内 TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.