Supported SWT Widgets for the Classic Agent

In general, Java SWT classes map to standard 4Test classes and simply inherit class information. The following table contains an alphabetical list of the Silk Test Classic Java and 4Test classes that map to Standard Widget Toolkit (SWT) widgets for the Classic Agent.

Column
Description
Widget Name
Lists SWT widgets that are supported by Silk Test Classic.
4Test Class
Lists the 4Test classes to which the SWT widgets are mapped.
4Test Base Class
Lists the 4Test base classes from which the 4Test classes are derived

For the most part, Silk Test Classic recognizes other SWT widgets as CustomWin. These include widgets such as Browser, CCombo, ProgressBar, TableTree and Table/Tree editor.

Widget Name 4Test Class 4Test Base Class
Button
  • JavaSwtPushButton
  • JavaSwtCheckBox
  • JavaSwtRadioButton
  • JavaSwtRadioList
  • PushButton
  • CheckBox
  • RadioButton
  • RadioList
CLabel JavaSwtStaticText StaticText
Combo JavaSwtComboBox ComboBox
Composite
  • CustomWin
  • JavaSwtPage
  • CustomWin
  • AnyWin
CoolBar JavaSwtCoolBar AnyWin
CTabFolder JavaSwtRichPageList PageList
Group JavaSwtGroup StaticText
Label JavaSwtStaticText StaticText
List JavaSwtListBox ListBox
Menu
  • JavaSwtMenu
  • JavaSwtPopupMenu
Both map to Menu.
MenuItem
  • JavaSwtMenuItem
  • JavaSwtCheckBoxMenuItem
  • JavaSwtRadioButtonMenuItem
  • JavaSwtSeparator
All map to MenuItem.
Scale JavaSwtScale Scale
Shell
  • JavaMainWin
  • JavaDialogBox
  • MainWin
  • DialogBox
Slider JavaSwtScrollBar ScrollBar
StyledText JavaSwtRichTextField TextField
TabFolder JavaSwtPageList PageList
Table JavaSwtListView ListView
Text JavaSwtTextField TextField
ToolBar JavaSwtToolBar ToolBar
ToolItem
  • JavaSwtDropDownButton
  • JavaSwtPushButton
  • JavaSwtCheckBox
  • JavaSwtRadioButton
  • JavaSwtRadioList
  • PushButton
  • PushButton
  • CheckBox
  • RadioButton
  • RadioList
Tree JavaSwtTreeView TreeViewEx

Notes

  • Button widgets map to a variety of 4Test classes depending on the particular style of the Button.
  • Silk Test Classic does not record or playback actions on the CCombo or the Sash widget with the Classic Agent. Use the Open Agent to record and replay the Sash widget.
  • Silk Test Classic does not recognize ScrollBar as a separate control; this is similar to the way Silk Test Classic recognizes scroll bars in Windows applications.
  • TableItem uses the standard 4Test convention for ListItems.
  • Silk Test Classic does not recognize TreeItem as a separate control; this is similar to the way Silk Test Classic recognizes tree items in Windows applications. The TreeItem may have a check box, multiple column TreeItems, Column Header, plus Extend and multiple selection of items. For multicolumn trees, Silk Test Classic uses a semicolon to distinguish between text in different columns in the same way the ListView class does.
  • Silk Test Classic does not support the Eclipse 3.0 TreeTable widget. Silk Test Classic does support the multicolumn Tree in Eclipse 3.1.