public class SapGridView extends SapShell implements ISapContextMenuable
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
SapGridView(JtfObjectHandle handle,
Desktop desktop)
JtfObjectHandle を持つ新しい SapGridView を作成します。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clearSelection()
すべての行、列、セルの選択を削除します。
|
void |
click(int row,
String column)
指定したセルをクリックします。
|
void |
clickCurrentCell()
現在のセルをクリックします。
|
void |
contextMenu()
コンテキスト メニューを要求します。
|
void |
currentCellMoved()
この関数は、他のセルが現在のセルになったことをサーバーに通知します。
|
void |
deleteRows(String rows)
指定した行を削除します。
|
void |
deselectColumn(String column)
選択した列のリストから指定した列を削除します。
|
void |
doubleClick(int row,
String column)
指定したセルをダブルクリックします。
|
void |
doubleClickCurrentCell()
現在のセルをダブルクリックします。
|
void |
duplicateRows(String rows)
指定した範囲の行を複製します。
|
void |
getCellColor(int row,
String column)
セルの色の識別子を返します。
|
int |
getCellHeight(int row,
String column)
セルの高さ(ピクセル単位)を取得します。
|
String |
getCellIcon(int row,
String column)
指定したセルのアイコン文字列を取得します。
|
int |
getCellLeft(int row,
String column)
セルの左からの位置を取得します。
|
int |
getCellMaxLength(int row,
String column)
セルの最大の長さをバイト数で取得します。
|
GridCellState |
getCellState(int row,
String column)
指定したセルの状態を取得します。
|
String |
getCellTooltip(int row,
String column)
指定したセルのツールチップを取得します。
|
int |
getCellTop(int row,
String column)
指定したセルの上からの位置を取得します。
|
GridCellType |
getCellType(int row,
String column)
指定したセルのセル タイプを取得します。
|
String |
getCellValue(int row,
String column)
指定したセルの値を取得します。
|
int |
getCellWidth(int row,
String column)
指定したセルの幅を取得します。
|
void |
getColorInfo(int color)
セルの色の説明を返します。
|
int |
getColumnCount()
[読み取り専用] 列の数。
|
String |
getColumnDataType(String column)
列のデータ型を取得します。
|
List<String> |
getColumnOrder()
[読み取り専用] すべての列識別子がその表示順でを含まれる文字列のリスト。
|
int |
getColumnPosition(String column)
指定した列の位置を取得します。
|
GridColumnSortType |
getColumnSortType(String column)
列のソート種別を取得します。
|
List<String> |
getColumnTitles(String column)
指定した列のすべての列タイトルを取得します。
|
String |
getColumnTooltip(String column)
指定した列のツールチップ テキストを取得します。
|
GridColumnTotalType |
getColumnTotalType(String column)
列の合計種別を取得します。
|
String |
getCurrentCellColumn()
[読み取り専用] 現在の列。
|
int |
getCurrentCellRow()
[読み取り専用] 現在の行。
|
SapContextMenu |
getCurrentContextMenu()
[読み取り専用] 現在のコンテキスト メニュー。
|
String |
getDisplayedColumnTitle(String column)
指定した列の現在表示されているタイトルを取得します。
|
String |
getFirstVisibleColumn()
[読み取り専用] グリッド ビューのスクロール可能領域の最初の可視な列。
|
int |
getFirstVisibleRow()
[読み取り専用] グリッドの最初の可視な行のインデックス。.
|
int |
getFrozenColumnCount()
[読み取り専用] 水平方向のスクロールから除外される列の数。
|
int |
getRowCount()
[読み取り専用] 行の数。
|
int |
getRowTotalLevel(int row)
行のレベルを取得します。
|
List<String> |
getSelectedCells()
[読み取り専用] 選択したセルを含む文字列のリスト。
|
List<String> |
getSelectedColumns()
[読み取り専用] 現在選択されている列の文字列のリスト。
|
String |
getSelectedRows()
[読み取り専用] 行インデックス番号、またはインデックス範囲のカンマ区切りリスト("1,4,6-8" など)。
|
GridSelectionMode |
getSelectionMode()
[読み取り専用] 選択モード。
|
void |
getSymbolInfo(String symbol)
セルの記号の説明を返します。
|
String |
getTitle()
[読み取り専用] グリッド コントロールのタイトル。
|
int |
getToolbarButtonCount()
[読み取り専用] 区切りを含むツール バーのボタンの数。
|
String |
getToolbarButtonIcon(int buttonpos)
指定したツール バー ボタンのアイコン名を取得します。
|
String |
getToolbarButtonId(int buttonpos)
指定したツール バー ボタンの ID を取得します。
|
String |
getToolbarButtonText(int buttonpos)
指定したツール バー ボタンのテキストを取得します。
|
String |
getToolbarButtonTooltip(int buttonpos)
指定したツール バー ボタンのツールチップを取得します。
|
GridToolbarButtonType |
getToolbarButtonType(int buttonpos)
指定したツール バーのボタンの種類を取得します。
|
int |
getToolbarFocusButton()
現在フォーカスを持つツール バー ボタンの位置を取得します。
|
int |
getVisibleRowCount()
[読み取り専用] グリッド ビューの可視な行の数。
|
boolean |
hasCellF4Help(int row,
String column)
指定したセルがヘルプが割り当てられた値を持つ場合に true を返します。
|
void |
insertRows(String rows)
行の範択を挿入します。
|
boolean |
isCellChangeable(int row,
String column)
指定したセルが変更可能な場合に true を返します。
|
boolean |
isCellCheckBoxChecked(int row,
String column)
指定した位置にあるチェック ボックスがチェックされている場合に true を返します。
|
boolean |
isCellHotspot(int row,
String column)
セルがリンクである場合に true を返します。
|
boolean |
isCellSymbol(int row,
String column)
セルのテキストが SAP シンボル フォントで表示されている場合に true を返します。
|
boolean |
isCellTotalExpander(int row,
String column)
指定したセルに合計エクスパンダ ボタンがある場合に true を返します。
|
boolean |
isColumnFiltered(String column)
指定した列がフィルタリングされている場合に true を返します。
|
boolean |
isColumnKey(String column)
指定した列がキー列である場合に true を返します。
|
boolean |
isToolbarButtonChecked(int buttonpos)
指定したツール バー ボタンがチェックされている場合に true を返します。
|
boolean |
isToolbarButtonEnabled(int buttonpos)
指定したボタンが有効な場合に true を返します。
|
boolean |
isTotalRowExpanded(int row)
指定した合計行が展開されているかどうかを取得します。
|
void |
modifyCell(int row,
String column,
String value)
指定したセルの値を変更します。
|
void |
modifyCheckBox(int row,
String column,
boolean selected)
指定したチェック ボックス セルの値を変更します。
|
void |
moveRows(int fromRow,
int toRow,
int destRow)
fromRow 以上、toRow 以下のインデックスを持つ行を destRowの位置に移動させます。
|
void |
pressButton(int row,
String column)
指定したセルにあるボタンを押します。
|
void |
pressButtonCurrentCell()
現在のセルにあるボタンをクリックします。
|
void |
pressColumnHeader(String column)
指定した列のヘッダーをクリックします。
|
void |
pressEnter()
Enter キーを押します。
|
void |
pressF1()
F1 キーを押します。
|
void |
pressF4()
F4 キーを押します。
|
void |
pressToolbarButton(String id)
グリッド ビューのツール バーの指定したボタンをクリックします。
|
void |
pressToolbarContextButton(String id)
グリッド ビューのツール バーの指定したボタンのコンテキスト メニューを開きます。
|
void |
pressTotalRow(int row,
String column)
指定した合計行の行ボタンを押します。
|
void |
pressTotalRowCurrentCell()
現在のセルにある展開ボタンを押します。
|
void |
selectAll()
グリッドのコンテンツ全体(たとえば、すべての行と列)を選択します。
|
void |
selectColumn(String column)
選択した列のリストに指定した列を追加します。
|
void |
selectContextMenuItem(String functionCode)
コントロールのコンテキスト メニューから項目を選択します。
|
void |
selectContextMenuItemByPosition(String positionDescription)
このメソッドは項目の位置を利用してコンテキスト メニュー項目を選択できます。
|
void |
selectContextMenuItemByText(String text)
メニュー項目や利用可能な高レベルのメニューのテキストを使用してコンテキスト メニューのメニュー項目を選択します。
|
void |
selectionChanged()
選択範囲が変更されたことをサーバーに通知します。
|
void |
selectToolbarMenuItem(String id)
グリッド ビューのツール バーのコンテキスト メニューから項目を選択します。
|
void |
setColumnOrder(List<String> columns)
列の順序を設定します。
|
void |
setColumnWidth(String column,
int width)
指定した列の幅を設定します。
|
void |
setCurrentCell(int row,
String column)
指定したセルを現在のセルとして設定します。
|
void |
setCurrentCellColumn(String column)
現在のセルの列を指定します。
|
void |
setCurrentCellRow(int row)
現在のセルの行を設定します。
|
void |
setFirstVisibleColumn(String column)
最初の可視な列を設定します。
|
void |
setFirstVisibleRow(int row)
最初の可視な行を設定します。
|
void |
setSelectedRows(String rows)
指定した行を選択します。
|
void |
triggerModified()
セルの複数の変更をサーバーに通知します。
|
isDragDropSupportedgetAccessibilityText, getAccessibilityTextOnRequest, getAccessibilityTooltip, getDefaultTooltip, getHeight, getIconName, getLeft, getName, getScreenLeft, getScreenTop, getTooltip, getTop, getWidth, isChangeable, isFocused, isModified, isSymbolFont, setFocus, showContextMenucaptureBitmap, 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, 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 SapGridView(JtfObjectHandle handle, Desktop desktop)
handle - SapGridView を識別するハンドルdesktop - このオブジェクトが存在するデスクトップpublic void clearSelection()
public void click(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public void clickCurrentCell()
public void contextMenu()
public void currentCellMoved()
public void deleteRows(String rows)
パラメーター行は、インデックスやインデックス範囲をカンマ区切りで表した文字列です ('3,5-8,14,15' など)。 各エントリは順番通りに、かつ範囲が重複しないように指定する必要があります。
rows - 削除する行public void deselectColumn(String column)
column - 列識別子public void doubleClick(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public void doubleClickCurrentCell()
public void duplicateRows(String rows)
パラメーター行は、インデックスやインデックス範囲をカンマ区切りで表した文字列です ('3,5-8,14,15' など)。 単一のインデックスの場合、行のコピーが指定したインデックスに挿入されます。 インデックスの範囲を複製する場合、すべての新しい行が 1 つのブロックとして古い行の前に挿入されます。 各エントリは順番通りに、かつ範囲が重複しないように指定する必要があります。
rows - 複製する行public void getCellColor(int row,
String column)
GetColorInfo を使用して色情報を取得するために使用することができます。
row - 行のインデックス. The value is zero-based.column - 列識別子public int getCellHeight(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public String getCellIcon(int row, String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public int getCellLeft(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public int getCellMaxLength(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public GridCellState getCellState(int row, String column)
row - 行のインデックス。. The value is zero-based.column - 列識別子public String getCellTooltip(int row, String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public int getCellTop(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public GridCellType getCellType(int row, String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public String getCellValue(int row, String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public int getCellWidth(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public void getColorInfo(int color)
SAP GUI のユーザー補助モードが有効化されてい場合にのみ、この関数は値を返します。
color - 説明を取得する色. The value is zero-based.public int getColumnPosition(String column)
column - 列識別子public GridColumnSortType getColumnSortType(String column)
column - 列識別子public List<String> getColumnTitles(String column)
column - 列識別子public String getColumnTooltip(String column)
column - 列識別子public GridColumnTotalType getColumnTotalType(String column)
column - 列識別子public String getDisplayedColumnTitle(String column)
column - 列識別子public int getRowTotalLevel(int row)
row - 行のインデックス. The value is zero-based.public void getSymbolInfo(String symbol)
SAP GUI のユーザー補助モードが有効化されてい場合にのみ、この関数は値を返します。
symbol - セルの記号の値public String getToolbarButtonIcon(int buttonpos)
buttonpos - ツール バー ボタンの位置。. The value is zero-based.public String getToolbarButtonId(int buttonpos)
buttonpos - ツール バー ボタンの位置. The value is zero-based.public String getToolbarButtonText(int buttonpos)
buttonpos - ツール バー ボタンの位置. The value is zero-based.public String getToolbarButtonTooltip(int buttonpos)
buttonpos - ツール バー ボタンのインデックス. The value is zero-based.public GridToolbarButtonType getToolbarButtonType(int buttonpos)
buttonpos - ツール バー ボタンのインデックス. The value is zero-based.public int getToolbarFocusButton()
public boolean hasCellF4Help(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public void insertRows(String rows)
パラメーター行は、インデックスやインデックス範囲をカンマ区切りで表した文字列です ('3,5-8,14,15' など)。 単一のインデックスの場合、新しい行が指定したインデックスに追加され古い行は一行下に移動します。 インデックスの範囲が挿入される場合、すべての新しい行が 1 つのブロックとして任意の古い行の前に挿入されます。 各エントリは順番通りに、かつ範囲が重複しないように指定する必要があります。
rows - 挿入する行public boolean isCellChangeable(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public boolean isCellCheckBoxChecked(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public boolean isCellHotspot(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public boolean isCellSymbol(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public boolean isCellTotalExpander(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public boolean isColumnFiltered(String column)
column - 列識別子public boolean isColumnKey(String column)
column - 列識別子public boolean isToolbarButtonChecked(int buttonpos)
buttonpos - ツール バー ボタンのインデックス. The value is zero-based.public boolean isToolbarButtonEnabled(int buttonpos)
buttonpos - ツール バー ボタンのインデックス. The value is zero-based.public boolean isTotalRowExpanded(int row)
row - 行のインデックス. The value is zero-based.public void modifyCell(int row,
String column,
String value)
row - 行のインデックス. The value is zero-based.column - 列識別子value - セルの新しい値public void modifyCheckBox(int row,
String column,
boolean selected)
row - 行のインデックス. The value is zero-based.column - 列識別子selected - チェック ボックスが選択されているかどうかpublic void moveRows(int fromRow,
int toRow,
int destRow)
fromRow - 選択範囲の最初の行のインデックス. The value is zero-based.toRow - 選択範囲の最後の行のインデックス. The value is zero-based.destRow - 行を移動する移動先のインデックス. The value is zero-based.public void pressButton(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public void pressButtonCurrentCell()
public void pressColumnHeader(String column)
column - 列識別子public void pressEnter()
public void pressF1()
public void pressF4()
public void pressToolbarButton(String id)
id - ツール バー ボタンの IDpublic void pressToolbarContextButton(String id)
id - ツール バー ボタンの IDpublic void pressTotalRow(int row,
String column)
row - 行のインデックス. The value is zero-based.column - 列識別子public void pressTotalRowCurrentCell()
public void selectAll()
public void selectColumn(String column)
column - 列識別子public void selectContextMenuItem(String functionCode)
selectContextMenuItem インタフェース内 ISapContextMenuablefunctionCode - 機能コードpublic void selectContextMenuItemByPosition(String positionDescription)
selectContextMenuItemByPosition インタフェース内 ISapContextMenuablepositionDescription - 項目へのパスを含んだ文字列。 コンテキスト メニュー項目がトップ レベル メニューにある場合には、単に項目の 0 を基準としたインデックスになります。 それ以外の場合には、メニューおよび個々のサブメニューの位置を "|" で区切って指定します。public void selectContextMenuItemByText(String text)
selectContextMenuItemByText インタフェース内 ISapContextMenuabletext - メニュー項目のテキストpublic void selectionChanged()
public void selectToolbarMenuItem(String id)
id - メニュー項目の IDpublic void setColumnOrder(List<String> columns)
columns - 指定したい順番に並べた列識別子のリストpublic void setColumnWidth(String column, int width)
column - 列識別子width - widthpublic void setCurrentCell(int row,
String column)
row - 行のインデックスcolumn - 列識別子public void setCurrentCellColumn(String column)
column - 列識別子public void setCurrentCellRow(int row)
row - 行のインデックス. The value is zero-based.public void setFirstVisibleColumn(String column)
column - 列識別子public void setFirstVisibleRow(int row)
row - 行のインデックス. The value is zero-based.public void setSelectedRows(String rows)
rows - 行インデックス、またはインデックス範囲のカンマ区切りリスト("1,3,6-8" など)として行を指定しますpublic void triggerModified()
public int getColumnCount()
public String getCurrentCellColumn()
public int getCurrentCellRow()
public SapContextMenu getCurrentContextMenu()
public String getFirstVisibleColumn()
public int getFirstVisibleRow()
public int getFrozenColumnCount()
public int getRowCount()
public List<String> getSelectedCells()
public String getSelectedRows()
public GridSelectionMode getSelectionMode()
public String getTitle()
public int getToolbarButtonCount()
public int getVisibleRowCount()
Copyright 2009-2012 Micro Focus. All Rights Reserved.