public class TextField extends Control
修飾子 | コンストラクタと説明 |
---|---|
protected |
TextField(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい TextField を作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
clearText()
すべてのテキストをテキスト フィールドから削除します。
|
List<String> |
getMultiText()
複数行テキスト フィールドの指定された行のテキストを返します。
|
List<String> |
getMultiText(int startLine)
複数行テキスト フィールドの指定された行のテキストを返します。
|
List<String> |
getMultiText(int startLine,
int numberOfLines)
複数行テキスト フィールドの指定された行のテキストを返します。
|
TextPosition |
getPosition()
[読み取り専用] テキスト フィールド内のキャレットの位置。
|
TextRange |
getSelectedRange()
[読み取り専用] テキスト フィールド内の選択範囲。
|
String |
getSelectedText()
[読み取り専用] テキスト フィールド内の選択テキスト。
|
boolean |
isMultiLine()
[読み取り専用] コントロールが複数行かどうか。
|
boolean |
isPassword()
[読み取り専用] コントロールがパスワード テキスト フィールドであるかどうか。
|
void |
setMultiText(List<String> text)
複数行テキスト フィールドの行のすべて、または一部を置換します。
|
void |
setMultiText(List<String> text,
int startLine)
複数行テキスト フィールドの行のすべて、または一部を置換します。
|
void |
setMultiText(List<String> text,
int startLine,
int numberOfLines)
複数行テキスト フィールドの行のすべて、または一部を置換します。
|
void |
setPosition(TextPosition position)
テキスト フィールド内の挿入位置を設定します。
|
void |
setSelectedRange(TextRange selectedRange)
[書き込み専用] テキスト フィールド内の選択範囲。
|
void |
setSelectionRange(TextRange selectionRange)
単一行または複数行フィールドの指定した範囲を選択します。
|
void |
setText(String text)
テキスト フィールド内のテキストのすべて、または一部を新しいテキストに置換します。
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenu
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getBackground, getFont, getForeground, getNativeHandle, isEnabled, isFocused, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setBackground, setEnabled, setFocus, setFont, setForeground, setVisible, 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 TextField(JtfObjectHandle handle, Desktop desktop)
handle
- TextField を識別するハンドルdesktop
- このオブジェクトが存在するデスクトップpublic void clearText()
public List<String> getMultiText(int startLine)
startLine
- 取得したい最初の行番号。. The value is zero-based.public List<String> getMultiText(int startLine, int numberOfLines)
startLine
- 取得したい最初の行番号。. The value is zero-based.numberOfLines
- 返す行数public void setMultiText(List<String> text)
text
- 置換するテキストpublic void setMultiText(List<String> text, int startLine)
text
- 置換するテキストstartLine
- 置換を開始するテキスト フィールドの行(0 から開始). The value is zero-based.public void setMultiText(List<String> text, int startLine, int numberOfLines)
text
- 置換するテキストstartLine
- 置換を開始するテキスト フィールドの行(0 から開始). The value is zero-based.numberOfLines
- 置換する行数public void setPosition(TextPosition position)
position
- テキスト フィールド内のキャレットの位置public void setSelectionRange(TextRange selectionRange)
selectionRange
- テキスト フィールド内の選択範囲public void setText(String text)
text
- 置換するテキストpublic boolean isPassword()
public boolean isMultiLine()
public TextPosition getPosition()
public TextRange getSelectedRange()
public void setSelectedRange(TextRange selectedRange)
selectedRange
- テキスト フィールド内の選択範囲public String getSelectedText()
Copyright 2009-2012 Micro Focus. All Rights Reserved.