public class DataGrid extends Control
Modifier | Constructor and Description |
---|---|
protected |
DataGrid(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 DataGrid。
|
Modifier and Type | Method and Description |
---|---|
void |
doubleSelectItem(int column,
int row)
双击项目。
|
void |
doubleSelectItem(int column,
int row,
ModifierKey modifiers)
双击项目。
|
void |
extendSelectItem(int column,
int row)
扩展选定内容至指定项目。
|
int |
getColumnCount()
获取 DataGrid 中列的数量。
|
List<DataGridColumn> |
getColumnItems()
获取 列中所有项目的列表。
|
List<DataGridItem> |
getItems()
获取 列中所有项目的列表。
|
int |
getRowCount()
获取 DataGrid 中行的数量。
|
List<DataGridRow> |
getRowItems()
获取 行中所有项目的列表。
|
List<DataGridItem> |
getSelectedItems()
获取 所选项目。
|
boolean |
isAllowsMultiSelect()
获取 表是否支持选择多个项目。
|
void |
multiSelectItem(int column,
int row)
添加表中的行至所选行的集。
|
void |
multiUnselectItem(int column,
int row)
删除所选项目集中的项目。
|
void |
scrollIntoView(int column,
int row)
尝试将项目放到数据网格的左上角。
|
void |
selectAllItems()
选择数据网格中的所有项目。
|
void |
selectItem(int column,
int row)
选择项目。
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenu
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getBackground, getFont, getForeground, getNativeHandle, isEnabled, isFocused, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setBackground, setEnabled, setFocus, setFont, setForeground, setVisible, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, 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 DataGrid(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 DataGrid 的句柄desktop
- 此对象所在的桌面public void doubleSelectItem(int column, int row)
column
- 可选择的列索引。. The value is zero-based.row
- 可选择的行索引。. The value is zero-based.public void doubleSelectItem(int column, int row, ModifierKey modifiers)
column
- 可选择的列索引。. The value is zero-based.row
- 可选择的行索引。. The value is zero-based.modifiers
- 选择项目时的活动修饰键状态public void extendSelectItem(int column, int row)
column
- 可选择的列索引。. The value is zero-based.row
- 可选择的行索引。. The value is zero-based.public void multiSelectItem(int column, int row)
column
- 可选择的列索引。. The value is zero-based.row
- 可选择的行索引。. The value is zero-based.public void multiUnselectItem(int column, int row)
column
- 可选择的列索引。. The value is zero-based.row
- 可选择的行索引。. The value is zero-based.public void scrollIntoView(int column, int row)
column
- 列的索引。. The value is zero-based.row
- 行的索引。. The value is zero-based.public void selectAllItems()
public void selectItem(int column, int row)
column
- 可选择的列索引。. The value is zero-based.row
- 可选择的行索引。. The value is zero-based.public boolean isAllowsMultiSelect()
public int getColumnCount()
public List<DataGridColumn> getColumnItems()
public List<DataGridItem> getItems()
public int getRowCount()
public List<DataGridRow> getRowItems()
public List<DataGridItem> getSelectedItems()
Copyright 2009-2012 Micro Focus. All Rights Reserved.