Examples of JSliderOperator


Examples of org.netbeans.jemmy.operators.JSliderOperator

    public void scrollToMaximum(final ComponentOperator oper, int orientation) {
        ((JSliderOperator)oper).setValue(((JSliderOperator)oper).getMaximum());
    }

    protected void step(ComponentOperator oper, ScrollAdjuster adj) {
        JSliderOperator scroll = (JSliderOperator)oper;
        int newValue = -1;
        if(adj.getScrollDirection() == adj.DECREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() > scroll.getMinimum() +
      getUnitIncrement(scroll)) ?
    scroll.getValue() - getUnitIncrement(scroll) :
    scroll.getMinimum();
        } else if(adj.getScrollDirection() == adj.INCREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() < scroll.getMaximum() -
      getUnitIncrement(scroll)) ?
    scroll.getValue() + getUnitIncrement(scroll) :
    scroll.getMaximum();
        }
        setValue(oper, newValue);
    }
View Full Code Here

Examples of org.netbeans.jemmy.operators.JSliderOperator

        return(oper.getTimeouts().
               create("JSliderOperator.ScrollingDelta"));
    }

    protected void jump(final ComponentOperator oper, final ScrollAdjuster adj) {
        JSliderOperator scroll = (JSliderOperator)oper;
        int newValue = -1;
        if(adj.getScrollDirection() == adj.DECREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() > scroll.getMinimum() +
      getBlockIncrement(scroll)) ?
    scroll.getValue() - getBlockIncrement(scroll) :
    scroll.getMinimum();
        } else if(adj.getScrollDirection() == adj.INCREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() < scroll.getMaximum() -
      getBlockIncrement(scroll)) ?
    scroll.getValue() + getBlockIncrement(scroll) :
    scroll.getMaximum();
        }
        setValue(oper, newValue);
    }
View Full Code Here

Examples of org.netbeans.jemmy.operators.JSliderOperator

    public void scrollToMaximum(final ComponentOperator oper, int orientation) {
        ((JSliderOperator)oper).setValue(((JSliderOperator)oper).getMaximum());
    }

    protected void step(ComponentOperator oper, ScrollAdjuster adj) {
        JSliderOperator scroll = (JSliderOperator)oper;
        int newValue = -1;
        if(adj.getScrollDirection() == adj.DECREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() > scroll.getMinimum() +
      getUnitIncrement(scroll)) ?
    scroll.getValue() - getUnitIncrement(scroll) :
    scroll.getMinimum();
        } else if(adj.getScrollDirection() == adj.INCREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() < scroll.getMaximum() -
      getUnitIncrement(scroll)) ?
    scroll.getValue() + getUnitIncrement(scroll) :
    scroll.getMaximum();
        }
        setValue(oper, newValue);
    }
View Full Code Here

Examples of org.netbeans.jemmy.operators.JSliderOperator

        return(oper.getTimeouts().
               create("JSliderOperator.ScrollingDelta"));
    }

    protected void jump(final ComponentOperator oper, final ScrollAdjuster adj) {
        JSliderOperator scroll = (JSliderOperator)oper;
        int newValue = -1;
        if(adj.getScrollDirection() == adj.DECREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() > scroll.getMinimum() +
      getBlockIncrement(scroll)) ?
    scroll.getValue() - getBlockIncrement(scroll) :
    scroll.getMinimum();
        } else if(adj.getScrollDirection() == adj.INCREASE_SCROLL_DIRECTION) {
      newValue = (scroll.getValue() < scroll.getMaximum() -
      getBlockIncrement(scroll)) ?
    scroll.getValue() + getBlockIncrement(scroll) :
    scroll.getMaximum();
        }
        setValue(oper, newValue);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.