public class AbstractButtonProxy extends JComponentProxy implements com.rational.test.ft.object.interfaces.IToggleGUI, com.rational.test.ft.domain.IRadioButtonProxy
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. |
ComponentProxy.ChildEnumerator, ComponentProxy.ImmediateChildEnumeratorTAB_INDEX, TAB_TEXTchildrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHTLEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindowBROWSERTABTESTOBJECT_CLASSNAME, BROWSERTESTOBJECT_CLASSNAME, COLORDIALOGTESTOBJECT_CLASSNAME, CROSSDOMAINCONTAINER_CLASSNAME, DOCUMENTTESTOBJECT_CLASSNAME, DOMAINTESTOBJECT_CLASSNAME, ECLIPSETOPLEVELTESTOBJECT_CLASSNAME, EMBEDDEDBROWSERTESTOBJECT_CLASSNAME, FILEDIALOGTESTOBJECT_CLASSNAME, FRAMESUBITEMTESTOBJECT_CLASSNAME, FRAMETESTOBJECT_CLASSNAME, GEFEDITPARTTESTOBJECT_CLASSNAME, GUISUBITEMTESTOBJECT_CLASSNAME, GUITESTOBJECT_CLASSNAME, INTERNALFRAMETESTOBJECT_CLASSNAME, MESSAGEBOXTESTOBJECT_CLASSNAME, PALETTEGUISUBITEMTESTOBJECT_CLASSNAME, PROCESSTESTOBJECT_CLASSNAME, SCROLLSUBITEMTESTOBJECT_CLASSNAME, SCROLLTESTOBJECT_CLASSNAME, SELECTGUISUBITEMTESTOBJECT_CLASSNAME, SELECTSCROLLGUISUBITEMTESTOBJECT_CLASSNAME, SHELLTESTOBJECT_CLASSNAME, STATELESSGUISUBITEMTESTOBJECT_CLASSNAME, SUBITEMTESTOBJECT_CLASSNAME, TABITEMTESTOBJECT_CLASSNAME, TESTOBJECT_CLASSNAME, TEXTGUISUBITEMTESTOBJECT_CLASSNAME, TEXTGUITESTOBJECT_CLASSNAME, TEXTSCROLLTESTOBJECT_CLASSNAME, TEXTSELECTGUISUBITEMTESTOBJECT_CLASSNAME, TIMEOUTTESTOBJECT_CLASSNAME, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME, vomClippedRectangle| Constructor and Description |
|---|
AbstractButtonProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
com.rational.test.ft.script.Property[] |
getDataDrivenRecognitionProperties(java.util.Hashtable radiobuttonGroups) |
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() |
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) |
boolean |
hasSpecialFrameState() |
void |
indeterminate()
This method sets the state of the associated object to
INDETERMINATE.
|
boolean |
isRadioSelected() |
void |
processSingleMouseEvent(com.rational.test.ft.domain.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.
|
getBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isPointInObject, isType, scrollRectToVisiblecanBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getChildrenEnumeration, getComponentChildren, getElementWithFocus, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParent2, getParentObject, getScreenRectangle, getTopParent, getWindow, isDopeyDynamicName, isEnabled, isHScroll, isLabelled, isRecognitionProperty, isShowing, isVScroll, setParentactivateTopWindow, 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, invokeMethodOnEDT, isDrag, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processHoverMouseEvent, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindowaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getDataDrivableCommand, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyActionpublic AbstractButtonProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getTestObjectClassName()
getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBasegetTestObjectClassName in class JavaGuiProxypublic boolean shouldBeMapped()
shouldBeMapped in class JavaGuiProxypublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class JComponentProxypublic java.lang.String getDescriptiveName()
getDescriptiveName in class JComponentProxypublic java.lang.String getRole()
TestObjectRole.ROLE_BUTTON.getRole in class JComponentProxypublic java.lang.String getText()
protected java.lang.String getIconDescription()
public void processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
processSingleMouseEvent in class JavaGuiProxyaction - 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.IToggleGUIstate - 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.IToggleGUImodifiers - 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.IToggleGUIstate - 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.IToggleGUImodifiers - 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.ITogglepublic com.rational.test.ft.script.State getState()
getState in interface com.rational.test.ft.object.interfaces.IToggleState literals.Statepublic void select()
UnableToPerformActionException exception will be thrown if
this action can not be performed.select in interface com.rational.test.ft.object.interfaces.ITogglepublic void deselect()
UnableToPerformActionException exception will be thrown if
this action can not be performed.deselect in interface com.rational.test.ft.object.interfaces.ITogglepublic void indeterminate()
UnableToPerformActionException exception will be thrown if
this action can not be performed.indeterminate in interface com.rational.test.ft.object.interfaces.ITogglepublic java.util.Hashtable getTestDataTypes()
getTestDataTypes in class JavaProxygetTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.getTestData in class com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.getTestDataTypes(),
ITestDatapublic 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 com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.testData - The test data base object that requires
updating.getTestDataTypes(),
ITestDatapublic boolean hasSpecialFrameState()
hasSpecialFrameState in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.sys.MethodSpecification[] getDataDrivableCommands(int includeChildren)
getDataDrivableCommands in interface com.rational.test.ft.domain.IDataDrivengetDataDrivableCommands in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.script.Property[] getDataDrivenRecognitionProperties(java.util.Hashtable radiobuttonGroups)
getDataDrivenRecognitionProperties in interface com.rational.test.ft.domain.IRadioButtonProxypublic java.lang.Object getRadioButtonGroup()
getRadioButtonGroup in interface com.rational.test.ft.domain.IRadioButtonProxypublic java.lang.String getVariableDataDrivenRecognitionProperty(com.rational.test.ft.script.Property[] properties)
getVariableDataDrivenRecognitionProperty in interface com.rational.test.ft.domain.IRadioButtonProxypublic boolean isRadioSelected()
isRadioSelected in interface com.rational.test.ft.domain.IRadioButtonProxy