1 23 24 package com.sun.enterprise.tools.admingui.tree; 25 26 import com.iplanet.jato.RequestManager; 27 import com.iplanet.jato.RequestContext; 28 import com.iplanet.jato.ModelManager; 29 import com.iplanet.jato.model.TreeModelBase; 30 import com.iplanet.jato.model.ModelControlException; 31 import com.iplanet.jato.model.ValidationException; 32 import com.sun.enterprise.tools.admingui.ConfigProperties; 33 34 public class MonitorTreeModelImpl extends TreeModelBaseImpl implements IndexTreeModel { 35 36 private static final String STATE_DATA_NAME = "MonitorTreeStateData"; 37 38 public static IndexTreeModel getIndexTreeModel(RequestContext rc) { 39 ModelManager mm = (ModelManager)rc.getModelManager(); 40 MonitorTreeModelImpl model = (MonitorTreeModelImpl) 41 mm.getModel(MonitorTreeModelImpl.class, 42 mm.getDefaultModelInstanceName(MonitorTreeModelImpl.class), 43 true, true); 44 45 return model; 46 } 47 48 public MonitorTreeModelImpl() { 49 super(ConfigProperties.getInstance().getTreeXMLFileName("monitor"), 50 STATE_DATA_NAME); 51 createIndexData(); 52 } 53 } 54 | Popular Tags |