FileDocCategorySizeDatePackage
TileSimpleTag.javaAPI DocGlassfish v2 API2766Fri May 04 22:34:24 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;