/** * 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"; }
if( hp == null ) hp = sectionHandling.get(SectionType.SECTION_LEVEL.toString()+(s.getLevel()-levelModifier)); if( hp == null ) hp = sectionHandling.get(SectionType.DEFAULT_SECTION.toString()); if( hp == null ){ System.err.println( "Cannot get Handling Parameters for Section:\""+ s.getTitle()+"\" Level:"+s.getLevel() ); return;
levelModifier = pp.getSection(0).getLevel()-1;