1 23 24 package com.sun.enterprise.tools.guiframework.view.descriptors; 25 26 import com.iplanet.jato.RequestContext; 27 import com.iplanet.jato.view.html.CheckBox; 28 import com.iplanet.jato.view.View; 29 import com.iplanet.jato.view.ContainerView; 30 31 32 35 public class OldJATOCheckBoxDescriptor extends DisplayFieldDescriptor { 36 37 40 public OldJATOCheckBoxDescriptor(String name) { 41 super(name); 42 } 43 44 45 51 public View getInstance(RequestContext ctx, ContainerView container, String name) { 52 Object value = 54 getParameter(DisplayFieldDescriptor.DEFAULT_VALUE); 55 boolean initialValue = true; 56 if (value != null) { 57 initialValue = new Boolean (value.toString()).booleanValue(); 58 } 59 60 CheckBox checkbox = 63 new CheckBox(container, name, "true", "false", initialValue); 64 setBoundName(checkbox); 65 return checkbox; 66 } 67 } 68 | Popular Tags |