public class JCheckBoxProxy extends AbstractButtonProxy
javax.swing.JCheckBox
class.
ToggleGUITestObject
Type | Desciption | Data Class |
---|---|---|
text | CheckBox Visible Text | ITestDataText |
state | CheckBox 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.ImmediateChildEnumerator
TAB_INDEX, TAB_TEXT
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, MAX_NAME, NAMEPROPERTY, NAMEPROPERTYWEIGHT, PRIORLABEL, PRIORLABELWEIGHT
LEFT, preDownState, processMouseEventHandler, ROLEINDEX, ROLEINDEXWEIGHT, TESTDATA_SPECIALFRAMESTATE, TESTDATA_SPECIALFRAMESTATE_DESCRIPTION, topLevelWindow
BROWSERTABTESTOBJECT_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
INCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS
Constructor and Description |
---|
JCheckBoxProxy(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 |
---|---|
MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_CHECK_BOX . |
State |
getState()
This method returns the state of the associated object.
|
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 that implements IToggleGUI.
|
boolean |
hasSpecialFrameState() |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
void |
setState(State state)
Set the state of the associated object to the specified
state.
|
ITestData |
updateTestData(java.lang.String testDataType,
ITestData testData)
This method updates the supplied test data object and returns it.
|
clickToState, clickToState, deselect, dragToState, dragToState, getDataDrivableCommands, getDataDrivenRecognitionProperties, getDescriptiveName, getIconDescription, getProperty, getRadioButtonGroup, getText, getVariableDataDrivenRecognitionProperty, indeterminate, isRadioSelected, select, shouldBeMapped
getBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isOpaque, isPointInObject, isType, scrollRectToVisible
canBeScrolled, 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, setParent
activateTopWindow, click, click, click, 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, setTopLevelWindow
addMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMethods, getNonValueProperties, getRecognitionProperties, getRecognitionPropertyWeight, getTestDomain, getTopMappableParent, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, setIndexer, setProperty
addDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChannel, getChildren, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction
public JCheckBoxProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getTestObjectClassName()
getTestObjectClassName
in interface IProxyBase
getTestObjectClassName
in class AbstractButtonProxy
public java.lang.String getRole()
TestObjectRole.ROLE_CHECK_BOX
.getRole
in class AbstractButtonProxy
public void setState(State state)
setState
in class AbstractButtonProxy
public State getState()
getState
in class AbstractButtonProxy
State
literals.com.rational.test.ft.script.State
public MethodSpecification getDataDrivableCommand()
null
value is returned.getDataDrivableCommand
in interface IDataDriven
getDataDrivableCommand
in class ProxyTestObject
AbstractButtonProxy.getDataDrivableCommands(int)
public void processSingleMouseEvent(IMouseActionInfo action)
processSingleMouseEvent
in class AbstractButtonProxy
action
- The event cache and other mouse state information
for this mouse action.MethodSpecification
public java.util.Hashtable getTestDataTypes()
getTestDataTypes
in class AbstractButtonProxy
getTestData(String)
,
ITestData
public ITestData getTestData(java.lang.String testDataType)
getTestDataTypes
.getTestData
in class AbstractButtonProxy
testDataType
- A test data type supplied by
getTestDataTypes
.getTestDataTypes()
,
ITestData
public ITestData updateTestData(java.lang.String testDataType, 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 AbstractButtonProxy
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 AbstractButtonProxy