Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.Action


       Integer.toString(caretPosition) + " position " +
       "in text component\n    : " +
       toStringSource());
  output.printGolden("Typing text \"" + text + "\" in text component");
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.typeText(JTextComponentOperator.this, text, caretPosition);
        return(null);
    }
    public String getDescription() {
View Full Code Here


       Integer.toString(startPosition) + " to " +
       Integer.toString(finalPosition) +
       " in text component\n    : " +
       toStringSource());
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.selectText(JTextComponentOperator.this, startPosition, finalPosition);
        return(null);
    }
    public String getDescription() {
View Full Code Here

    public void clearText() {
  output.printLine("Clearing text in text component\n    : " +
       toStringSource());
  output.printGolden("Clearing text in text component");
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.clearText(JTextComponentOperator.this);
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * @param position Position to move caret to.
     *
     */
    public void changeCaretPosition(final int position) {
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.changeCaretPosition(TextComponentOperator.this, position);
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * @param finalPosition Final caret position
     *
     */
    public void selectText(final int startPosition, final int finalPosition) {
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.selectText(TextComponentOperator.this, startPosition, finalPosition);
        return(null);
    }
    public String getDescription() {
View Full Code Here

    public void clearText() {
  output.printLine("Clearing text in text component\n    : " +
       toStringSource());
  output.printGolden("Clearing text in text component");
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.clearText(TextComponentOperator.this);
        return(null);
    }
    public String getDescription() {
View Full Code Here

       Integer.toString(caretPosition) + " position " +
       "in text component\n    : " +
       toStringSource());
  output.printGolden("Typing text \"" + text + "\" in text component");
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.typeText(TextComponentOperator.this, text, caretPosition);
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * @param text New text value. Shouln't include final '\n'.
     *
     */
    public void enterText(final String text) {
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.enterText(TextComponentOperator.this, text);
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * @param choosers Array of choosers to find menuItems to push.
     * @return Last pushed JMenuItem.
     * @throws TimeoutExpiredException
     */
    public JMenuItem pushMenu(final ComponentChooser[] choosers) {
  return((JMenuItem)produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
                    //TDB 1.5 menu workaround
                    getQueueTool().waitEmpty();
                    Object result = driver.pushMenu(JMenuOperator.this, converChoosers(choosers));
                    getQueueTool().waitEmpty();
View Full Code Here

    /**
     * Scrolls to reach a condition specified by <code>ScrollAdjuster</code>
     * @param adj scrolling criteria.
     */
    public void scrollTo(final ScrollAdjuster adj) {
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scroll(JSpinnerOperator.this, adj);
        return(null);
    }
    public String getDescription() {
View Full Code Here

TOP

Related Classes of org.netbeans.jemmy.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.