Exemplo n.º 1
0
 /**
  * Get the HTML that comes before the column text.
  *
  * @return The HTML that comes before the column text.
  */
 public String getHeaderCellPreProcess(ColumnInfo columnInfo, ValueListInfo info) {
   StringBuffer sb = new StringBuffer();
   sb.append("\n    <th");
   if (useNoWrap) {
     sb.append(" nowrap=\"true\"");
   }
   if (columnInfo != null) {
     if (columnInfo.getToolTip() != null) {
       sb.append(" title=\"")
           .append(columnInfo.getToolTip())
           .append("\""); // html attribute title renderes a toolTip
     }
     if (columnInfo.getAttributes() != null) {
       sb.append(" ").append(columnInfo.getAttributes());
     }
   }
   sb.append(">");
   if (usePadding) {
     sb.append("&nbsp;");
   }
   return sb.toString();
 }