1 2 24 25 26 27 28 29 package com.lutris.html; 30 31 32 44 public class HtmlTableHeaderCell extends HtmlTableCell { 45 46 public HtmlTableHeaderCell(String tdValue) 47 { 48 super(tdValue); 49 } 50 51 public HtmlTableHeaderCell(String tdValue, String defaultValue) 52 { 53 super(tdValue, defaultValue); 54 } 55 56 public String toString() 57 { 58 String html = "<TH"; 59 if (align != null) 60 html += " ALIGN=" + align; 61 if (valign != null) 62 html += " VALIGN=" + valign; 63 if (rowSpan > 0) 64 html += " ROWSPAN=" + rowSpan; 65 if (colSpan > 0) 66 html += " COLSPAN=" + colSpan; 67 if (bgColor != null) 68 html += " BGCOLOR=" + bgColor; 69 if (percentWidth > 0) 70 html += " WIDTH=" + percentWidth + "%"; 71 html += ">"; 72 html += tdValue; 73 html += "</TH>\n"; 74 return html; 75 } 76 } 77 | Popular Tags |