com.rational.test.ft.domain.java.jfc
Class JSeparatorProxy
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
com.rational.test.ft.domain.java.jfc.JMenuItemProxy
com.rational.test.ft.domain.java.jfc.JSeparatorProxy
- All Implemented Interfaces:
- IChannelObject, IDataDriven, IProxyBase, IRadioButtonProxy, IPropertyFilter, ISetParent, com.rational.test.ft.object.interfaces.IGraphical, com.rational.test.ft.object.interfaces.IToggle, com.rational.test.ft.object.interfaces.IToggleGUI
public class JSeparatorProxy
- extends JMenuItemProxy
Proxy class for javax.swing.JSeparator.
- TestObject interface:
GuiSubitemTestObject
- Default Recognition Properties:
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. |
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. |
Fields inherited from class com.rational.test.ft.domain.ProxyTestObject |
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, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME, vomClippedRectangle |
Fields inherited from class com.rational.test.ft.sys.RegisteredObject |
theTestObject |
Constructor Summary |
JSeparatorProxy(java.lang.Object theObjectInTheSUT)
This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. |
Method Summary |
ProxyTestObject |
getAssociateProxy()
Return the proxy we want to record the actions against. |
com.rational.test.ft.script.Subitem[] |
getPath()
Returns an array of Subitems can be used to describe the path of this JMenuItem. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property. |
java.lang.String |
getRole()
Returns TestObjectRole.ROLE_SEPARATOR . |
com.rational.test.ft.script.Subitem |
getSubitem()
Return the Subitem describes this JSeparator. |
java.lang.String |
getTestObjectClassName()
Return the test object that implements IGraphicalSubitem. |
boolean |
isOpaque()
Check the component under evaluation to determine if it is opaque or transparent. |
void |
processSingleMouseEvent(IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event. |
protected void |
setIndex()
Set the index of this Separator. |
Methods inherited from class com.rational.test.ft.domain.java.jfc.AbstractButtonProxy |
clickToState, clickToState, deselect, dragToState, dragToState, getDataDrivableCommands, getDataDrivenRecognitionProperties, getIconDescription, getRadioButtonGroup, getState, getTestData, getTestDataTypes, getText, getVariableDataDrivenRecognitionProperty, hasSpecialFrameState, indeterminate, isRadioSelected, select, setState, shouldBeMapped, updateTestData |
Methods inherited from class com.rational.test.ft.domain.java.jfc.JComponentProxy |
getBorderTitle, getClippedRect, getClippedScreenRectangle, getProperties, getStandardProperties, getText, getVisibleRectangle, getVisualClippedRectangle, hasFocus, isPointInObject, isType, scrollRectToVisible |
Methods inherited from class com.rational.test.ft.domain.java.awt.ComponentProxy |
canBeScrolled, childConstructed, getChildAtPoint, getChildProxy, getComponentChildren, getEmbeddedBrowsers, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableChildren, getMappableParent, getOwnedObjects, getOwner, getParent, getParent2, 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, 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.domain.ProxyTestObject |
addDataDrivableCommands, 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, suppressKeyAction |
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 |
JSeparatorProxy
public JSeparatorProxy(java.lang.Object theObjectInTheSUT)
- This sole constructor for all proxy objects sets the SUT object as a member variable for the proxy. All interactions with the supplied object are performed through this class.
getTestObjectClassName
public java.lang.String getTestObjectClassName()
- Return the test object that implements IGraphicalSubitem.
- Specified by:
getTestObjectClassName
in interface IProxyBase
- Overrides:
getTestObjectClassName
in class AbstractButtonProxy
- Returns:
- The stateful test object class full name.
getRole
public java.lang.String getRole()
- Returns
TestObjectRole.ROLE_SEPARATOR
.
- Overrides:
getRole
in class JMenuItemProxy
- Returns:
- A brief type name that describes the role this object plays in the UI.
- Since:
- RFT1.0
getProperty
public java.lang.Object getProperty(java.lang.String propertyName)
- Get the value for a specific property.
- Overrides:
getProperty
in class AbstractButtonProxy
- Parameters:
propertyName
- The name of the property to fetch.
- Returns:
- The active value of the specified property for the associated test object.
- See Also:
ProxyTestObject.getProperties()
,
ProxyTestObject.setProperty(String,Object)
,
ProxyTestObject.getRecognitionProperties()
,
ProxyTestObject.addRecognitionProperty(String,Object,int)
isOpaque
public boolean isOpaque()
- Check the component under evaluation to determine if it is opaque or transparent.
- Specified by:
isOpaque
in interface com.rational.test.ft.object.interfaces.IGraphical
- Overrides:
isOpaque
in class JComponentProxy
- Returns:
- true if component is opaque, else false.
getSubitem
public com.rational.test.ft.script.Subitem getSubitem()
- Return the Subitem describes this JSeparator.
- Overrides:
getSubitem
in class JMenuItemProxy
- Returns:
- Separator
setIndex
protected void setIndex()
- Set the index of this Separator.
getPath
public com.rational.test.ft.script.Subitem[] getPath()
- Description copied from class:
JMenuItemProxy
- Returns an array of Subitems can be used to describe the path of this JMenuItem.
- Overrides:
getPath
in class JMenuItemProxy
getAssociateProxy
public ProxyTestObject getAssociateProxy()
- Return the proxy we want to record the actions against.
It could be a JMenuBarProxy or a JPopupMenuProxy (only when the JPopupMenu is not invoked by a JMenu).
- Overrides:
getAssociateProxy
in class JMenuItemProxy
processSingleMouseEvent
public void processSingleMouseEvent(IMouseActionInfo action)
- Return a MethodSpecification for the specified mouse event. This is the primary record interface for mouse events against a particular
control.
- Overrides:
processSingleMouseEvent
in class JMenuItemProxy
- Parameters:
action
- The event cache and other mouse state information
for this mouse action.