public class SapTable extends SapComponent
Modifier | Constructor and Description |
---|---|
protected |
SapTable(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 SapTable。
|
Modifier and Type | Method and Description |
---|---|
void |
configureLayout()
打开配置布局对话框,在此对话框中更改表的布局。
|
void |
deselectAllColumns()
此功能用于带按钮的表控件,利用该控件可用一个步骤取消选择所有列。
|
void |
deselectColumn(int column)
取消选择指定列。
|
void |
deselectRow(int row)
取消选择指定行。
|
SapComponent |
getCell(int row,
int column)
返回可见的表单元格。
|
SapComponent |
getCellAbsolute(int row,
int column)
返回表单元格。
|
List<SapComponent> |
getCellsForRow(int row)
返回指定行的单元格。
|
int |
getCharHeight()
获取 元素的高度(字符度量)。
|
int |
getCharLeft()
获取 元素的左坐标(字符度量)。
|
int |
getCharTop()
获取 元素的上坐标(字符度量)。
|
int |
getCharWidth()
获取 元素的宽度(字符度量)。
|
int |
getColumnCount()
获取 表中列的数量。
|
TableSelectionType |
getColumnSelectionMode()
获取 列选择模式。
|
String |
getColumnTitle(int column)
此方法返回指定列的标题。
|
int |
getCurrentColumn()
获取 当前列的索引。.
|
int |
getCurrentRow()
获取 当前行的索引。.
|
int |
getRowCount()
获取 包含不可见行的表中行的数量。
|
TableSelectionType |
getRowSelectionMode()
获取 行选择模式。
|
String |
getTableFieldName()
获取 表字段名称。
|
List<SapComponent> |
getVisibleCellsForColumn(int column)
返回指定列的可见单元格。
|
int |
getVisibleRowCount()
获取 表中可见行的数量。
|
boolean |
isColumnSelected(int column)
如果选择了给定列,则返回 true。
|
boolean |
isRowSelected(int row)
如果选择了给定行,则返回 true。
|
void |
reorderTable(String permutation)
此方法重新排序列。
|
void |
selectAllColumns()
此功能用于带按钮的表控件,利用该控件可用一个步骤选择所有列。
|
void |
selectColumn(int column)
选择指定列。
|
void |
selectRow(int 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
- 可确定 SapTable 的句柄desktop
- 此对象所在的桌面public void configureLayout()
public void deselectAllColumns()
public void deselectColumn(int column)
column
- 列的索引。. The value is zero-based.public void deselectRow(int row)
row
- 行的索引。. The value is zero-based.public SapComponent getCell(int row, int column)
row
- 行的索引,从第一个可见行开始。. The value is zero-based.column
- 列的索引。. The value is zero-based.public SapComponent getCellAbsolute(int row, int column)
row
- 行的索引。. The value is zero-based.column
- 列的索引。. The value is zero-based.public List<SapComponent> getCellsForRow(int row)
row
- 行的索引。. The value is zero-based.public String getColumnTitle(int column)
column
- 列的索引。. The value is zero-based.public List<SapComponent> getVisibleCellsForColumn(int column)
column
- 列的索引。. The value is zero-based.public boolean isColumnSelected(int column)
column
- 列的索引。. The value is zero-based.public boolean isRowSelected(int row)
row
- 行的索引。. The value is zero-based.public void reorderTable(String permutation)
permutation
- 描述列的新顺序。例如,“1 3 2”指将列 3 移动至第二个位置。public void selectAllColumns()
public void selectColumn(int column)
column
- 列的索引。. The value is zero-based.public void selectRow(int row)
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.