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 import java.io.Serializable ; 34 35 public class IndexTreeModelImpl extends TreeModelBaseImpl implements IndexTreeModel,Serializable { 36 37 private static final String STATE_DATA_NAME = "IndexTreeStateData"; 38 39 public static IndexTreeModel getIndexTreeModel(RequestContext rc) { 40 ModelManager mm = (ModelManager)rc.getModelManager(); 41 IndexTreeModelImpl model = (IndexTreeModelImpl) 42 mm.getModel(IndexTreeModelImpl.class, 43 mm.getDefaultModelInstanceName(IndexTreeModelImpl.class), 44 true, true); 45 46 return model; 47 } 48 49 public IndexTreeModelImpl() { 50 super(ConfigProperties.getInstance().getTreeXMLFileName("index"), 51 STATE_DATA_NAME); 52 createIndexData(); 53 } 54 } 55 | Popular Tags |