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


package oracle.jdeveloper.html;

import java.io.PrintWriter;
import java.io.OutputStream;

/**
 *
 *	Reprents a collection of text URLs. You can add as many options as you like in order to
 * populate this menu. When it renders, all the menu options show up in a comma delimited fasshion.
 * @author  Juan Oropeza
 * @version PUBLIC
 *
 **/
public class HTMLMenu extends HTMLElementContainer
{
   /**
   *	@param sText	Menu item text.
   *	@param URL		Target URL for this hyperlink.
   */
   public void addMenuOption(String sText , String  URL)
   {
      addElement(new HTMLTextURL(sText , URL));
   }

   protected void renderElementFooter(PrintWriter out)
   {
      out.print(",");
   }
   
}