Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.Action


     */

    public void scrollTo(final ScrollAdjuster adj) {

  produceTimeRestricted(new Action() {

    public Object launch(Object obj) {

        driver.scroll(ScrollPaneOperator.this, adj);

View Full Code Here


        toStringSource());

  output.printGolden("Scroll ScrollPane to top");

  produceTimeRestricted(new Action() {

    public Object launch(Object obj) {

        driver.scrollToMinimum(ScrollPaneOperator.this, Adjustable.VERTICAL);
View Full Code Here

        toStringSource());

  output.printGolden("Scroll ScrollPane to bottom");

  produceTimeRestricted(new Action() {

    public Object launch(Object obj) {

        driver.scrollToMaximum(ScrollPaneOperator.this, Adjustable.VERTICAL);
View Full Code Here

        toStringSource());

  output.printGolden("Scroll ScrollPane to left");

  produceTimeRestricted(new Action() {

    public Object launch(Object obj) {

        driver.scrollToMinimum(ScrollPaneOperator.this, Adjustable.HORIZONTAL);
View Full Code Here

        toStringSource());

  output.printGolden("Scroll ScrollPane to right");

  produceTimeRestricted(new Action() {

    public Object launch(Object obj) {

        driver.scrollToMaximum(ScrollPaneOperator.this, Adjustable.HORIZONTAL);
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(JPopupMenuOperator.this,
                                                    JMenuOperator.converChoosers(choosers));
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

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.