Package org.jemmy.action

Examples of org.jemmy.action.Action


    public void to(double value) {
        scroll.to(value);
    }

    public void to(final Direction condition) {
        wrap.getEnvironment().getExecutor().execute(wrap.getEnvironment(), false, new Action() {

            @Override
            public void run(Object... parameters) {
                int toOrig;
                int dragAttempt = 0;
View Full Code Here


    public void to(final double value) {
        to(new DirectionToPosition(caretOwner, value));
    }

    public void to(final Caret.Direction direction) {
        wrap.getEnvironment().getExecutor().execute(wrap.getEnvironment(), false, new Action() {

            @Override
            public void run(Object... parameters) {
                if (direction.to() == 0) {
                    return;
View Full Code Here

     * Types text into the control. Wrap may implement Focusable.
     * @see Focusable
     * @param newText
     */
    public void type(final String newText) {
        target.getEnvironment().getExecutor().execute(target.getEnvironment(), false, new Action() {

            public void run(Object... parameters) {
                if (target.is(Focusable.class)) {
                    target.as(Focusable.class).focuser().focus();
                }
View Full Code Here

     * Clears text by pressing End and then Delete and Backspace until the text
     * is cleared.
     */
    public void clear() {
        target.getEnvironment().getExecutor().execute(target.getEnvironment(),
                false, new Action() {

            public void run(Object... parameters) {
                if (target.is(Focusable.class)) {
                    target.as(Focusable.class).focuser().focus();
                }
View Full Code Here

     * @param button
     * @param modifiers
     */
    public void dnd(Point pointParam, final Wrap target, final Point targetPoint, final int button, final int modifiers) {
        final Point point = pointParam == null ? source.getClickPoint() : pointParam;
        source.getEnvironment().getExecutor().execute(target.getEnvironment(), false, new Action() {
            public void run(Object... parameters) {
                if(source.is(Showable.class)) ((Showable)source.as(Showable.class)).shower().show();
                source.mouse().move(point);
                source.mouse().press(map.convertMouseButton(button), map.convertModifiers(modifiers));
                source.getEnvironment().getTimeout(BEFORE_DRAG_TIMEOUT.getName()).sleep();
View Full Code Here

     *
     * @param button
     * @param modifiers
     */
    public void press(final int button, final int modifiers) {
        runAction(new Action() {

            public void run(Object... parameters) {
                robotDriver.pressMouse(button, modifiers);
            }

View Full Code Here

     *
     * @param button
     * @param modifiers
     */
    public void release(final int button, final int modifiers) {
        runAction(new Action() {

            public void run(Object... parameters) {
                robotDriver.releaseMouse(button, modifiers);
            }

View Full Code Here

    /**
     *
     * @param p
     */
    public void move(final Point p) {
        runAction(new Action() {

            public void run(Object... parameters) {
                robotDriver.moveMouse(getAbsolute(target, p));
            }

View Full Code Here

     * Wrap.getClickPoint()} method is invoked to get the point to click.
     * @param button
     * @param modifiers
     */
    public void click(final int count, final Point p, final int button, final int modifiers) {
        runAction(new Action() {

            public void run(Object... parameters) {
                if (target.is(Showable.class)) {
                    target.as(Showable.class).shower().show();
                }
View Full Code Here

    public void click(int count, Point p, MouseButton button, Modifier... modifiers) {
        click(count, p, awtMap.convert(button), awtMap.convert(modifiers));
    }

    private void turn(final Point p, final int amount, final int modifiers) {
        runAction(new Action() {

            public void run(Object... parameters) {
                if (target.is(Showable.class)) {
                    target.as(Showable.class).shower().show();
                }
View Full Code Here

TOP

Related Classes of org.jemmy.action.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.