当前位置: 首页>>代码示例>>Java>>正文


Java JTextComponentOperator.setText方法代码示例

本文整理汇总了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);
    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:19,代码来源:GeneralCSSPrep.java

示例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);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:OpenBPELprojectTest.java

示例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);
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:OpenMobileProjectTest.java

示例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();

    }
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:35,代码来源:GeneralCSSPrep.java

示例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();
}
 
开发者ID:apache,项目名称:incubator-netbeans,代码行数:9,代码来源:CompletionJTest.java


注:本文中的org.netbeans.jemmy.operators.JTextComponentOperator.setText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。