public class SparkListBase extends SparkSkinnableDataContainer
Modifier | Constructor and Description |
---|---|
protected |
SparkListBase(JtfObjectHandle handle,
Desktop desktop)
Creates a new SparkListBase with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
double |
getCaretIndex()
Gets the item that is currently in focus.
|
int |
getItemsCount()
Gets the number of items in the ComboBox.
|
String |
getLabelField()
Gets the name of the field in the data provider items to display as the label.
|
int |
getSelectedIndex()
Gets the 0-based index of the selected item, or -1 if no item is selected.
|
String |
getSelectedItem()
Gets the item that is currently selected.
|
boolean |
isRequireSelection()
Gets a value if a data item must always be selected in the control.
|
boolean |
isUseVirtualLayout()
Gets the value of the useVirtualLayout property of the layout associated with this control.
|
void |
select(String itemRenderer)
Dispatched when an item in the list is selected.
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent)
Dispatched when an item in the list is selected.
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
Dispatched when an item in the list is selected.
|
void |
type(String keyCode)
Dispatched when the user presses a key.
|
void |
type(String keyCode,
ModifierKey keyModifier)
Dispatched when the user presses a key.
|
isAutoLayout
dragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart, getColumnNames, getFirstVisibleRow, getLastVisibleRow, getNumColumns, getNumRows, getValues
changeFocus, changeFocus, changeFocus, getAutomationClassName, getAutomationIndex, getAutomationName, getClassName, getCurrentState, getErrorColor, getErrorString, getId, getNumAutomationChildren, getPercentHeight, getPercentWidth, getScaleX, getScaleY, getThemeColor, getToolTip, isEnabled, isFocusEnabled, isUseHandCursor, move, move, move, setFocus
click, 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, typePasswordKeys
captureBitmap, 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, waitForProperty
equals, 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, toString
protected SparkListBase(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SparkListBasedesktop
- the desktop on which this object livespublic int getItemsCount()
public void select(String itemRenderer)
itemRenderer
- the itemRenderer for the item which got selectedpublic void select(String itemRenderer, FlexTriggerEvent triggerEvent)
itemRenderer
- the itemRenderer for the item which got selectedtriggerEvent
- whether the event was triggered by mouse or keyboard..public void select(String itemRenderer, FlexTriggerEvent triggerEvent, ModifierKey keyModifier)
itemRenderer
- the itemRenderer for the item which got selectedtriggerEvent
- whether the event was triggered by mouse or keyboard..keyModifier
- 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 void type(String keyCode)
keyCode
- the key code value of the key pressedpublic void type(String keyCode, ModifierKey keyModifier)
keyCode
- the key code value of the key pressedkeyModifier
- 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 double getCaretIndex()
public String getLabelField()
public boolean isRequireSelection()
public int getSelectedIndex()
public String getSelectedItem()
public boolean isUseVirtualLayout()
Copyright 2009-2012 Micro Focus. All Rights Reserved.