What is the Hierarchical Data Model?
Hierarchical data model allows to store related entities. It’s designed for the Hierarchical Grid widget. The sample below illustrates how to create a simple hierarchy. //create a new model containing employees Editable model = new EditableGridDataModel( new Object[][] { new String[]{“John”,”Doe”}, new String[]{“Piter”,”Walkman”}, new String[]{“Rupert”,”Brown”} } ); //create a new model containing departments HierarchicalGridDataModel hierarchicalModel = new HierarchicalGridDataModel( new Object[][] { new Object[]{“Accountants”,new Integer(3)}, new Object[]{“Management”,new Integer(10)}, new Object[]{“Development”,new Integer(100)} } ); //make a relationship between Accountants department and a list of employees hierarchicalModel.addSubgridModel(0,0, model); Note that the hierarchical model is not just a tree structure. It’s more complicated. For example you can make a relationship not only between a concrete parent entity and a list of child entities. Grid cells can contain more compl