KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > improve > struts > taglib > layout > field > ChoiceTag


1 package fr.improve.struts.taglib.layout.field;
2
3 import javax.servlet.jsp.JspException JavaDoc;
4 /**
5  * Implemented by tags that allow the user to pick up a choice from a list of values.
6  * <br>
7  * Example: the tag RadiosTag generates a list of radio buttons. Its method addChoice()
8  * generate the code to render one button, and is called by the nested tag defining
9  * the buttons.
10  *
11  * @author: Jean-NoŽl Ribette
12  */

13 public interface ChoiceTag {
14     /**
15      * Generate the HTML code to add a choice.
16      * @deprecated
17      *
18      * @param sb Buffer to print the HTML code to.
19      * @param value The value to send when this choice is selected
20      * @param label The label to display for this choice.
21      */

22     public void addChoice(StringBuffer JavaDoc sb,String JavaDoc value, String JavaDoc label) throws JspException JavaDoc;
23     
24     /**
25      * Generate the HTML code to add a choice.
26      * @throws JspException
27      */

28     public void addChoice(StringBuffer JavaDoc buffer, Choice choice) throws JspException JavaDoc;
29 }
30
Popular Tags