public class TabFolderProxy extends SwtGraphicalSubitemProxy
org.eclipse.swt.widgets.TabFolder.
GuiSubitemTestObject
| Type | Desciption | Data Class |
|---|---|---|
| list | List Elements | ITestDataList |
| selected | Selected Tab Element | ITestDataList |
| Property | Usage |
|---|---|
| .class | The Java full class name of the TestObject. |
| .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. |
| .groupText | The text of a group parent. Only available if parent is a group. Omitted if the group parent has no visible text. |
| .toolTipText | The text from the associated tool tip, omitted if there is no associated tool tip. |
| .tabs | The text for the up to ten items from the tabs list. |
| tabCount | The number of tabs registered with the tab control. |
| Subitem | Usage |
|---|---|
Text |
Defines the tab with the specified visible text. |
Index |
Defines the tab at the specified zero-based index. |
ControlProxy.ChildEnumerator, ControlProxy.ImmediateChildEnumerator| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAB_INDEX |
static java.lang.String |
TAB_TEXT |
childrenEnumerated, CLASSINDEX, CLASSINDEXWEIGHT, clickArgs, currentMethod, GROUPTEXT, GROUPTEXTWEIGHT, HANDLE, MAPPABLECLASSINDEX, MAPPABLECLASSINDEXWEIGHT, MAX_NAME, predownScreenRect, PRIORLABEL, PRIORLABELWEIGHT, TOOLTIPTEXT, TOOLTIPTEXTWEIGHTLEFT, 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 |
|---|
TabFolderProxy(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 |
childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
Inform the parent when child proxies are constructed so additional recognition
properties can be added when needed.
|
protected int |
getItemIndex(com.rational.test.ft.script.Subitem item) |
protected int |
getItemIndex(com.rational.test.ft.script.Text item) |
com.rational.test.ft.sys.MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Return a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_PAGE_TAB_LIST. |
java.awt.Point |
getScreenPoint(com.rational.test.ft.script.Subitem subitem)
Returns the screen relative point to the center of the supplied
subitem.
|
java.awt.Point |
getScreenPoint(com.rational.test.ft.script.Subitem subitem,
java.awt.Point pt)
Returns the screen relative point given a subitem and a subitem
relative point.
|
java.awt.Rectangle |
getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
Returns the rectangle that contains the component being
evaluated relative to the top left corner of the screen.
|
int |
getSelectionIndex()
Gets the index of the selected item.
|
int[] |
getSelectionIndices() |
java.lang.Object |
getSubitem(com.rational.test.ft.script.Subitem subitem)
Returns an object that represents the specified subitem in the associated
test object.
|
protected int |
getTabCount() |
protected java.lang.String |
getTabText(int index) |
void |
processSingleMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
Return a MethodSpecification for the specified mouse event.
|
void |
setSelection(int index)
Sets the selection.
|
void |
setState(com.rational.test.ft.script.Action action)
This method performs a specific action against the JTabbedPane.
|
void |
setState(com.rational.test.ft.script.Action action,
com.rational.test.ft.script.Subitem item)
This method performs a specific action against the subitem.
|
void |
setState(com.rational.test.ft.script.Action action,
com.rational.test.ft.script.Subitem start,
com.rational.test.ft.script.Subitem end)
This method performs a specific action against the subitem
range defined by the specified indices.
|
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, getTestObjectClassName, hover, hover, hover, hover, mouseMove, mouseMove, mouseMove, mouseMove, nClick, nClickDrag, nClickDrag, nClickDragToScreenPoint, nClickDragToScreenPointgetActionArgs, getChannel, getChildProxy, getChildrenEnumeration, getClippedScreenRectangle, getDefaultActionArgs, getDescriptiveName, getElementWithFocus, getHandle, getImmediateChildren, getLabelText, getLeadingLabel, getLocationOnScreen, getMappableParent, getName, getOwnedObjects, getOwner, getParent, getParentObject, getReorderedChildren, getScreenRectangle, getStyle, getToolTipText, getTopMappableParent, getTopParent, getVisualClippedRectangle, hasFocus, isEnabled, isGTK, isLabelled, isObjectMoved, isShell, isShowing, processHoverMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, scrollRectToVisible, setClickArgs, setDownPointArgs, setDrag, setMethodSpecification, setMultiClickAction, setRecordCacheactivateTopWindow, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, dumpAction, ensureObjectIsVisible, getActionRect, getCachedRectX, getCachedRectY, getChildAtPoint, getClippedRect, getProcessMouseEventHandler, getRegisteredTopLevelWindow, getScreenPoint, getScreenPoint, getScriptCommandFlags, getTopMappableWindow, getTopWindow, hover, hover, hover, hover, invokeMethodOnEDT, isDrag, isOpaque, isPointInObject, isPointInObject, modifiersChanged, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, processMouseEvent, setProcessMouseEventHandler, setTopLevelWindow, shouldBeMappedaddMappableChildrenToVector, addRecognitionProperty, allowProperty, getAddedRecognitionPropertyValue, getChildren, getIndexer, getIndexers, getMappableChildren, getMethods, getNonValueProperties, getProperties, getRecognitionProperties, getRecognitionPropertyWeight, getStandardProperties, getTestDataTypes, getTestDomain, getUniqueId, getVisualClippableParent, hasAddedRecognitionProperties, isRecognitionProperty, setIndexer, setPropertyaddDataDrivableCommands, baseClassMatch, canTakeVP, equals, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getChildren, getDataDrivableCommand, getDataDrivableCommands, getField, getIgnorableProperties, getMappableChildren, getMappableParent, getObjectClassName, getObjectCustomClassName, getOwnedObjects, getParent, getProxy, getScriptCommandAnchor, getTestData, getVisualMappableChildren, getVisualTopParent, getVOMSpecificProperty, hasSpecialFrameState, isClassIndexConsidered, isSameObject, isValidObject, ping, suppressKeyAction, updateTestDatapublic static final java.lang.String TAB_TEXT
public static final java.lang.String TAB_INDEX
public TabFolderProxy(java.lang.Object theObjectInTheSUT)
public java.lang.String getRole()
TestObjectRole.ROLE_PAGE_TAB_LIST.getRole in class ControlProxypublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class ControlProxypublic void childConstructed(com.rational.test.ft.domain.ProxyTestObject child)
childConstructed in class ControlProxychild - The child proxy that was just constructed.public java.lang.Object getSubitem(com.rational.test.ft.script.Subitem subitem)
SubitemNotFoundException
will be thrown if the specified subitem is invalid relative to the associated
test object. null may be returned if the subitem does not have
an object association that can be returned.getSubitem in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetSubitem in class SwtGraphicalSubitemProxysubitem - The subitem to fetch an object for.protected int getItemIndex(com.rational.test.ft.script.Text item)
protected int getItemIndex(com.rational.test.ft.script.Subitem item)
protected int getTabCount()
protected java.lang.String getTabText(int index)
public int getSelectionIndex()
public int[] getSelectionIndices()
public void setSelection(int index)
index - the index of the itempublic 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.MethodSpecificationpublic void setState(com.rational.test.ft.script.Action action)
action - The action that should be performed.public void setState(com.rational.test.ft.script.Action action,
com.rational.test.ft.script.Subitem item)
item - The item to act upon.action - The action that should be performed.public void setState(com.rational.test.ft.script.Action action,
com.rational.test.ft.script.Subitem start,
com.rational.test.ft.script.Subitem end)
start - The first item to act upon.end - The last item to act upon.action - The action that should be performed.public com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint will be returned. However, if a proxy can findgetMethodSpecForPoint in class JavaGuiProxyx - The screen relative x coordinate.y - The screen relative y coordinate.MethodSpecificationpublic java.awt.Rectangle getScreenRectangle(com.rational.test.ft.script.Subitem subitem)
getScreenRectangle in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenRectangle in class SwtGraphicalSubitemProxypublic java.awt.Point getScreenPoint(com.rational.test.ft.script.Subitem subitem)
getScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenPoint in class SwtGraphicalSubitemProxysubitem - The subitem the resultant screen point is
relative to.public java.awt.Point getScreenPoint(com.rational.test.ft.script.Subitem subitem,
java.awt.Point pt)
getScreenPoint in interface com.rational.test.ft.object.interfaces.IGraphicalSubitemgetScreenPoint in class SwtGraphicalSubitemProxysubitem - The subitem the resultant screen point is
relative to.pt - The subitem relative point.