public class WPFDataGrid extends WPFMultiSelector
Modifier | Constructor and Description |
---|---|
protected |
WPFDataGrid(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFDataGrid with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
beginEdit(int rowIndex,
int columnIndex)
Begins to edit the specified cell.
|
void |
beginEdit(int rowIndex,
ItemIdentifier column)
Begins to edit the specified cell.
|
void |
beginEdit(int rowIndex,
String columnText)
Begins to edit the specified cell.
|
void |
beginEdit(ItemIdentifier row,
int columnIndex)
Begins to edit the specified cell.
|
void |
beginEdit(ItemIdentifier row,
ItemIdentifier column)
Begins to edit the specified cell.
|
void |
beginEdit(ItemIdentifier row,
String columnText)
Begins to edit the specified cell.
|
void |
beginEdit(String rowText,
int columnIndex)
Begins to edit the specified cell.
|
void |
beginEdit(String rowText,
ItemIdentifier column)
Begins to edit the specified cell.
|
void |
beginEdit(String rowText,
String columnText)
Begins to edit the specified cell.
|
void |
cancelEdit()
Cancels the edited cell.
|
void |
commitEdit()
Commits the edited cell.
|
List<WPFDataGridColumnHeader> |
getColumns()
Gets a collection that contains all the columns in the data grid.
|
WPFDataGridCell |
getCurrentCell()
Gets the cell that has focus.
|
WPFDataGridCell |
getSelectedCell()
Gets the selected cells in the data grid.
|
List<WPFDataGridCell> |
getSelectedCells()
Gets the list of cells that are currently selected.
|
String |
getSelectedCellText()
Gets the text of the selected cells in the data grid or an empty string if no cell is selected.
|
List<String> |
getSelectedCellTexts()
Gets the texts of the selected cells in the data grid or an empty list if no cells are selected.
|
WPFDataGridRow |
getSelectedItem()
Gets the selected row in the data grid.
|
DataGridSelectionMode |
getSelectionMode()
Gets a value that indicates how rows and cells are selected in the data grid.
|
DataGridSelectionUnit |
getSelectionUnit()
Gets a value that indicates whether rows, cells, or both can be selected in the data grid.
|
boolean |
isReadOnly()
Gets a value that indicates whether the user can edit values in the data grid.
|
void |
scrollIntoView(int rowIndex)
Scrolls the specified cell into view.
|
void |
scrollIntoView(int rowIndex,
int columnIndex)
Scrolls the specified cell into view.
|
void |
scrollIntoView(int rowIndex,
ItemIdentifier column)
Scrolls the specified cell into view.
|
void |
scrollIntoView(int rowIndex,
String columnText)
Scrolls the specified cell into view.
|
void |
scrollIntoView(ItemIdentifier row)
Scrolls the specified cell into view.
|
void |
scrollIntoView(ItemIdentifier row,
int columnIndex)
Scrolls the specified cell into view.
|
void |
scrollIntoView(ItemIdentifier row,
ItemIdentifier column)
Scrolls the specified cell into view.
|
void |
scrollIntoView(ItemIdentifier row,
String columnText)
Scrolls the specified cell into view.
|
void |
scrollIntoView(String rowText)
Scrolls the specified cell into view.
|
void |
scrollIntoView(String rowText,
int columnIndex)
Scrolls the specified cell into view.
|
void |
scrollIntoView(String rowText,
ItemIdentifier column)
Scrolls the specified cell into view.
|
void |
scrollIntoView(String rowText,
String columnText)
Scrolls the specified cell into view.
|
void |
select(int itemIndex)
Selects the specified row.
|
void |
select(int itemIndex,
ModifierKey modifiers)
Selects the specified row.
|
void |
select(ItemIdentifier item)
Selects the specified row.
|
void |
select(ItemIdentifier item,
ModifierKey modifiers)
Selects the specified row.
|
void |
select(String itemText)
Selects the specified row.
|
void |
select(String itemText,
ModifierKey modifiers)
Selects the specified row.
|
void |
selectCell(int rowIndex,
int columnIndex)
Selects the specified cell.
|
void |
selectCell(int rowIndex,
int columnIndex,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(int rowIndex,
ItemIdentifier column)
Selects the specified cell.
|
void |
selectCell(int rowIndex,
ItemIdentifier column,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(int rowIndex,
String columnText)
Selects the specified cell.
|
void |
selectCell(int rowIndex,
String columnText,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(ItemIdentifier row,
int columnIndex)
Selects the specified cell.
|
void |
selectCell(ItemIdentifier row,
int columnIndex,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(ItemIdentifier row,
ItemIdentifier column)
Selects the specified cell.
|
void |
selectCell(ItemIdentifier row,
ItemIdentifier column,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(ItemIdentifier row,
String columnText)
Selects the specified cell.
|
void |
selectCell(ItemIdentifier row,
String columnText,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(String rowText,
int columnIndex)
Selects the specified cell.
|
void |
selectCell(String rowText,
int columnIndex,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(String rowText,
ItemIdentifier column)
Selects the specified cell.
|
void |
selectCell(String rowText,
ItemIdentifier column,
ModifierKey modifiers)
Selects the specified cell.
|
void |
selectCell(String rowText,
String columnText)
Selects the specified cell.
|
void |
selectCell(String rowText,
String columnText,
ModifierKey modifiers)
Selects the specified cell.
|
getSelectedItems, getSelectedItemTexts
getSelectedIndex, getSelectedItemText
getItems, getItemTexts, hasItems, isTextSearchEnabled
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, 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 WPFDataGrid(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFDataGriddesktop
- the desktop on which this object livespublic void beginEdit(ItemIdentifier row, ItemIdentifier column)
row
- the row to editcolumn
- the column to editpublic void beginEdit(ItemIdentifier row, String columnText)
row
- the row to editcolumnText
- the column to editpublic void beginEdit(ItemIdentifier row, int columnIndex)
row
- the row to editcolumnIndex
- the column to editpublic void beginEdit(String rowText, ItemIdentifier column)
rowText
- the row to editcolumn
- the column to editpublic void beginEdit(String rowText, String columnText)
rowText
- the row to editcolumnText
- the column to editpublic void beginEdit(String rowText, int columnIndex)
rowText
- the row to editcolumnIndex
- the column to editpublic void beginEdit(int rowIndex, ItemIdentifier column)
rowIndex
- the row to editcolumn
- the column to editpublic void beginEdit(int rowIndex, String columnText)
rowIndex
- the row to editcolumnText
- the column to editpublic void beginEdit(int rowIndex, int columnIndex)
rowIndex
- the row to editcolumnIndex
- the column to editpublic void cancelEdit()
public void commitEdit()
public void scrollIntoView(ItemIdentifier row)
row
- the row where to scroll topublic void scrollIntoView(ItemIdentifier row, ItemIdentifier column)
row
- the row where to scroll tocolumn
- the column where to scroll topublic void scrollIntoView(ItemIdentifier row, String columnText)
row
- the row where to scroll tocolumnText
- the column where to scroll topublic void scrollIntoView(ItemIdentifier row, int columnIndex)
row
- the row where to scroll tocolumnIndex
- the column where to scroll topublic void scrollIntoView(String rowText)
rowText
- the row where to scroll topublic void scrollIntoView(String rowText, ItemIdentifier column)
rowText
- the row where to scroll tocolumn
- the column where to scroll topublic void scrollIntoView(String rowText, String columnText)
rowText
- the row where to scroll tocolumnText
- the column where to scroll topublic void scrollIntoView(String rowText, int columnIndex)
rowText
- the row where to scroll tocolumnIndex
- the column where to scroll topublic void scrollIntoView(int rowIndex)
rowIndex
- the row where to scroll topublic void scrollIntoView(int rowIndex, ItemIdentifier column)
rowIndex
- the row where to scroll tocolumn
- the column where to scroll topublic void scrollIntoView(int rowIndex, String columnText)
rowIndex
- the row where to scroll tocolumnText
- the column where to scroll topublic void scrollIntoView(int rowIndex, int columnIndex)
rowIndex
- the row where to scroll tocolumnIndex
- the column where to scroll topublic void select(ItemIdentifier item)
select
in class WPFSelector
item
- the row to selectpublic void select(ItemIdentifier item, ModifierKey modifiers)
select
in class WPFSelector
item
- the row to selectmodifiers
- the modifier keys to press while selecting the row. Use a modifier to select multiple rows.public void select(String itemText)
select
in class WPFSelector
itemText
- the row to selectpublic void select(String itemText, ModifierKey modifiers)
select
in class WPFSelector
itemText
- the row to selectmodifiers
- the modifier keys to press while selecting the row. Use a modifier to select multiple rows.public void select(int itemIndex)
select
in class WPFSelector
itemIndex
- the row to selectpublic void select(int itemIndex, ModifierKey modifiers)
select
in class WPFSelector
itemIndex
- the row to selectmodifiers
- the modifier keys to press while selecting the row. Use a modifier to select multiple rows.public void selectCell(ItemIdentifier row, ItemIdentifier column)
row
- the row to selectcolumn
- the cell to selectpublic void selectCell(ItemIdentifier row, ItemIdentifier column, ModifierKey modifiers)
row
- the row to selectcolumn
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(ItemIdentifier row, String columnText)
row
- the row to selectcolumnText
- the cell to selectpublic void selectCell(ItemIdentifier row, String columnText, ModifierKey modifiers)
row
- the row to selectcolumnText
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(ItemIdentifier row, int columnIndex)
row
- the row to selectcolumnIndex
- the cell to selectpublic void selectCell(ItemIdentifier row, int columnIndex, ModifierKey modifiers)
row
- the row to selectcolumnIndex
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(String rowText, ItemIdentifier column)
rowText
- the row to selectcolumn
- the cell to selectpublic void selectCell(String rowText, ItemIdentifier column, ModifierKey modifiers)
rowText
- the row to selectcolumn
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(String rowText, String columnText)
rowText
- the row to selectcolumnText
- the cell to selectpublic void selectCell(String rowText, String columnText, ModifierKey modifiers)
rowText
- the row to selectcolumnText
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(String rowText, int columnIndex)
rowText
- the row to selectcolumnIndex
- the cell to selectpublic void selectCell(String rowText, int columnIndex, ModifierKey modifiers)
rowText
- the row to selectcolumnIndex
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(int rowIndex, ItemIdentifier column)
rowIndex
- the row to selectcolumn
- the cell to selectpublic void selectCell(int rowIndex, ItemIdentifier column, ModifierKey modifiers)
rowIndex
- the row to selectcolumn
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(int rowIndex, String columnText)
rowIndex
- the row to selectcolumnText
- the cell to selectpublic void selectCell(int rowIndex, String columnText, ModifierKey modifiers)
rowIndex
- the row to selectcolumnText
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public void selectCell(int rowIndex, int columnIndex)
rowIndex
- the row to selectcolumnIndex
- the cell to selectpublic void selectCell(int rowIndex, int columnIndex, ModifierKey modifiers)
rowIndex
- the row to selectcolumnIndex
- the cell to selectmodifiers
- the modifier keys to press while selecting the cell. Use a modifier to select multiple items.public List<WPFDataGridColumnHeader> getColumns()
public WPFDataGridCell getCurrentCell()
public boolean isReadOnly()
public WPFDataGridCell getSelectedCell()
public List<WPFDataGridCell> getSelectedCells()
public String getSelectedCellText()
public List<String> getSelectedCellTexts()
public WPFDataGridRow getSelectedItem()
getSelectedItem
in class WPFSelector
public DataGridSelectionMode getSelectionMode()
public DataGridSelectionUnit getSelectionUnit()
Copyright 2009-2012 Micro Focus. All Rights Reserved.