HCL OneTest UI
Version 9.1.0
HCL OneTest UI Proxy SDK Reference

Project Version 2.3
com.rational.test.ft.domain.java.swt

Class SashProxy

    • Constructor Detail

      • SashProxy

        public SashProxy(java.lang.Object theObjectInTheSUT)
        This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. All interactions with the supplied object are performed through this class.
    • Method Detail

      • setState

        public void setState(com.rational.test.ft.script.Action action)
        This method performs a specific action against the JSplitPane.
        Parameters:
        action - The action that should be performed.
      • setState

        public void setState(com.rational.test.ft.script.Action action,
                    Subitem item)
        This method performs a specific action against the subitem at a specified index.
        Parameters:
        item - The item to act upon.
        action - The action that should be performed.
      • setState

        public void setState(com.rational.test.ft.script.Action action,
                    Subitem start,
                    Subitem end)
        This method performs a specific action against the subitem range defined by the specified indices.
        Parameters:
        start - The first item to act upon.
        end - The last item to act upon.
        action - The action that should be performed.
      • processSingleMouseEvent

        public void processSingleMouseEvent(IMouseActionInfo action)
        Return a MethodSpecification for the specified mouse event. This is the primary record interface for mouse events against a particular control.
        Overrides:
        processSingleMouseEvent in class JavaGuiProxy
        Parameters:
        action - The event cache and other mouse state information for this mouse action.
      • getScreenRectangle

        public java.awt.Rectangle getScreenRectangle(Subitem subitem)
        Returns the rectangle that contains the component being evaluated relative to the top left corner of the screen. This will commonly be two operations (getScreenRectangle for the parent object and then adjusting for the specified subitem) combined into a single operation. The rectangle is exposed so that actions may be directly scripted against a visible subitem. null is returned if the subitem is not showing.
        Returns:
        The adjusted rectangle surrounding subitem relative to the screen. null is returned if the subitem is not showing.
      • getScreenPoint

        public java.awt.Point getScreenPoint(Subitem item)
        Returns the screen relative point to the center of the supplied subitem.
        Overrides:
        getScreenPoint in class JavaGuiProxy
        Parameters:
        subitem - The subitem the resultant screen point is relative to.
        Returns:
        A screen relative point.
      • getScreenPoint

        public java.awt.Point getScreenPoint(Subitem subitem,
                                    java.awt.Point pt)
        Returns the screen relative point given a subitem and a subitem relative point.
        Parameters:
        subitem - The subitem the resultant screen point is relative to.
        pt - The subitem relative point.
        Returns:
        A screen relative point.
      • getSubitem

        public java.lang.Object getSubitem(Subitem subitem)
        Returns an object that represents the specified subitem in the associated test object. SubitemNotFoundException will be thrown if the specified subitem is invalid relative to the associated test object. null may be returned if the subitem does not have an object association that can be returned.
        Parameters:
        subitem - The subitem to fetch an object for.
        Returns:
        An object representation of the subitem.
      • click

        public void click(Subitem subitem)
        Left mouse click on the center point of the associated subitem. This method is a simple shortcut to the click method with a modifier parameter (modifier set to MOUSE_LEFT).
        Overrides:
        click in class JavaGuiProxy
      • click

        public void click(MouseModifiers modifiers,
                 Subitem subitem)
        Perform a mouse click action at the specified object relative coordinates within the associated TestObject.
        Overrides:
        click in class JavaGuiProxy
      • click

        public void click(Subitem subitem,
                 java.awt.Point pt)
        Left mouse click on the specified coordinates relative to the associated TestObject. This method is a simple shortcut to the click method with a modifier parameter and coordinates (modifier set to MOUSE_LEFT).
        Overrides:
        click in class JavaGuiProxy
      • click

        public void click(MouseModifiers modifiers,
                 Subitem subitem,
                 java.awt.Point pt)
        Perform a mouse click action on the specified coordinates relative to the associated TestObject.
      • doubleClick

        public void doubleClick(Subitem subitem)
        Left mouse dbl-click on the center point of the associated TestObject. This method is a simple shortcut to the dbl-click method with a modifier parameter (modifier set to MOUSE_LEFT).
        Overrides:
        doubleClick in class JavaGuiProxy
      • doubleClick

        public void doubleClick(MouseModifiers modifiers,
                       Subitem subitem)
        Perform a mouse dbl-click action at the specified object relative coordinates within the associated TestObject.
        Overrides:
        doubleClick in class JavaGuiProxy
      • doubleClick

        public void doubleClick(Subitem subitem,
                       java.awt.Point pt)
        Left mouse dbl-click on the specified coordinates relative to the associated TestObject. This method is a simple shortcut to the dbl-click method with a modifier parameter and coordinates (modifier set to MOUSE_LEFT).
        Overrides:
        doubleClick in class JavaGuiProxy
      • doubleClick

        public void doubleClick(MouseModifiers modifiers,
                       Subitem subitem,
                       java.awt.Point pt)
        Perform a mouse dbl-click action on the specified coordinates relative to the associated TestObject.
      • nClick

        public void nClick(int clickCount,
                  MouseModifiers modifiers,
                  Subitem subitem,
                  java.awt.Point pt)
        Perform a mouse n-click action on the specified coordinates relative to the associated TestObject.
      • drag

        public void drag(Subitem subitem)
        Perform a MOUSE_LEFT drag action against the associated TestObject. This method is used to simulate drag actions against controls that are typically not sensitive to drag actions.
        Overrides:
        drag in class JavaGuiProxy
      • drag

        public void drag(MouseModifiers modifiers,
                Subitem subitem)
        Perform a drag action against the associated TestObject with the supplied set of mouse modifiers. This method is used to simulate drag actions against controls that are typically not sensitive to drag actions.
        Overrides:
        drag in class JavaGuiProxy
      • drag

        public void drag(Subitem subitem1,
                Subitem subitem2)
        Perform a MOUSE_LEFT drag action against the associated TestObject. The action is performed from (x1, y1) to (x2, y2) coordinates relative to this TestObject.
        Overrides:
        drag in class JavaGuiProxy
      • drag

        public void drag(MouseModifiers modifiers,
                Subitem subitem1,
                Subitem subitem2)
        Perform a drag action against the associated TestObject. The action is performed from (x1, y1) to (x2, y2) coordinates relative to this TestObject.
        Overrides:
        drag in class JavaGuiProxy
      • drag

        public void drag(Subitem subitem1,
                java.awt.Point pt1,
                Subitem subitem2,
                java.awt.Point pt2)
        Perform a MOUSE_LEFT drag action against the associated TestObject. The action is performed from (x1, y1) to (x2, y2) coordinates relative to this TestObject.
      • drag

        public void drag(MouseModifiers modifiers,
                Subitem subitem1,
                java.awt.Point pt1,
                Subitem subitem2,
                java.awt.Point pt2)
        Perform a drag action against the associated TestObject. The action is performed from (x1, y1) to (x2, y2) coordinates relative to this TestObject.
      • nClickDrag

        public void nClickDrag(int clickCount,
                      MouseModifiers modifiers,
                      Subitem subitem1,
                      Subitem subitem2)
        Perform a mouse n-click drag action on the specified coordinates relative to the associated TestObject.
        Overrides:
        nClickDrag in class JavaGuiProxy
      • nClickDrag

        public void nClickDrag(int clickCount,
                      MouseModifiers modifiers,
                      Subitem subitem1,
                      java.awt.Point pt1,
                      Subitem subitem2,
                      java.awt.Point pt2)
        Perform a mouse n-click drag action on the specified coordinates relative to the associated TestObject.
      • dragToScreenPoint

        public void dragToScreenPoint(Subitem subitem,
                             java.awt.Point screenPt)
        Perform a MOUSE_LEFT drag action against the associated TestObject. The action is performed from (x, y) relative to this TestObject to the screen relative screenPt coordinates.
        Overrides:
        dragToScreenPoint in class JavaGuiProxy
      • dragToScreenPoint

        public void dragToScreenPoint(MouseModifiers modifiers,
                             Subitem subitem,
                             java.awt.Point screenPt)
        Perform a drag action against the associated TestObject. The action is performed from (x, y) relative to this TestObject to the screen relative screenPt coordinates.
        Overrides:
        dragToScreenPoint in class JavaGuiProxy
      • dragToScreenPoint

        public void dragToScreenPoint(Subitem subitem,
                             java.awt.Point subitemPt,
                             java.awt.Point screenPt)
        Perform a MOUSE_LEFT drag action against the associated TestObject. The action is performed from (x, y) relative to this TestObject to the screen relative screenPt coordinates.
        Overrides:
        dragToScreenPoint in class JavaGuiProxy
      • dragToScreenPoint

        public void dragToScreenPoint(MouseModifiers modifiers,
                             Subitem subitem,
                             java.awt.Point subitemPt,
                             java.awt.Point screenPt)
        Perform a drag action against the associated TestObject. The action is performed from (x, y) relative to this TestObject to the screen relative screenPt coordinates.
      • nClickDragToScreenPoint

        public void nClickDragToScreenPoint(int clickCount,
                                   MouseModifiers modifiers,
                                   Subitem subitem,
                                   java.awt.Point screenPt)
        Perform a mouse n-click drag action on the specified coordinates relative the screen relative screenPt coordinates.
        Overrides:
        nClickDragToScreenPoint in class JavaGuiProxy
      • nClickDragToScreenPoint

        public void nClickDragToScreenPoint(int clickCount,
                                   MouseModifiers modifiers,
                                   Subitem subitem,
                                   java.awt.Point subitemPt,
                                   java.awt.Point screenPt)
        Perform a mouse n-click drag action on the specified coordinates relative the screen relative screenPt coordinates.
      • mouseMove

        public void mouseMove(Subitem subitem)
        Perform a MOUSE_LEFT move action against the associated TestObject. The action is performed from current mouse coordinates to (x, y) coordinates relative to this TestObject.
        Overrides:
        mouseMove in class JavaGuiProxy
      • mouseMove

        public void mouseMove(Subitem subitem,
                     java.awt.Point subitemPt)
        Perform a MOUSE_LEFT move action against the associated TestObject. The action is performed from current mouse coordinates to (x, y) coordinates relative to this TestObject.
        Overrides:
        mouseMove in class JavaGuiProxy
      • mouseMove

        public void mouseMove(MouseModifiers modifiers,
                     Subitem subitem)
        Perform a move action against the associated TestObject. The action is performed from current mouse coordinates to (x, y) coordinates relative to this TestObject.
        Overrides:
        mouseMove in class JavaGuiProxy
      • mouseMove

        public void mouseMove(MouseModifiers modifiers,
                     Subitem subitem,
                     java.awt.Point pt)
        Perform a move action against the associated TestObject. The action is performed from current mouse coordinates to (x, y) coordinates relative to this TestObject.
      • hover

        public void hover(double secondDelay,
                 Subitem subitem)
        Hover the mouse over the center of the specified subitem. The mouse is moved to the center of the subitem and stays there for at least the specified number of seconds.
        Overrides:
        hover in class JavaGuiProxy
      • hover

        public void hover(double secondDelay,
                 Subitem subitem,
                 java.awt.Point pt)
        Hover the mouse over the specified coordinates relative to the specified subitem. The mouse is moved to the subitem relative coordinates and stays there for at least the specified number of seconds.
      • hover

        public void hover(Subitem subitem)
        Hover the mouse over the center of the specified subitem. The mouse is moved to the center of the subitem and stays there for at least the default amount of time.
        Overrides:
        hover in class JavaGuiProxy
      • hover

        public void hover(Subitem subitem,
                 java.awt.Point pt)
        Hover the mouse over the specified coordinates relative to the specified subitem. The mouse is moved to the subitem relative coordinates and stays there for at least the default amount of time.
        Overrides:
        hover in class JavaGuiProxy