Package org.netbeans.jemmy.operators

Examples of org.netbeans.jemmy.operators.TextComponentOperator


    public void selectText(ComponentOperator oper, int startPosition, int finalPosition) {
  checkSupported(oper);
  int start = (startPosition < finalPosition) ? startPosition : finalPosition;
  int end   = (startPosition > finalPosition) ? startPosition : finalPosition;
  if(oper instanceof TextComponentOperator) {
      TextComponentOperator toper = ((TextComponentOperator)oper);
      toper.setSelectionStart(start);
      toper.setSelectionEnd(end);
  } else {
      JTextComponentOperator toper = ((JTextComponentOperator)oper);
      toper.setSelectionStart(start);
      toper.setSelectionEnd(end);
  }
    }
View Full Code Here


    public void selectText(ComponentOperator oper, int startPosition, int finalPosition) {
  checkSupported(oper);
  int start = (startPosition < finalPosition) ? startPosition : finalPosition;
  int end   = (startPosition > finalPosition) ? startPosition : finalPosition;
  if(oper instanceof TextComponentOperator) {
      TextComponentOperator toper = ((TextComponentOperator)oper);
      toper.setSelectionStart(start);
      toper.setSelectionEnd(end);
  } else {
      JTextComponentOperator toper = ((JTextComponentOperator)oper);
      toper.setSelectionStart(start);
      toper.setSelectionEnd(end);
  }
    }
View Full Code Here

TOP

Related Classes of org.netbeans.jemmy.operators.TextComponentOperator

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.