Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.Action


     * @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


     * @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

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

     * Scrolls scrollbar to the position defined by a ScrollAdjuster implementation.
     * @param adj defines scrolling direction, and so on.
     * @throws TimeoutExpiredException
     */
    public void scrollTo(final ScrollAdjuster adj) {
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scroll(ScrollbarOperator.this, adj);
        return(null);
    }
    public String getDescription() {
View Full Code Here

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

     */
    public void scrollToMaximum() {
  output.printTrace("Scroll Scrollbar to maximum value\n" +
        toStringSource());
  output.printGolden("Scroll Scrollbar to maximum value");
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scrollToMaximum(ScrollbarOperator.this, getOrientation());
        return(null);
    }
    public String getDescription() {
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

     */

    public void scrollTo(final ScrollAdjuster adj) {

  produceTimeRestricted(new Action() {

    public Object launch(Object obj) {

        driver.scroll(ScrollPaneOperator.this, adj);

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.