/********************************************************************
 *  Oracle JDeveloper
 *  Copyright (c) 1997, 1999, Oracle Corporation. All rights reserved.
 ********************************************************************/

package oracle.jdeveloper.html;

import oracle.jdeveloper.html.*;
import oracle.jbo.*;


/**
 *
 *	Represents a red-only field generator.
 *
 * @author  Juan Oropeza
 * @version PUBLIC
 *
 **/
 
public class ReadOnlyField extends HTMLFieldRendererImpl
{

 public ReadOnlyField()
  {
  }

  public String renderToString(HTMLRenderingContext ctx , RowSet rs, Row row , String sAttribute)
   {
      String sText;

      Object obj = row.getAttribute(sAttribute);

      if(obj == null)
      {
         sValue = "&nbsp";
      }
      else
      {
          sValue = obj.toString();
      }

      return sValue;
   }
}

 