|
IBM Rational Functional Tester Version 8.1.1000 IBM Rational Functional Tester Proxy SDK Reference Project Version 2.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rational.test.ft.sys.RegisteredObject com.rational.test.ft.domain.ProxyTestObject com.rational.test.ft.domain.java.JavaProxy com.rational.test.ft.domain.java.JavaGuiProxy com.rational.test.ft.domain.java.awt.ComponentProxy com.rational.test.ft.domain.java.jfc.JComponentProxy com.rational.test.ft.domain.java.jfc.AbstractButtonProxy
public class AbstractButtonProxy
Proxy class for javax.swing.AbstractButton
.
ToggleGUITestObject
Type | Desciption | Data Class |
---|---|---|
text | Button Visible Text | ITestDataText |
state | Toggle Button State | ITestData |
Property | Usage |
---|---|
.class | The Java full class name of the test object. |
.classIndex | The zero-based index of the class relative to the immediate parent in the object map. |
.priorLabel | The text of a preceding label. Suppressed if there is no preceding label. |
accessibleContext.accessibleName | A programmatically defined name for the component. |
name | The name property, suppressed if default formatted (default form = className+count). |
text | The visible text of the button. If there is no visible text this property is omitted. |
toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
ComponentProxy.ChildEnumerator, ComponentProxy.ImmediateChildEnumerator |
Field Summary |
---|
Fields inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy |
---|
TAB_INDEX, TAB_TEXT |
Fields inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHT |
Fields inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindow |
Fields inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
debug, uniqueId |
Fields inherited from class com.rational.test.ft.sys.RegisteredObject |
---|
theTestObject |
Fields inherited from interface com.rational.test.ft.domain.IDataDriven |
---|
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS |
Constructor Summary | |
---|---|
AbstractButtonProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. |
Method Summary | |
---|---|
void |
clickToState(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.State state)
This method performs the necessary mouse actions to attain the desired state for the associated component. |
void |
clickToState(com.rational.test.ft.script.State state)
This method performs the necessary mouse actions to attain the desired state for the associated component. |
void |
deselect()
This method sets the state of the associated object to NOT_SELECTED. |
void |
dragToState(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.State state)
This method performs the necessary mouse actions to attain the desired state for the associated component. |
void |
dragToState(com.rational.test.ft.script.State state)
This method performs the necessary mouse actions to attain the desired state for the associated component. |
com.rational.test.ft.sys.MethodSpecification[] |
getDataDrivableCommands(int includeChildren)
Walks the proxy parent-child hierarchy and returns a command for each control that is data drivable. |
com.rational.test.ft.script.Property[] |
getDataDrivenRecognitionProperties(java.util.Hashtable radiobuttonGroups)
Return a limited set of properties that can be used to identify all radiobuttons in the group. |
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI object in a script. |
protected java.lang.String |
getIconDescription()
Returns the Text for the icon on the label object. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property. |
java.lang.Object |
getRadioButtonGroup()
Return access to the radio button group object. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_BUTTON . |
com.rational.test.ft.script.State |
getState()
This method returns the state of the associated object. |
com.rational.test.ft.vp.ITestData |
getTestData(java.lang.String testDataType)
This method constructs the specified verification data object. |
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification point data available with the associated object in the SUT. |
java.lang.String |
getTestObjectClassName()
Return the test object. |
java.lang.String |
getText()
Returns the Text on the object. |
java.lang.String |
getVariableDataDrivenRecognitionProperty(com.rational.test.ft.script.Property[] properties)
Only one recognition property will be data driven by default, this method specifies that property. |
boolean |
hasSpecialFrameState()
|
void |
indeterminate()
This method sets the state of the associated object to INDETERMINATE. |
boolean |
isRadioSelected()
Specifies if the radiobutton is currently selected. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
void |
select()
This method sets the state of the associated object to SELECTED. |
void |
setState(com.rational.test.ft.script.State state)
Set the state of the associated object to the specified state. |
boolean |
shouldBeMapped()
Returns false when it is the scroll button in JScrollBar. |
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
This method updates the supplied test data object and returns it. |
Methods inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy |
---|
getBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isPointInObject, isType, scrollRectToVisible |
Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
---|
canBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParent |
Methods inherited from class com.rational.test.ft.domain.java.JavaGuiProxy |
---|
activateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getMethodSpecForPoint, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow |
Methods inherited from class com.rational.test.ft.domain.java.JavaProxy |
---|
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setProperty |
Methods inherited from class com.rational.test.ft.sys.RegisteredObject |
---|
addProxyReference, dereference, getObject, getRegisteredId, getTransactionId, isReferenced, isReleaseRequired, register, registerTransiently, release, toString, unregister |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractButtonProxy(java.lang.Object theObjectInTheSUT)
Method Detail |
---|
public java.lang.String getTestObjectClassName()
getTestObjectClassName
in interface IProxyBase
getTestObjectClassName
in class JavaGuiProxy
public boolean shouldBeMapped()
shouldBeMapped
in class JavaGuiProxy
public java.lang.Object getProperty(java.lang.String propertyName)
getProperty
in class JComponentProxy
propertyName
- The name of the property to fetch.
ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
public java.lang.String getDescriptiveName()
getDescriptiveName
in class JComponentProxy
public java.lang.String getRole()
TestObjectRole.ROLE_BUTTON
.
getRole
in class JComponentProxy
public java.lang.String getText()
protected java.lang.String getIconDescription()
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class JavaGuiProxy
action
- The event cache and other mouse state information
for this mouse action.public void clickToState(com.rational.test.ft.script.State state)
clickToState
in interface com.rational.test.ft.object.interfaces.IToggleGUI
state
- The desired target state for the associated
component.public void clickToState(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.State state)
clickToState
in interface com.rational.test.ft.object.interfaces.IToggleGUI
modifiers
- The mouse modifiers to be used to attain the
desired state.state
- The desired target state for the associated
component.public void dragToState(com.rational.test.ft.script.State state)
dragToState
in interface com.rational.test.ft.object.interfaces.IToggleGUI
state
- The desired target state for the associated
component.public void dragToState(com.rational.test.ft.script.MouseModifiers modifiers, com.rational.test.ft.script.State state)
dragToState
in interface com.rational.test.ft.object.interfaces.IToggleGUI
modifiers
- The mouse modifiers to be used to attain the
desired state.state
- The desired target state for the associated
component.public void setState(com.rational.test.ft.script.State state)
setState
in interface com.rational.test.ft.object.interfaces.IToggle
State
public com.rational.test.ft.script.State getState()
getState
in interface com.rational.test.ft.object.interfaces.IToggle
State
literals.State
public void select()
UnableToPerformActionException
exception will be thrown if
this action can not be performed.
select
in interface com.rational.test.ft.object.interfaces.IToggle
public void deselect()
UnableToPerformActionException
exception will be thrown if
this action can not be performed.
deselect
in interface com.rational.test.ft.object.interfaces.IToggle
public void indeterminate()
UnableToPerformActionException
exception will be thrown if
this action can not be performed.
indeterminate
in interface com.rational.test.ft.object.interfaces.IToggle
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class JavaProxy
getTestData(String)
,
ITestData
public com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes
.
getTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.
getTestDataTypes()
,
ITestData
public com.rational.test.ft.vp.ITestData updateTestData(java.lang.String testDataType, com.rational.test.ft.vp.ITestData testData)
getTestDataTypes
.
The testData is a previously supplied ITestData
object that needs to be updated to reflect the current state of the associated test object.
updateTestData
in class ProxyTestObject
testDataType
- A test data type supplied by
getTestDataTypes
.testData
- The test data base object that requires
updating.
getTestDataTypes()
,
ITestData
public boolean hasSpecialFrameState()
hasSpecialFrameState
in class ProxyTestObject
public com.rational.test.ft.sys.MethodSpecification[] getDataDrivableCommands(int includeChildren)
ProxyTestObject
null
.
The reason that the proxies are left with doing the walk instead of it happening at a higher level is because they have a better understanding of the hierarchy they expose. Domains like HTML can take advantage of internal knowledge to allow them better control the traversal of interesting child proxies relative to data driving. By default this method will perform a standard traversal of the proxy hierarchy and does not need to be overridden unless necessary.
getDataDrivableCommands
in interface IDataDriven
getDataDrivableCommands
in class ProxyTestObject
includeChildren
- Flag to control which child objects are considered for data driving. Must be IDataDriven.INCLUDE_JUSTOBJECT
, IDataDriven.INCLUDE_SIBLINGS
or IDataDriven.INCLUDE_ALL
.
ProxyTestObject.getDataDrivableCommand()
public com.rational.test.ft.script.Property[] getDataDrivenRecognitionProperties(java.util.Hashtable radiobuttonGroups)
IRadioButtonProxy
getDataDrivenRecognitionProperties
in interface IRadioButtonProxy
radiobuttonGroups
- The set of radiobutton groups available from the same parent. The key to the map is the group
object and the value is a java.util.Vector
of the radiobuttons in the group.public java.lang.Object getRadioButtonGroup()
IRadioButtonProxy
null
should be returned and all radiobuttons in the parent will be treated as if they come from the same group.
getRadioButtonGroup
in interface IRadioButtonProxy
public java.lang.String getVariableDataDrivenRecognitionProperty(com.rational.test.ft.script.Property[] properties)
IRadioButtonProxy
#getDataDrivenRecognitionProperties()
.
Nothing will be data driven if this property name is not in that set.
getVariableDataDrivenRecognitionProperty
in interface IRadioButtonProxy
properties
- The properties returned by IRadioButtonProxy.getDataDrivenRecognitionProperties(Hashtable)
.public boolean isRadioSelected()
IRadioButtonProxy
isRadioSelected
in interface IRadioButtonProxy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |