Package org.netbeans.jemmy.operators

Examples of org.netbeans.jemmy.operators.ContainerOperator


    public void scrollToMaximum(ComponentOperator oper, int orientation) {
  expandTo((JSplitPaneOperator)oper, 1);
    }

    private void moveDividerTo(JSplitPaneOperator oper, ScrollAdjuster adj) {
  ContainerOperator divOper = oper.getDivider();
  /* workaround */
  if(oper.getDividerLocation() == -1) {
      moveTo(oper, divOper, divOper.getCenterX() - 1, divOper.getCenterY() - 1);
      if(oper. getDividerLocation() == -1) {
    moveTo(oper, divOper, divOper.getCenterX() + 1, divOper.getCenterY() + 1);
      }
  }
  if(oper.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
      moveOnce(oper, divOper, adj, 0, oper.getWidth());
  } else {
View Full Code Here


      moveTo(oper, divOper, divOper.getCenterX(), divOper.getCenterY() + nextPosition);
  }
    }

    private void expandTo(JSplitPaneOperator oper, int index) {
  ContainerOperator divOper = oper.getDivider();
  JButtonOperator bo =
      new JButtonOperator((JButton)divOper.
        waitSubComponent(new JButtonOperator.
             JButtonFinder(ComponentSearcher.
                     getTrueChooser("JButton")),
             index));
  bo.copyEnvironment(divOper);
View Full Code Here

    public void scrollToMaximum(ComponentOperator oper, int orientation) {
  expandTo((JSplitPaneOperator)oper, 1);
    }

    private void moveDividerTo(JSplitPaneOperator oper, ScrollAdjuster adj) {
  ContainerOperator divOper = oper.getDivider();
  /* workaround */
  if(oper.getDividerLocation() == -1) {
      moveTo(oper, divOper, divOper.getCenterX() - 1, divOper.getCenterY() - 1);
      if(oper. getDividerLocation() == -1) {
    moveTo(oper, divOper, divOper.getCenterX() + 1, divOper.getCenterY() + 1);
      }
  }
  if(oper.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
      moveOnce(oper, divOper, adj, 0, oper.getWidth());
  } else {
View Full Code Here

      moveTo(oper, divOper, divOper.getCenterX(), divOper.getCenterY() + nextPosition);
  }
    }

    private void expandTo(JSplitPaneOperator oper, int index) {
  ContainerOperator divOper = oper.getDivider();
  JButtonOperator bo =
      new JButtonOperator((JButton)divOper.
        waitSubComponent(new JButtonOperator.
             JButtonFinder(ComponentSearcher.
                     getTrueChooser("JButton")),
             index));
  bo.copyEnvironment(divOper);
View Full Code Here

TOP

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

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.