com.appperfect.devcommon.script.javaelement
Interface AwtList

All Superinterfaces:
AwtComponent, IScript, JavaComponent

public interface AwtList
extends AwtComponent

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

deSelect

boolean deSelect(int index)
To de-select item at specified index

Parameters:
index - zero based index of the item to be de-selected
Returns:
true if success, false otherwise

deSelectItem

boolean deSelectItem(java.lang.String item)
To de-select specified item

Parameters:
item - item to de-select
Returns:
true if success, false otherwise

extendSelect

boolean extendSelect(int index)
To select additional item at specified index

Parameters:
index - zero based index of the item to be selected
Returns:
true if success, false otherwise

extendSelectItem

boolean extendSelectItem(java.lang.String item)
To select additional specified item

Parameters:
item - to select
Returns:
true if success, false otherwise

getItem

java.lang.String getItem(int index)
Gets the item associated with the specified index.

Parameters:
index - the position of the item
Returns:
an item that is associated with the specified index

getItems

java.lang.String[] getItems()
Gets the items in the list.

Returns:
a string array containing items of the list

getItemsCount

int getItemsCount()
Gets the number of items in the list.

Returns:
the number of items in the list

getSelectedIndices

int[] getSelectedIndices()
Gets the selected indexes on the list.

Returns:
an integer array of the selected indexes

getSelectedItems

java.lang.String[] getSelectedItems()
Gets the selected items on this scrolling list.

Returns:
an array of the selected items

isMultipleMode

boolean isMultipleMode()
Determines whether this list allows multiple selections.

Returns:
true if this list allows multiple selections; otherwise, false

isSelected

boolean isSelected(int index)
Determines if the specified item in this scrolling list is selected.

Parameters:
index - the item to be checked
Returns:
true if the specified item has been selected; false otherwise

select

boolean select(int index)
To select item at specified index

Parameters:
index - zero based index of the item to be selected
Returns:
true if success, false otherwise

selectItem

boolean selectItem(java.lang.String item)
To select specified item

Parameters:
item - item to select
Returns:
true if success, false otherwise

selectRange

boolean selectRange(int fromindex,
                    int toIndex)
To select range of items in multi select list view control

Parameters:
fromindex -
toIndex -
Returns:
true if success, false otherwise

selectRangeItem

boolean selectRangeItem(java.lang.String fromitem,
                        java.lang.String toItem)
To select range of items in multi select list view control

Parameters:
fromitem -
toItem -
Returns:
true if success, false otherwise


Copyright © 2003-2011 AppPerfect Corporation. All Rights Reserved.