Class CustomTag

  • All Implemented Interfaces:
    org.webpieces.ctx.api.extension.Tag, org.webpieces.templating.api.HtmlTag

    public class CustomTag
    extends org.webpieces.templating.impl.tags.RenderTagArgsTag
    implements org.webpieces.templating.api.HtmlTag
    We could write another CustomTag extending RenderPageArgsTag as well
    • Field Summary

      • Fields inherited from class org.webpieces.templating.impl.tags.TemplateLoaderTag

        svc
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomTag​(java.lang.String file)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getFilePath​(org.webpieces.templating.impl.GroovyTemplateSuperclass callingTemplate, java.util.Map<java.lang.Object,​java.lang.Object> args, java.lang.String srcLocation)  
      java.lang.String getName()  
      • Methods inherited from class org.webpieces.templating.impl.tags.RenderTagArgsTag

        convertTagArgs
      • Methods inherited from class org.webpieces.templating.impl.tags.TemplateLoaderTag

        initialize, runTag
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.webpieces.templating.api.HtmlTag

        runTag
    • Constructor Detail

      • CustomTag

        public CustomTag​(java.lang.String file)
    • Method Detail

      • getFilePath

        protected java.lang.String getFilePath​(org.webpieces.templating.impl.GroovyTemplateSuperclass callingTemplate,
                                               java.util.Map<java.lang.Object,​java.lang.Object> args,
                                               java.lang.String srcLocation)
        Overrides:
        getFilePath in class org.webpieces.templating.impl.tags.TemplateLoaderTag
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.webpieces.templating.api.HtmlTag
        Overrides:
        getName in class org.webpieces.templating.impl.tags.RenderTagArgsTag