1 18 package org.apache.beehive.netui.tags.rendering; 19 20 import org.apache.beehive.netui.tags.html.HtmlConstants; 21 22 import java.util.HashMap ; 23 24 27 public abstract class TBodyTag 28 extends TagHtmlBase 29 { 30 31 public static void add(HashMap html, HashMap htmlQuirks, HashMap xhtml) 32 { 33 html.put(TBODY_TAG, new org.apache.beehive.netui.tags.rendering.TBodyTag.Rendering()); 34 htmlQuirks.put(TBODY_TAG, new org.apache.beehive.netui.tags.rendering.TBodyTag.Rendering()); 35 xhtml.put(TBODY_TAG, new org.apache.beehive.netui.tags.rendering.TBodyTag.Rendering()); 36 } 37 38 public static class State 39 extends AbstractHtmlState 40 { 41 public void clear() 42 { 43 super.clear(); 44 } 45 } 46 47 private static class Rendering 48 extends TBodyTag 49 implements HtmlConstants 50 { 51 public void doStartTag(AbstractRenderAppender sb, AbstractTagState renderState) 52 { 53 assert(sb != null) : "Parameter 'sb' must not be null"; 54 assert(renderState != null) : "Parameter 'renderState' must not be null"; 55 assert(renderState instanceof State) : "Paramater 'renderState' must be an instance of TBodyTag.State"; 56 57 State state = (State) renderState; 58 59 renderTag(sb, TBODY); 60 61 renderAttribute(sb, ID, state.id); 62 renderAttribute(sb, CLASS, state.styleClass); 63 64 renderAttributes(AbstractHtmlState.ATTR_GENERAL, sb, state); 65 renderAttribute(sb, STYLE, state.style); 66 renderAttributes(AbstractHtmlState.ATTR_JAVASCRIPT, sb, state); 67 sb.append(">"); 68 } 69 70 public void doEndTag(AbstractRenderAppender sb) 71 { 72 renderEndTag(sb, TBODY); 73 } 74 } 75 } 76 | Popular Tags |