public class SparkList extends SparkListBase
| Modifier | Constructor and Description |
|---|---|
protected |
SparkList(JtfObjectHandle handle,
Desktop desktop)
Creates a new SparkList with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
getSelectedIndices()
Gets a list representing the indices of the currently selected item or items.
|
List<String> |
getSelectedItems()
Gets a list of Objects representing the currently selected data items.
|
boolean |
isAllowMultipleSelection()
Gets a value if multiple selection is enabled.
|
boolean |
isDragEnabled()
Gets a flag that indicates whether you can drag items out of this control and drop them on other controls.
|
boolean |
isDragMoveEnabled()
Gets a flag that indicates whether items can be moved instead of just copied from the control as part of a drag-and-drop operation.
|
boolean |
isDropEnabled()
Gets a flag that indicates whether dragged items can be dropped onto the control.
|
void |
selectIndex(int itemIndex)
Dispatched when the user clicks on an item in the list or navigates to the item using a keyboard.
|
void |
selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent)
Dispatched when the user clicks on an item in the list or navigates to the item using a keyboard.
|
void |
selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
Dispatched when the user clicks on an item in the list or navigates to the item using a keyboard.
|
getCaretIndex, getItemsCount, getLabelField, getSelectedIndex, getSelectedItem, isRequireSelection, isUseVirtualLayout, select, select, select, type, typeisAutoLayoutdragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getColumnNames, getFirstVisibleRow, getLastVisibleRow, getNumColumns, getNumRows, getValueschangeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocusclick, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getAlpha, getHeight, getStyle, getTabIndex, getWidth, getX, getY, isMouseEnabled, isTabChildren, isTabEnabled, isVisible, mouseMove, mouseMove, nativeToString, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, 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 SparkList(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the SparkListdesktop - the desktop on which this object livespublic void selectIndex(int itemIndex)
itemIndex - the index of the item which was selectedpublic void selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent)
itemIndex - the index of the item which was selectedtriggerEvent - whether the event was triggered by mouse or keyboardpublic void selectIndex(int itemIndex,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
itemIndex - the index of the item which was selectedtriggerEvent - whether the event was triggered by mouse or keyboardkeyModifier - a constant that indicates which key or key combination, if any, was pressed while this operation took place. One of: flexAlt, flexControl, flexControlAlt, flexControlShift, flexControlShiftAlt, flexShift, or flexShiftAlt. For example, if the Shift and Alt keys were pressed, then the value would be flexShiftAlt.public boolean isAllowMultipleSelection()
public boolean isDragEnabled()
public boolean isDragMoveEnabled()
public boolean isDropEnabled()
public List<Integer> getSelectedIndices()
Copyright 2009-2012 Micro Focus. All Rights Reserved.