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


package oracle.jdeveloper.html;

import java.io.PrintWriter;

/**
 *
 * Represents a text element. This is an element you can add to a page when no tag is necessary.
 * @author  Juan Oropeza
 * @version PUBLIC
 *
 **/

public class HTMLTextElement extends HTMLElement
{
   protected   String   theText = null;

   /**
   *	Constructs element providing it's text.
   *
   *	@param sText	text for new element.
   */
   public HTMLTextElement(String sText)
   {
      theText = sText;
   }

   public void render(PrintWriter out) throws Exception
   {
      out.print(theText);
   }

}