public class JTextComponent extends JComponent
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
JTextComponent(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい JTextComponent を作成します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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)
テキスト コンテンツを指定したテキストに設定します。
|
getToolTipTextclick, 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, typePasswordKeyscaptureBitmap, 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, waitForPropertyequals, 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, toStringprotected JTextComponent(JtfObjectHandle handle, Desktop desktop)
handle - JTextComponent を識別するハンドル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 クラス内 TestObjectCopyright 2009-2012 Micro Focus. All Rights Reserved.