return DESCRIPTION;
}
}
public Canvas getViewPanel() {
TreeGridField fieldName = new TreeGridField("Name", 150);
TreeGridField fieldJob = new TreeGridField("Job", 150);
TreeGridField fieldSalary = new TreeGridField("Salary");
TreeGrid employeeTree = new TreeGrid();
employeeTree.setWidth(500);
employeeTree.setHeight(250);
employeeTree.setDataSource(EmployeeXmlDS.getInstance());
employeeTree.setNodeIcon("icons/16/person.png");
employeeTree.setFolderIcon("icons/16/person.png");
employeeTree.setAutoFetchData(true);
employeeTree.setLoadDataOnDemand(false);
employeeTree.setCanEdit(true);
employeeTree.setCanReorderRecords(true);
employeeTree.setCanAcceptDroppedRecords(true);
employeeTree.setShowDropIcons(false);
employeeTree.setShowOpenIcons(false);
employeeTree.setClosedIconSuffix("");
employeeTree.setFields(fieldName, fieldJob, fieldSalary);
final ListGrid employeeGrid = new ListGrid();
employeeGrid.setWidth(500);
employeeGrid.setHeight(250);
employeeGrid.setEmptyMessage("Select an Employee from the PickTree Item above.");
employeeGrid.setDataSource(EmployeeXmlDS.getInstance());
employeeGrid.setCanEdit(true);
employeeGrid.setFields(new TreeGridField("Name", 150), new TreeGridField("Job", 150), new TreeGridField("Salary"));
IPickTreeItem searchPickTree = new IPickTreeItem();
searchPickTree.setCanSelectParentItems(true);
searchPickTree.setShowTitle(false);
searchPickTree.setDataSource(EmployeeXmlDS.getInstance());