3.5.2. SWT toolkit tree
Prev | 3.5. SWT toolkit component overview | Next

### 3.5.2. SWT toolkit tree

A tree in SWT is essentially the same as a tree in Swing, with an extra option to have checkboxes on the nodes of the tree. Use this component if you want to select or check the selection of checkboxes on an SWT tree. For other actions on trees use the tree component in the concrete toolkit.

| Please keep in mind that it is not possible to object map nodes within the tree but to object map the tree as a whole only. In order to interact with single nodes you have to use the according actions.

Example Mockups

Figure 3.20. SWT Tree Component

Available Actions

- Check Enablement (General Components)

- Check Existence (General Components)

- Check Focus

- Check Property

- Check Selection of Context Menu Entry (General Components)

- Check Text in Tree Components

- Check Selection in Trees (SWT)

- Click (General Components)

- Collapse / Expand Trees

- Drag and Drop (General Components)

- Drag and Drop in Tree Components

- Move in Tree Components

- Select in Context Menus

- Select Nodes in Tree Components

- Show text

- Store Property/Value (General Components)

- Store Value in Tree Components

- Toggle Checkbox in Trees (SWT)

- Wait for Component (General)