com.rational.test.ft.object.interfaces

Class TextSelectGuiSubitemTestObject

    • Constructor Detail

      • TextSelectGuiSubitemTestObject

        public TextSelectGuiSubitemTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
        For internal use.
        Since:
        RFT2.0
      • TextSelectGuiSubitemTestObject

        public TextSelectGuiSubitemTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                              TestObject anchor)
        For internal use.
        Since:
        RFT2.0
      • TextSelectGuiSubitemTestObject

        public TextSelectGuiSubitemTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                                              TestObject anchor,
                                              long scriptCommandFlags)
        For internal use.
        Since:
        RFT2.0
      • TextSelectGuiSubitemTestObject

        public TextSelectGuiSubitemTestObject(com.rational.test.ft.object.TestObjectReference ref)
        For internal use.
        Since:
        RFT2.0
      • TextSelectGuiSubitemTestObject

        public TextSelectGuiSubitemTestObject(TestObject obj)
        Constructs one GuiSubitemTestObject from another TestObject. Both are references to the same object.

        Since:
        RFT2.0
    • Method Detail

      • getSelectedText

        public java.lang.String getSelectedText()
        Description copied from interface: ISelect
        Allows direct access to the selected text property on the control.
        Specified by:
        getSelectedText in interface ISelect
        Returns:
        The selected text in the control
      • getText

        public java.lang.String getText()
        Description copied from interface: IText
        Allows direct access to the text property on the control.
        Specified by:
        getText in interface ISelect
        Specified by:
        getText in interface IText
        Returns:
        java.lang.String - this will give you the text value associated with the text property of the component if exists otherwise null
      • select

        public void select(java.lang.String item)
        Description copied from interface: ISelect
        Directly modifies subitem selected in the control. If the specified text is not in the controls list of elements, a SubitemNotFoundException is thrown.
        Specified by:
        select in interface ISelect
        Parameters:
        item - the item to update the control with
        See Also:
        ISelect.select(int)
      • select

        public void select(int index)
        Description copied from interface: ISelect
        Directly modifies subitem selected in the control. If the specified index is not valid for the active list of elements in the control, a SubitemNotFoundException is thrown.
        Specified by:
        select in interface ISelect
        Parameters:
        index - the index of the item to update the control with
        See Also:
        ISelect.select(String)
      • setText

        public void setText(java.lang.String text)
        Description copied from interface: IText
        Directly modifies the text on the control.
        Specified by:
        setText in interface IText
        Parameters:
        text - The text to update the property text of the component