protected View createChild(String name){
  View view=null;
  if (name.equals(PG_SESSION)) {
    view=new StaticTextField(this,name,"");
  }
 else   if (name.equals(BTN_GHOST)) {
    view=new Button(this,name,"");
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_STATIC_TXT)) {
    view=new CCStaticTextField(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_SERIALIZABLE)) {
    view=new SerializedField(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_CHECKBOX)) {
    view=new CCCheckBox(this,name,"true","false",false);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_TEXTFIELD)) {
    view=new CCTextField(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_LABEL)) {
    view=new CCLabel(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_BUTTON)) {
    view=new CCButton(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_SINGLE_CHOICE)) {
    view=new CCDropDownMenu(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_HREF)) {
    view=new CCHref(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_RADIO_BUTTON)) {
    view=new CCRadioButton(this,name,null);
  }
 else   if (name.startsWith(AMViewInterface.PREFIX_INLINE_ALERT)) {
    view=new CCAlertInline(this,name,null);
  }
 else {
    throw new IllegalArgumentException("Invalid child name [" + name + "]");
  }
  return view;
}

protected View createChild ( String name ) { View view = null ; if ( name . equals ( PG_SESSION ) ) { view = new StaticTextField ( this , name , "" ) ; } else if ( name . equals ( BTN_GHOST ) ) { view = new Button ( this , name , "" ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_STATIC_TXT ) ) { view = new CCStaticTextField ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_SERIALIZABLE ) ) { view = new SerializedField ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_CHECKBOX ) ) { view = new CCCheckBox ( this , name , "true" , "false" , false ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_TEXTFIELD ) ) { view = new CCTextField ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_LABEL ) ) { view = new CCLabel ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_BUTTON ) ) { view = new CCButton ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_SINGLE_CHOICE ) ) { view = new CCDropDownMenu ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_HREF ) ) { view = new CCHref ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_RADIO_BUTTON ) ) { view = new CCRadioButton ( this , name , null ) ; } else if ( name . startsWith ( AMViewInterface . PREFIX_INLINE_ALERT ) ) { view = new CCAlertInline ( this , name , null ) ; } else { throw new IllegalArgumentException ( "Invalid child name [" + name + "]" ) ; } return view ; }
creates user interface components used by this view bean .
