treeGrid.setShowOpenIcons(false);
treeGrid.setShowDropIcons(false);
treeGrid.setClosedIconSuffix("");
// treeGrid.setAutoFetchData(true);
TreeGridField nameField = new TreeGridField("Name", handleHorizontal(
650, 900));
nameField.setCanSort(false);
RegExpValidator elementName = new RegExpValidator();
elementName.setErrorMessage("Invalid name for XML element");
elementName.setExpression("^([a-zA-Z])+([a-zA-Z0-9\\-_\\.])*");
nameField.setValidators(elementName);
TreeGridField typeField = new TreeGridField(Type, 60);
typeField.setCanSort(false);
TreeGridField minField = new TreeGridField(Min, 30);
minField.setCanSort(false);
TreeGridField maxField = new TreeGridField(Max, 30);
maxField.setCanSort(false);
maxField.setType(ListGridFieldType.INTEGER);
minField.setType(ListGridFieldType.INTEGER);
TreeGridField prefix = new TreeGridField(Prefix, 40);
prefix.setCanSort(false);
TreeGridField suffix = new TreeGridField(Suffix, 40);
suffix.setCanSort(false);
typeField.setValueMap(Sequence, Choice, Simple);
treeGrid.setFields(nameField, typeField, minField, maxField, prefix,
suffix);
treeGrid.addSelectionChangedHandler(new SelectionChangedHandler() {