public class SLAutoCompleteBox extends SLBase
修飾子 | コンストラクタと説明 |
---|---|
protected |
SLAutoCompleteBox(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい SLAutoCompleteBox を作成します。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
close()
一致項目を含んだドロップダウン リストが開いている場合に閉じます。
|
double |
getHorizontalScrollPercent()
[読み取り専用] 現在の水平方向スクロールの位置。
|
List<SLComboBoxItem> |
getItems()
[読み取り専用] 現在の一致項目を含んだリスト。
|
List<String> |
getItemTexts()
[読み取り専用] 現在の一致項目のテキストを含んだリスト。
|
double |
getVerticalScrollPercent()
[読み取り専用] 現在の垂直方向スクロールの位置。
|
boolean |
isHorizontallyScrollable()
[読み取り専用] コンボ ボックスを水平方向にスクロールできるかどうかを示す値。
|
boolean |
isOpen()
[読み取り専用] オート コンプリート ボックスが開いているかどうかを示す値。
|
boolean |
isVerticallyScrollable()
[読み取り専用] コンボ ボックスを垂直方向にスクロールできるかどうかを示す値。
|
void |
scrollHorizontal(ScrollAmount scrollAmount)
指定した ScrollAmount の分、コンテンツ領域の現在の可視領域を水平方向にスクロールします。
|
void |
scrollVertical(ScrollAmount scrollAmount)
指定した ScrollAmount の分、コンテンツ領域の現在の可視領域を垂直方向にスクロールします。
|
void |
select(String text)
オート コンプリート ボックスに指定したテキストを入力して、一致した項目を選択します。
|
void |
select(String text,
int matchIndex)
オート コンプリート ボックスに指定したテキストを入力して、一致した項目を選択します。
|
void |
setHorizontalScrollPercent(double percent)
コンボ ボックス内のコンテンツ領域全体のパーセンテージとして、水平スクロール位置を設定します。
|
void |
setVerticalScrollPercent(double percent)
コンボ ボックス内のコンテンツ領域全体のパーセンテージとして、垂直スクロール位置を設定します。
|
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, getText, 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 SLAutoCompleteBox(JtfObjectHandle handle, Desktop desktop)
handle
- SLAutoCompleteBox を識別するハンドルdesktop
- このオブジェクトが存在するデスクトップpublic void close()
public void scrollHorizontal(ScrollAmount scrollAmount)
scrollAmount
- スクロールする方向と間隔public void scrollVertical(ScrollAmount scrollAmount)
scrollAmount
- スクロールする方向と間隔public void select(String text)
テキストを入力したあとに一致した項目が見つからない場合は、例外をスローします。パラメーター matchIndex
の値が 0 より小さい、または一致した数よりも大きい場合にも、例外がスローされます。
使用例 テキスト "Apple" で始まる最初に一致する項目を選択するには、次のように入力します。
autoCompletBox.select("Apple");テキスト "A" で始まる 3 番目に一致する項目を選択するには、次のように入力します。
autoCompletBox.select("A", 2);
text
- テキスト ボックスに入力するテキストpublic void select(String text, int matchIndex)
テキストを入力したあとに一致した項目が見つからない場合は、例外をスローします。パラメーター matchIndex
の値が 0 より小さい、または一致した数よりも大きい場合にも、例外がスローされます。
使用例 テキスト "Apple" で始まる最初に一致する項目を選択するには、次のように入力します。
autoCompletBox.select("Apple");テキスト "A" で始まる 3 番目に一致する項目を選択するには、次のように入力します。
autoCompletBox.select("A", 2);
text
- テキスト ボックスに入力するテキストmatchIndex
- 一致した項目の選択するインデックス。. The value is zero-based.public void setHorizontalScrollPercent(double percent)
percent
- 水平方向コンテンツ領域全体のパーセンテージpublic void setVerticalScrollPercent(double percent)
percent
- 垂直方向コンテンツ領域全体のパーセンテージpublic boolean isHorizontallyScrollable()
public double getHorizontalScrollPercent()
public boolean isOpen()
public List<SLComboBoxItem> getItems()
public List<String> getItemTexts()
public boolean isVerticallyScrollable()
public double getVerticalScrollPercent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.