1 15 package org.apache.tapestry.wml; 16 17 import org.apache.tapestry.AbstractComponent; 18 import org.apache.tapestry.IMarkupWriter; 19 import org.apache.tapestry.IRequestCycle; 20 21 31 32 public abstract class OnEvent extends AbstractComponent 33 { 34 37 38 protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) 39 { 40 boolean render = !cycle.isRewinding(); 41 42 if (render) 43 { 44 writer.begin("onevent"); 45 46 writer.attribute("type", getType()); 47 48 renderInformalParameters(writer, cycle); 49 } 50 51 renderBody(writer, cycle); 52 53 if (render) 54 { 55 writer.end(); 56 } 57 } 58 59 public abstract String getType(); 60 61 } 62 | Popular Tags |