public class DataGrid extends Control
| Modifier | Constructor and Description |
|---|---|
protected |
DataGrid(JtfObjectHandle handle,
Desktop desktop)
Creates a new DataGrid with a JtfObjectHandle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doubleSelectItem(int column,
int row)
Double-clicks an item.
|
void |
doubleSelectItem(int column,
int row,
ModifierKey modifiers)
Double-clicks an item.
|
void |
extendSelectItem(int column,
int row)
Expands the selection to the given item.
|
int |
getColumnCount()
Gets the number of columns in the DataGrid.
|
List<DataGridColumn> |
getColumnItems()
Gets a list of all items in the column.
|
List<DataGridItem> |
getItems()
Gets a list of all items in the column.
|
int |
getRowCount()
Gets the number of rows in the DataGrid.
|
List<DataGridRow> |
getRowItems()
Gets a list of all items in the row.
|
List<DataGridItem> |
getSelectedItems()
Gets the selected item(s).
|
boolean |
isAllowsMultiSelect()
Gets whether the table supports selecting multiple items.
|
void |
multiSelectItem(int column,
int row)
Adds a row from the table to the set of selected rows.
|
void |
multiUnselectItem(int column,
int row)
Removes a item from the set of selected items.
|
void |
scrollIntoView(int column,
int row)
Tries to bring the item to the top left corner of the datagrid.
|
void |
selectAllItems()
Selects all items in the datagrid.
|
void |
selectItem(int column,
int row)
Selects an item.
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenuclick, 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, typePasswordKeyscaptureBitmap, 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, 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 DataGrid(JtfObjectHandle handle, Desktop desktop)
handle - the handle that identifies the DataGriddesktop - the desktop on which this object livespublic void doubleSelectItem(int column,
int row)
column - the index of the column to select. The value is zero-based.row - the index of the row to select. The value is zero-based.public void doubleSelectItem(int column,
int row,
ModifierKey modifiers)
column - the index of the column to select. The value is zero-based.row - the index of the row to select. The value is zero-based.modifiers - the active modifier key state while selecting the itempublic void extendSelectItem(int column,
int row)
column - the index of the column to select. The value is zero-based.row - the index of the row to select. The value is zero-based.public void multiSelectItem(int column,
int row)
column - the index of the column to select. The value is zero-based.row - the index of the row to select. The value is zero-based.public void multiUnselectItem(int column,
int row)
column - the index of the column to select. The value is zero-based.row - the index of the row to select. The value is zero-based.public void scrollIntoView(int column,
int row)
column - the index of the column. The value is zero-based.row - the index of the row. The value is zero-based.public void selectAllItems()
public void selectItem(int column,
int row)
column - the index of the column to select. The value is zero-based.row - the index of the row to select. 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.