public class SLComboBox extends SLBase
Silverlight のコンボ ボックスでは、その項目についての情報を取得する前に一度開いておく必要があります。
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
SLComboBox(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい SLComboBox を作成します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
close()
コンボ ボックスを閉じます。
|
double |
getHorizontalScrollPercent()
[読み取り専用] 現在の水平方向スクロールの位置。
|
List<SLComboBoxItem> |
getItems()
[読み取り専用] 項目の完全なリスト。
|
List<String> |
getItemTexts()
[読み取り専用] 項目テキストの完全なリスト。
|
int |
getSelectedIndex()
[読み取り専用] 選択されている項目のインデックス。
|
SLComboBoxItem |
getSelectedItem()
[読み取り専用] 選択されている項目。
|
String |
getSelectedItemText()
[読み取り専用] 選択されている項目のテキスト。
|
double |
getVerticalScrollPercent()
[読み取り専用] 現在の垂直方向スクロールの位置。
|
boolean |
isHorizontallyScrollable()
[読み取り専用] コンボ ボックスを水平方向にスクロールできるかどうかを示す値。
|
boolean |
isOpen()
[読み取り専用] コンボ ボックスが開いているかどうかを示す値。
|
boolean |
isVerticallyScrollable()
[読み取り専用] コンボ ボックスを垂直方向にスクロールできるかどうかを示す値。
|
void |
open()
コンボ ボックスを開きます。
|
void |
scrollHorizontal(ScrollAmount scrollAmount)
指定した ScrollAmount の分、コンテンツ領域の現在の可視領域を水平方向にスクロールします。
|
void |
scrollVertical(ScrollAmount scrollAmount)
指定した ScrollAmount の分、コンテンツ領域の現在の可視領域を垂直方向にスクロールします。
|
void |
select(int itemIndex)
コンボ ボックスの項目を選択します。
|
void |
select(ItemIdentifier item)
コンボ ボックスの項目を選択します。
|
void |
select(String itemText)
コンボ ボックスの項目を選択します。
|
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, typePasswordKeyscaptureBitmap, 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, 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 SLComboBox(JtfObjectHandle handle, Desktop desktop)
handle - SLComboBox を識別するハンドルdesktop - このオブジェクトが存在するデスクトップpublic void close()
public void open()
public void scrollHorizontal(ScrollAmount scrollAmount)
scrollAmount - スクロールする方向と間隔public void scrollVertical(ScrollAmount scrollAmount)
scrollAmount - スクロールする方向と間隔public void select(ItemIdentifier item)
使用例 コンボ ボックスからテキスト "item 1" を持つ項目を選択するには、次のように入力します。
comboBox.select("item 1");
コンボ ボックスから 3 番目の項目を選択するには、次のように入力します。
comboBox.select(3);
item - 選択する項目public void select(String itemText)
使用例 コンボ ボックスからテキスト "item 1" を持つ項目を選択するには、次のように入力します。
comboBox.select("item 1");
コンボ ボックスから 3 番目の項目を選択するには、次のように入力します。
comboBox.select(3);
itemText - 選択する項目public void select(int itemIndex)
使用例 コンボ ボックスからテキスト "item 1" を持つ項目を選択するには、次のように入力します。
comboBox.select("item 1");
コンボ ボックスから 3 番目の項目を選択するには、次のように入力します。
comboBox.select(3);
itemIndex - 選択する項目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()
使用例
comboBox.open(); Listitems = comboBox.getItemTexts(); comboBox.close();
public int getSelectedIndex()
public SLComboBoxItem getSelectedItem()
public String getSelectedItemText()
public boolean isVerticallyScrollable()
public double getVerticalScrollPercent()
Copyright 2009-2012 Micro Focus. All Rights Reserved.