本文整理匯總了Java中org.netbeans.jemmy.operators.JTableOperator.getEditingColumn方法的典型用法代碼示例。如果您正苦於以下問題:Java JTableOperator.getEditingColumn方法的具體用法?Java JTableOperator.getEditingColumn怎麽用?Java JTableOperator.getEditingColumn使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.netbeans.jemmy.operators.JTableOperator
的用法示例。
在下文中一共展示了JTableOperator.getEditingColumn方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: editCell
import org.netbeans.jemmy.operators.JTableOperator; //導入方法依賴的package包/類
@Override
public void editCell(ComponentOperator oper, int row, int column, Object value) {
JTableOperator toper = (JTableOperator) oper;
toper.scrollToCell(row, column);
if (!toper.isEditing()
|| toper.getEditingRow() != row
|| toper.getEditingColumn() != column) {
clickOnCell((JTableOperator) oper, row, column, 2);
}
JTextComponentOperator textoper
= new JTextComponentOperator((JTextComponent) toper.
waitSubComponent(new JTextComponentOperator.JTextComponentFinder()));
TextDriver text = DriverManager.getTextDriver(JTextComponentOperator.class);
text.clearText(textoper);
text.typeText(textoper, value.toString(), 0);
DriverManager.getKeyDriver(oper).
pushKey(textoper, KeyEvent.VK_ENTER, 0,
oper.getTimeouts().
create("ComponentOperator.PushKeyTimeout"));
}