|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AwtList
AwtList is created to represent java.awt.List component
The following code fragment illustrates how to create an AwtList
element.
var element = engine.createAwtList(1, 5);where engine is object of
IScriptEngine
Method Summary | |
---|---|
boolean |
deSelect(int index)
To de-select item at specified index |
boolean |
deSelectItem(java.lang.String item)
To de-select specified item |
boolean |
extendSelect(int index)
To select additional item at specified index |
boolean |
extendSelectItem(java.lang.String item)
To select additional specified item |
java.lang.String |
getItem(int index)
Gets the item associated with the specified index. |
java.lang.String[] |
getItems()
Gets the items in the list. |
int |
getItemsCount()
Gets the number of items in the list. |
int[] |
getSelectedIndices()
Gets the selected indexes on the list. |
java.lang.String[] |
getSelectedItems()
Gets the selected items on this scrolling list. |
boolean |
isMultipleMode()
Determines whether this list allows multiple selections. |
boolean |
isSelected(int index)
Determines if the specified item in this scrolling list is selected. |
boolean |
select(int index)
To select item at specified index |
boolean |
selectItem(java.lang.String item)
To select specified item |
boolean |
selectRange(int fromindex,
int toIndex)
To select range of items in multi select list view control |
boolean |
selectRangeItem(java.lang.String fromitem,
java.lang.String toItem)
To select range of items in multi select list view control |
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent |
---|
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type |
Methods inherited from interface com.appperfect.devcommon.script.IScript |
---|
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout |
Method Detail |
---|
boolean deSelect(int index)
index
- zero based index of the item to be de-selected
boolean deSelectItem(java.lang.String item)
item
- item to de-select
boolean extendSelect(int index)
index
- zero based index of the item to be selected
boolean extendSelectItem(java.lang.String item)
item
- to select
java.lang.String getItem(int index)
index
- the position of the item
java.lang.String[] getItems()
int getItemsCount()
int[] getSelectedIndices()
java.lang.String[] getSelectedItems()
boolean isMultipleMode()
true
if this list allows multiple selections;
otherwise, false
boolean isSelected(int index)
index
- the item to be checked
true
if the specified item has been selected;
false
otherwiseboolean select(int index)
index
- zero based index of the item to be selected
boolean selectItem(java.lang.String item)
item
- item to select
boolean selectRange(int fromindex, int toIndex)
fromindex
- toIndex
-
boolean selectRangeItem(java.lang.String fromitem, java.lang.String toItem)
fromitem
- toItem
-
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |