public class ComboBox extends Control
| Modifier | Constructor and Description |
|---|---|
protected |
ComboBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new ComboBox with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearText()
Removes all text from the combo box.
|
int |
getItemCount()
Gets the number of items in the combo box list.
|
List<ItemIdentifier> |
getItems()
Gets a list of items in the combo box list.
|
int |
getSelectedIndex()
Gets the index of the selected item.
|
ItemIdentifier |
getSelectedItem()
Gets the selected item.
|
void |
select(int itemIndex)
Selects an item from the combo box.
|
void |
select(ItemIdentifier item)
Selects an item from the combo box.
|
void |
select(String itemText)
Selects an item from the combo box.
|
void |
setSelectedIndex(int selectedIndex)
Sets the index of the selected item.
|
void |
setSelectedItem(int selectedItemIndex)
Sets the selected item.
|
void |
setSelectedItem(ItemIdentifier selectedItem)
Sets the selected item.
|
void |
setSelectedItem(String selectedItemText)
Sets the selected item.
|
void |
setText(String text)
Replaces the text in the text field of the combo box.
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenuclick, 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, 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 ComboBox(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the ComboBoxdesktop - the desktop on which this object livespublic void clearText()
public void select(ItemIdentifier item)
item - the item to selectpublic void select(String itemText)
itemText - the item to selectpublic void select(int itemIndex)
itemIndex - the item to selectpublic void setText(String text)
text - the text to substitute for the contents of the text fieldpublic int getItemCount()
public List<ItemIdentifier> getItems()
public int getSelectedIndex()
public void setSelectedIndex(int selectedIndex)
selectedIndex - the index of the selected itempublic ItemIdentifier getSelectedItem()
public void setSelectedItem(ItemIdentifier selectedItem)
selectedItem - the selected itempublic void setSelectedItem(String selectedItemText)
selectedItemText - the selected itempublic void setSelectedItem(int selectedItemIndex)
selectedItemIndex - the selected itemCopyright 2009-2012 Micro Focus. All Rights Reserved.