1 23 24 package com.sun.enterprise.tools.admingui.descriptors; 25 26 import com.iplanet.jato.RequestContext; 27 import com.iplanet.jato.view.BasicDisplayField; 28 import com.iplanet.jato.view.ContainerView; 29 import com.iplanet.jato.view.DisplayField; 30 import com.iplanet.jato.view.View; 31 32 import com.sun.enterprise.tools.guiframework.view.descriptors.DisplayFieldDescriptor; 33 import com.sun.enterprise.tools.admingui.taglib.*; 34 35 36 40 public class DataSheetChildDescriptor extends DisplayFieldDescriptor { 41 42 45 public DataSheetChildDescriptor(String name) { 46 super(name); 47 } 48 49 50 54 protected DataSheetModelInterface getModel() { 55 return ((DataSheetDescriptor)getParent()).getModel(); 56 } 57 58 59 65 public View getInstance(RequestContext ctx, ContainerView container, String name) { 66 DataSheetModelInterface model = getModel(); 67 if (model != null && model.isChildSupported(name)) { 68 View child = model.createChild(container, name); 69 70 setDefaultValue(child); 72 73 return child; 74 } 75 return null; 76 } 77 } 78 | Popular Tags |