IBM Rational Functional Tester
Version 6.1
IBM Rational Functional Tester API Reference

Project Version 2.0

com.rational.test.ft.object.interfaces
Class ToggleTestObject

java.lang.Object
  extended bycom.rational.test.ft.object.interfaces.TestObject
      extended bycom.rational.test.ft.object.interfaces.GuiTestObject
          extended bycom.rational.test.ft.object.interfaces.ToggleTestObject
All Implemented Interfaces:
IGraphical, IToggle
Direct Known Subclasses:
ToggleGUITestObject

public class ToggleTestObject
extends GuiTestObject
implements IToggle

Serves as the base TestObject implementation of the IToggle interface.

Since:
RFT1.0

Constructor Summary
ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
          For internal use.
ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor)
          For internal use.
ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
          For internal use.
ToggleTestObject(TestObject obj)
          Constructs one ToggleTestObject from another TestObject.
ToggleTestObject(com.rational.test.ft.object.TestObjectReference ref)
          For internal use.
 
Method Summary
 void deselect()
          Sets the state of the associated object to NOT_SELECTED.
 State getState()
          Returns the state of the associated object.
 void indeterminate()
          Sets the state of the associated object to INDETERMINATE.
 void select()
          Sets the state of the associated object to STATE_SELECTED.
 void setState(State state)
          Sets the state of the associated object.
 
Methods inherited from class com.rational.test.ft.object.interfaces.GuiTestObject
click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getChildAtPoint, getClippedScreenRectangle, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint
 
Methods inherited from class com.rational.test.ft.object.interfaces.TestObject
equals, exists, find, find, find, findAndInvoke, findAndInvoke, findAndInvokeProxy, getChildren, getDescribedObject, getDescribedObjects, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getProperty, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTestDataTypes, getTopMappableParent, getTopParent, invoke, invoke, invokeProxy, invokeProxy, isMappedObject, isSameObject, setIndexer, setIndexer, setProperty, toString, unregister, updateTestData, waitForExistence, waitForExistence
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ToggleTestObject

public ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use.

Since:
RFT1.0

ToggleTestObject

public ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                        TestObject anchor)
For internal use.

Since:
RFT1.0

ToggleTestObject

public ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
                        TestObject anchor,
                        long scriptCommandFlags)
For internal use.

Since:
RFT1.0

ToggleTestObject

public ToggleTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use.

Since:
RFT1.0

ToggleTestObject

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

Since:
RFT1.0
Method Detail

setState

public void setState(State state)
Sets the state of the associated object.

Specified by:
setState in interface IToggle
Parameters:
state - one of the State values
Since:
RFT1.0
See Also:
State

getState

public State getState()
Returns the state of the associated object.

Specified by:
getState in interface IToggle
Returns:
one of the State values
Since:
RFT1.0
See Also:
State

select

public void select()
Sets the state of the associated object to STATE_SELECTED. The UnableToPerformActionException exception is thrown if this action cannot be performed.

Specified by:
select in interface IToggle
Since:
RFT1.0

deselect

public void deselect()
Sets the state of the associated object to NOT_SELECTED. The UnableToPerformActionException exception is thrown if this action cannot be performed.

Specified by:
deselect in interface IToggle
Since:
RFT1.0

indeterminate

public void indeterminate()
Sets the state of the associated object to INDETERMINATE. The UnableToPerformActionException exception is thrown if this action cannot be performed.

Specified by:
indeterminate in interface IToggle
Since:
RFT1.0