Example #1
0
 @SuppressWarnings("null")
 public Folder getTreeModel() {
   Folder[] deviceTypes = null;
   Music[] types = {new Music("IODF"), new Music("IFDT"), new Music("IFAT"), new Music("OBD")};
   deviceTypes = new Folder[] {new Folder("告警信息管理", types)};
   for (int i = 0; i < deviceTypes.length; i++) {
     root.add((Folder) deviceTypes[i]);
   }
   return root;
 }