Chapter 9. Grid Editor

Table of Contents

Introduction
Layouts: Grid and Tree
Navigating the grid
Expand All Action
Collapse All Action
Expand Children Action
Collapse Children Action
Collapse Others
Specific Grid Actions
Sorting a Table Column
Inserting a row in a table
Inserting a column in a table
Clearing the content of a column
Adding nodes
Duplicating nodes
Refresh layout
Start editing a cell value
Stop editing a cell value
Drag and Drop(DnD) in the Grid Editor
Copy and Paste in the Grid Editor
Bidirectional Text Support in the Grid Editor

Introduction

In the grid editor the XML document is displayed as a structured grid of nested tables in which the text content can be modified by non technical users without editing directly the XML tags. The tables can be expanded and collapsed with a mouse click to show or hide the elements of the document as needed. Also the document structure can be changed easily with drag and drop operations on the grid components. The tables can be zoomed using Ctrl-+ , Ctrl-- , Ctrl-0 or Ctrl-mouse wheel.

Figure 9.1. The Grid Editor

The Grid Editor

You can switch between the text tab and the grid tab of the editor panel with the two buttons Text and Grid available at the bottom of the editor panel.

If the edited document is associated with a schema (DTD, XML Schema, Relax NG, etc.), the editor offers content completion for the element and attributes names and values. If you choose to insert an element that has required content, it will be inserted automatically including the subtree of needed elements and attributes.

To display the content completion popup you have to start editing, for example by double clicking the cell. When editing, pressing CTRL SPACE redisplays the popup.

Figure 9.2. Content Completion in Grid Editor

Content Completion in Grid Editor