當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。