/** * Generates HTML Output for a {@link SectionContainer} or {@link SectionContent}. */ private static String sectionToHtml( Section s ){ return "<table class=\"Section\">\n"+ "<tr><th class=\"Section\">\n" + "<table class=\"SectionTh\"><tr>\n" + "<th class=\"SectionTh\">\n" + (s.getClass() == SectionContainer.class?"SectionStructure":"SectionContent")+":<br>\n"+ "Level: "+s.getLevel()+"\n"+ "</th><th class=\"SectionTh\">\n" + (s.getTitleElement()!=null?contentElementToHtml( s.getTitleElement() ):"")+ "</th>\n" + "</tr></table>\n"+ "</th></tr>\n" + "<tr><td class=\"Section\">\n"+ sectionCCLToHtml( s )+ "</td></tr>\n"+ "</table>\n"; }
for( int i=(s.getTitleElement()!=null?1:0); i<ccl.size(); i++ ){ Content c = ccl.get(i); Class cc = c.getClass();
/** * Generates HTML Output for a {@link TableElement}. */ private static String tableElementToHtml( TableElement td ){ StringBuilder result = new StringBuilder(); result.append("Row: "+td.getRow()+" Col: "+td.getCol()+"\n"); if( td.nrOfSections()==1 && td.getSection(0).getTitleElement()==null) { result.append( sectionCCLToHtml( td.getSection(0) )); } else { for( int i=0; i<td.nrOfSections(); i++) { result.append( sectionToHtml(td.getSection(i) )); } } return result.toString(); }
handleContent( s.getTitleElement(), hp.get( SIT.TITLE ), sb );
.getTitleElement(), containerLevel); sct.addSection(temp); if (calculateSrcSpans)