Package org.jemmy.interfaces.Caret

Examples of org.jemmy.interfaces.Caret.Direction


//        Caret c = tableViewWrap.as(Scroll.class).caret();
        CaretOwner scroller = (CaretOwner) tableViewWrap.as(Parent.class, Node.class).
                lookup(ScrollBar.class).as(CaretOwner.class);
        Caret c = scroller.caret();

        Direction direction = new Direction() {

            /**
             * @return < 0 to scroll toward decreasing value, > 0 - vice versa
             * 0 to stop scrolling
             * NOTE - see implementation KnobDragScrollerImpl.to(Direction) which is used in ScrollBarWrap
View Full Code Here


    }

    @Override
    public void show() {
        System.out.println("Showing " + getControl().getValue());
        treeViewWrap.as(Scroll.class).caret().to(new Direction() {

            public int to() {
                final int[] minmax = new int[]{treeViewWrap.getStates().size(), -1};
                treeViewWrap.as(Parent.class, Node.class).lookup(TreeCell.class,
                        new LookupCriteria<TreeCell>() {
View Full Code Here

        Wrap<? extends ScrollBar> scr =listViewWrap.as(Parent.class, Node.class).
                lookup(ScrollBar.class, new ScrollBarWrap.ByOrientationScrollBar(true)).
                wrap();
        Caret c = scr.as(Scroll.class).caret();

        Direction direction = new Direction() {

            /**
             * @return < 0 to scroll toward decreasing value, > 0 - vice versa
             * 0 to stop scrolling
             * NOTE - see implementation KnobDragScrollerImpl.to(Direction) which is used in ScrollBarWrap
View Full Code Here

TOP

Related Classes of org.jemmy.interfaces.Caret.Direction

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.