本文整理汇总了Java中org.netbeans.jemmy.operators.JTextComponentOperator.setText方法的典型用法代码示例。如果您正苦于以下问题:Java JTextComponentOperator.setText方法的具体用法?Java JTextComponentOperator.setText怎么用?Java JTextComponentOperator.setText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.jemmy.operators.JTextComponentOperator
的用法示例。
在下文中一共展示了JTextComponentOperator.setText方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createNewFile
import org.netbeans.jemmy.operators.JTextComponentOperator; //导入方法依赖的package包/类
protected EditorOperator createNewFile(String fileName, String project, String category, String fileType) {
NewFileWizardOperator opNewFileWizard = NewFileWizardOperator.invoke();
opNewFileWizard.selectCategory(category);
opNewFileWizard.selectFileType(fileType);
opNewFileWizard.next();
JDialogOperator jdNew = new JDialogOperator("New " + fileType);
JTextComponentOperator jt = new JTextComponentOperator(jdNew, 0);
if (null != fileName) {
jt.setText(fileName);
} else {
fileName = jt.getText();
}
opNewFileWizard.finish();
return new EditorOperator(fileName);
}
示例2: prepare
import org.netbeans.jemmy.operators.JTextComponentOperator; //导入方法依赖的package包/类
public void prepare(){
new ActionNoBlock("File|Open Project...",null).perform(); //NOI18N
WizardOperator opd = new WizardOperator("Open Project"); //NOI18N
JTextComponentOperator path = new JTextComponentOperator(opd,1);
openButton = new JButtonOperator(opd,"Open Project"); //NOI18N
String paths = getDataDir() + java.io.File.separator + projectName;
path.setText(paths);
}
示例3: prepare
import org.netbeans.jemmy.operators.JTextComponentOperator; //导入方法依赖的package包/类
public void prepare() {
new ActionNoBlock("File|Open Project...", null).perform(); //NOI18N
WizardOperator opd = new WizardOperator("Open Project"); //NOI18N
JTextComponentOperator path = new JTextComponentOperator(opd, 1);
openButton = new JButtonOperator(opd, "Open Project"); //NOI18N
String paths = getDataDir().toString()+ java.io.File.separator + projectName;
path.setText(paths);
}
示例4: createHTML5Application
import org.netbeans.jemmy.operators.JTextComponentOperator; //导入方法依赖的package包/类
protected void createHTML5Application(String projectName) {
NewProjectWizardOperator opNewProjectWizard = NewProjectWizardOperator.invoke();
opNewProjectWizard.selectCategory(HTML5_CATEGORY_NAME);
opNewProjectWizard.selectProject(HTML5_PROJECT_NAME);
opNewProjectWizard.next();
JDialogOperator jdNew = new JDialogOperator("New ");
JTextComponentOperator jtName = new JTextComponentOperator(jdNew, 0);
jtName.setText(projectName);
String sProjectPath = GetWorkDir() + File.separator + jtName.getText();
if (sProjectPath.contains(File.separator + File.separator)) {
sProjectPath = GetWorkDir() + jtName.getText();
}
JComboBoxOperator jcPath = new JComboBoxOperator(jdNew, 1);
int iSleeps = 0;
while (!jcPath.isEnabled()) {
if (60 <= ++iSleeps) {
fail("Project path disabled during too long time.");
}
evt.waitNoEvent(200);
}
evt.waitNoEvent(1000);
jcPath.getTextField().setText(sProjectPath);
opNewProjectWizard.finish();
waitScanFinished();
}
示例5: clearText
import org.netbeans.jemmy.operators.JTextComponentOperator; //导入方法依赖的package包/类
/** Clears the document */
protected final void clearText() {
col = 0;
JTextComponentOperator text = new JTextComponentOperator(editor);
text.setText("X"); //!!! because clearText is to slow.
text.clearText();
}