public class SparkDataGrid extends SparkSkinnableContainerBase
Modifier | Constructor and Description |
---|---|
protected |
SparkDataGrid(JtfObjectHandle handle,
Desktop desktop)
Creates a new SparkDataGrid with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
columnStretch(int columnIndex,
double localX)
Stretches the given column of the data grid.
|
void |
editNext()
Sets the following data grid cell in the edit mode.
|
List<String> |
getColumnNames()
Gets a list containing the names of all columns.
|
int |
getColumnsLength()
Gets the count of the columns.
|
int |
getFirstVisibleRow()
Gets the index of the first visible row.
|
int |
getLastVisibleRow()
Gets the index of the last visible row.
|
int |
getNumColumns()
Gets the total number of columns.
|
int |
getNumRows()
Gets the total number of rows.
|
double |
getRowHeight()
Gets the height of the row.
|
String |
getSelectedCell()
Gets the selected cell.
|
List<String> |
getSelectedCells()
Gets the selected cells.
|
int |
getSelectedIndex()
Gets the index of the selected row.
|
List<Integer> |
getSelectedIndices()
Gets the indices of the selected rows.
|
String |
getSelectedItem()
Gets the item of the selected row.
|
List<String> |
getSelectedItems()
Gets the items of the selected rows.
|
int |
getSelectionLength()
Gets the number of selected rows.
|
String |
getSelectionMode()
Gets the selection mode (singlerow, multiplerows, singlecells or multiplecells).
|
List<List<String>> |
getValues(int start,
int end)
Returns a matrix containing the automation values of all parts of the components.
|
void |
headerClick(int columnIndex)
Clicks on the specified column header.
|
boolean |
isShowDataTips()
Gets whether data tips should be shown.
|
void |
select(String itemRenderer)
Selects the specified data grid cell.
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent)
Selects the specified data grid cell.
|
void |
select(String itemRenderer,
FlexTriggerEvent triggerEvent,
ModifierKey keyModifier)
Selects the specified data grid cell.
|
void |
type(String keyCode)
Dispatched when the user presses a key.
|
void |
type(String keyCode,
ModifierKey keyModifier)
Dispatched when the user presses a key.
|
dragCancel, dragCancel, dragDrop, dragDrop, dragDrop, dragStart, dragStart
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 SparkDataGrid(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SparkDataGriddesktop
- the desktop on which this object livespublic void columnStretch(int columnIndex, double localX)
columnIndex
- the zero-based index of the selected column in the DataGrid object's columns arraylocalX
- the size of the column relative to the data gridpublic void editNext()
public List<List<String>> getValues(int start, int end)
The return value is an array of rows, each of which is an array of items.
getValues
in class SparkSkinnableContainerBase
start
- the index of the starting child. The default value is 0.end
- the index of the ending child. The default value is 0.public void headerClick(int columnIndex)
columnIndex
- the index of the column headerpublic 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 List<String> getColumnNames()
getColumnNames
in class SparkSkinnableContainerBase
public int getColumnsLength()
public int getFirstVisibleRow()
getFirstVisibleRow
in class SparkSkinnableContainerBase
public int getLastVisibleRow()
getLastVisibleRow
in class SparkSkinnableContainerBase
public int getNumColumns()
getNumColumns
in class SparkSkinnableContainerBase
public int getNumRows()
getNumRows
in class SparkSkinnableContainerBase
public double getRowHeight()
public String getSelectedCell()
public int getSelectedIndex()
public String getSelectedItem()
public int getSelectionLength()
public String getSelectionMode()
public boolean isShowDataTips()
Copyright 2009-2012 Micro Focus. All Rights Reserved.