01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin.dso;
05:
06: import com.tc.admin.common.XTreeModel;
07:
08: import com.tc.stats.DSOClassInfo;
09:
10: public class ClassTreeModel extends XTreeModel {
11: public ClassTreeModel(DSOClassInfo[] classInfo) {
12: super (new ClassTreeRoot(classInfo));
13: }
14:
15: public void setClassInfo(DSOClassInfo[] classInfo) {
16: ((ClassTreeRoot) getRoot()).setClassInfo(classInfo);
17: reload();
18: }
19:
20: public DSOClassInfo[] getClassInfo() {
21: return ((ClassTreeRoot) getRoot()).getInfo();
22: }
23: }
|