FileDocCategorySizeDatePackage
TileSimpleTag.javaAPI DocApache Tomcat 6.0.141578Fri Jul 20 04:20:32 BST 2007jsp2.examples.simpletag

TileSimpleTag

public class TileSimpleTag extends javax.servlet.jsp.tagext.SimpleTagSupport
Displays a tile as a single cell in a table.

Fields Summary
private String
color
private String
label
Constructors Summary
Methods Summary
public voiddoTag()

	getJspContext().getOut().write( 
	    "<td width=\"32\" height=\"32\" bgcolor=\"" + this.color + 
	    "\"><font color=\"#ffffff\"><center>" + this.label + 
                "</center></font></td>" );
    
public voidsetColor(java.lang.String color)

        this.color = color;
    
public voidsetLabel(java.lang.String label)

        this.label = label;