1 18 package org.apache.beehive.netui.tags.rendering; 19 20 import java.util.HashMap ; 21 22 abstract public class TagHtmlBase extends TagRenderingBase 23 { 24 29 protected void renderAttributes(int type, AbstractRenderAppender sb, AbstractAttributeState state, boolean doubleQuote) 30 { 31 HashMap map = null; 32 switch (type) { 33 case AbstractHtmlState.ATTR_JAVASCRIPT: 34 assert(state instanceof AbstractHtmlState) : "ATTR_JAVASCRIPT requires a AbstractHtmlState instance"; 35 AbstractHtmlState htmlState = (AbstractHtmlState) state; 36 map = htmlState.getEventMap(); 37 break; 38 default: 39 super.renderAttributes(type, sb, state, doubleQuote); 40 return; 41 } 42 renderGeneral(map, sb, doubleQuote); 43 } 44 } 45 | Popular Tags |