本文整理匯總了Java中org.netbeans.jemmy.operators.JTableOperator.findCellRow方法的典型用法代碼示例。如果您正苦於以下問題:Java JTableOperator.findCellRow方法的具體用法?Java JTableOperator.findCellRow怎麽用?Java JTableOperator.findCellRow使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.netbeans.jemmy.operators.JTableOperator
的用法示例。
在下文中一共展示了JTableOperator.findCellRow方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: selectPlugins
import org.netbeans.jemmy.operators.JTableOperator; //導入方法依賴的package包/類
/** Selects plugins in the table.
* @param pluginNames array of plugin names to be selected
*/
public void selectPlugins(String[] pluginNames) {
JTableOperator tableOper = table();
for (int i = 0; i < pluginNames.length; i++) {
String name = pluginNames[i];
int row = tableOper.findCellRow(name, new DefaultStringComparator(true, true), 1, 0);
if(row == -1) {
throw new JemmyException("Plugin "+name+" not found.");
}
tableOper.selectCell(row, 1);
tableOper.clickOnCell(row, 0);
}
}
示例2: selectTemplate
import org.netbeans.jemmy.operators.JTableOperator; //導入方法依賴的package包/類
public boolean selectTemplate(String abbrev) {
JTableOperator templatesTable1 = getTemplatesTable();
int row = templatesTable1.findCellRow(abbrev, 0, 0);
if(row==-1) return false;
templatesTable1.selectCell(row, 0);
return true;
}
示例3: selectDocument
import org.netbeans.jemmy.operators.JTableOperator; //導入方法依賴的package包/類
/** Pushes down arrow control button in top right corner intended to
* show list of opened documents and selects document with given name
* in the list.
*/
public static void selectDocument(String name) {
btDown().push();
JTableOperator tableOper = new JTableOperator(MainWindowOperator.getDefault());
int row = tableOper.findCellRow(name);
if (row > -1) {
tableOper.selectCell(row, 0);
} else {
throw new JemmyException("Cannot select document \"" + name + "\".");
}
}