Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.Action


     * 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() {
    public Object launch(Object obj) {
        driver.scrollToMaximum(JSplitPaneOperator.this, getOrientation());
        return(null);
    }
    public String getDescription() {
View Full Code Here


     * @param adj defines scrolling direction, and so on.
     * @throws TimeoutExpiredException
     */
    public void scrollTo(final ScrollAdjuster adj) {
  initOperators();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scroll(JScrollBarOperator.this, adj);
        return(null);
    }
    public String getDescription() {
View Full Code Here

    public void scrollToMinimum() {
  output.printTrace("Scroll JScrollBar to minimum value\n" +
        toStringSource());
  output.printGolden("Scroll JScrollBar to minimum value");
  initOperators();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scrollToMinimum(JScrollBarOperator.this, getOrientation());
        return(null);
    }
    public String getDescription() {
View Full Code Here

    public void scrollToMaximum() {
  output.printTrace("Scroll JScrollBar to maximum value\n" +
        toStringSource());
  output.printGolden("Scroll JScrollBar to maximum value");
  initOperators();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scrollToMaximum(JScrollBarOperator.this, getOrientation());
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * @return Last pushed JMenuItem.
     * @throws TimeoutExpiredException
     */
    public JMenuItem pushMenu(final ComponentChooser[] choosers) {
        makeComponentVisible();
  return((JMenuItem)produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
                    //TDB 1.5 menu workaround
                    getQueueTool().waitEmpty();
                    Object result = driver.pushMenu(JMenuBarOperator.this,
                                                    JMenuOperator.converChoosers(choosers));
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

    /**
     * Scrolls to maximum value.
     * @throws SpinnerModelException if an operator's model does not have a maximum value.
     */
    public void scrollToMaximum() {
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scrollToMaximum(JSpinnerOperator.this, SwingConstants.VERTICAL);
        return(null);
    }
    public String getDescription() {
View Full Code Here

    /**
     * Scrolls to minimum value.
     * @throws SpinnerModelException if an operator's model does not have a minimum value.
     */
    public void scrollToMinimum() {
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scrollToMinimum(JSpinnerOperator.this, SwingConstants.VERTICAL);
        return(null);
    }
    public String getDescription() {
View Full Code Here

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

     * @throws TimeoutExpiredException
     */
    public void changeCaretPosition(final int position) {
  output.printLine("Change caret position to " + Integer.toString(position));
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.changeCaretPosition(JTextComponentOperator.this, position);
        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.