/** Moves the divider all the way to the right/bottom. */
  public void moveToMaximum() {
    output.printTrace("Scroll JSplitPane to maximum. JSplitPane :    \n" + toStringSource());
    output.printGolden("Scroll JSplitPane to maximum.");
    produceTimeRestricted(
        new Action<Void, Void>() {
          @Override
          public Void launch(Void obj) {
            driver.scrollToMaximum(JSplitPaneOperator.this, getOrientation());
            return null;
          }

          @Override
          public String getDescription() {
            return "Scrolling";
          }

          @Override
          public String toString() {
            return "JSplitPaneOperator.moveToMaximum.Action{description = "
                + getDescription()
                + '}';
          }
        },
        "JSplitPaneOperator.WholeScrollTimeout");
  }
 /**
  * Changes divider location.
  *
  * @param dividerLocation location to move divider to.
  */
 public void moveDivider(int dividerLocation) {
   output.printTrace(
       "Move JSplitPane divider to "
           + Integer.toString(dividerLocation)
           + " location. JSplitPane :    \n"
           + toStringSource());
   output.printGolden(
       "Move JSplitPane divider to " + Integer.toString(dividerLocation) + " location");
   scrollTo(new ValueScrollAdjuster(dividerLocation));
 }
 /**
  * Pushes one time left(top) expand button.
  *
  * @throws TimeoutExpiredException
  */
 public void expandLeft() {
   String mess = "Expand ";
   if (getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
     mess = mess + "left";
   } else {
     mess = mess + "top";
   }
   output.printTrace(mess + " JSplitPane side. JSplitPane :    \n" + toStringSource());
   output.printGolden(mess + " JSplitPane side.");
   expandTo(1);
 }
 /**
  * Changes divider location.
  *
  * @param proportionalLocation Proportional location. Should be great then 0 and less then 1.
  */
 public void moveDivider(double proportionalLocation) {
   output.printTrace(
       "Move JSplitPane divider to "
           + Double.toString(proportionalLocation)
           + " proportional location. JSplitPane :    \n"
           + toStringSource());
   output.printGolden(
       "Move JSplitPane divider to "
           + Double.toString(proportionalLocation)
           + " proportional location");
   scrollTo(
       new ValueScrollAdjuster(
           getMinimumDividerLocation()
               + (int)
                   (proportionalLocation
                       * (getMaximumDividerLocation() - getMinimumDividerLocation()))));
 }