public class SapTable extends SapComponent
Modifier | Constructor and Description |
---|---|
protected |
SapTable(JtfObjectHandle handle,
Desktop desktop)
Creates a new SapTable with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
configureLayout()
Opens the configuration layout dialog, in which the layout of the table can be changed.
|
void |
deselectAllColumns()
This function can be used for table controls with a button that allows to de-select all columns in one step.
|
void |
deselectColumn(int column)
Deselects the given column.
|
void |
deselectRow(int row)
Deselects the given row.
|
SapComponent |
getCell(int row,
int column)
Returns a visible table cell.
|
SapComponent |
getCellAbsolute(int row,
int column)
Returns a table cell.
|
List<SapComponent> |
getCellsForRow(int row)
Returns the cells for the given row.
|
int |
getCharHeight()
Gets the height of the element in character metric.
|
int |
getCharLeft()
Gets the left coordinate of the element in character metric.
|
int |
getCharTop()
Gets the top coordinate of the element in character metric.
|
int |
getCharWidth()
Gets the width of the element in character metric.
|
int |
getColumnCount()
Gets the number of columns in the table.
|
TableSelectionType |
getColumnSelectionMode()
Gets the column selection mode.
|
String |
getColumnTitle(int column)
This method returns the title of the given column.
|
int |
getCurrentColumn()
Gets the index of the current column.
|
int |
getCurrentRow()
Gets the index of the current row.
|
int |
getRowCount()
Gets the number of rows in the table including invisible rows.
|
TableSelectionType |
getRowSelectionMode()
Gets the row selection mode.
|
String |
getTableFieldName()
Gets the table field name.
|
List<SapComponent> |
getVisibleCellsForColumn(int column)
Returns the visible cells for the given column.
|
int |
getVisibleRowCount()
Gets the number of visible rows in the table.
|
boolean |
isColumnSelected(int column)
Returns true if the given column is selected.
|
boolean |
isRowSelected(int row)
Returns true if the given row is selected.
|
void |
reorderTable(String permutation)
This method re-orders the columns.
|
void |
selectAllColumns()
This function can be used for table controls with a button that allows to select all columns in one step.
|
void |
selectColumn(int column)
Selects the given column.
|
void |
selectRow(int row)
Selects the given row.
|
getAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, showContextMenu
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 SapTable(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SapTabledesktop
- the desktop on which this object livespublic void configureLayout()
public void deselectAllColumns()
public void deselectColumn(int column)
column
- index of the column. The value is zero-based.public void deselectRow(int row)
row
- index of the row. The value is zero-based.public SapComponent getCell(int row, int column)
row
- index of the row, starting at the first visible row. The value is zero-based.column
- index of the column. The value is zero-based.public SapComponent getCellAbsolute(int row, int column)
row
- index of the row. The value is zero-based.column
- index of the column. The value is zero-based.public List<SapComponent> getCellsForRow(int row)
row
- index of the row. The value is zero-based.public String getColumnTitle(int column)
column
- index of the column. The value is zero-based.public List<SapComponent> getVisibleCellsForColumn(int column)
column
- index of the column. The value is zero-based.public boolean isColumnSelected(int column)
column
- index of the column. The value is zero-based.public boolean isRowSelected(int row)
row
- index of the row. The value is zero-based.public void reorderTable(String permutation)
permutation
- describes a new ordering of the columns. For example "1 3 2" will move column 3 to second position.public void selectAllColumns()
public void selectColumn(int column)
column
- index of the column. The value is zero-based.public void selectRow(int row)
row
- index of the row. The value is zero-based.public int getCharHeight()
public int getCharLeft()
public int getCharTop()
public int getCharWidth()
public int getColumnCount()
public TableSelectionType getColumnSelectionMode()
public int getCurrentColumn()
public int getCurrentRow()
public int getRowCount()
public TableSelectionType getRowSelectionMode()
public String getTableFieldName()
public int getVisibleRowCount()
Copyright 2009-2012 Micro Focus. All Rights Reserved.