org.apache.shindig.gadgets.templates.tags
Class HtmlTagHandler

java.lang.Object
  extended by org.apache.shindig.gadgets.templates.tags.AbstractTagHandler
      extended by org.apache.shindig.gadgets.templates.tags.HtmlTagHandler
All Implemented Interfaces:
TagHandler

public class HtmlTagHandler
extends AbstractTagHandler

A TagHandler for the <os:Html code="..."/> tag. The value of the @code attribute will be treated as HTML markup.


Field Summary
 
Fields inherited from interface org.apache.shindig.gadgets.templates.tags.TagHandler
OPENSOCIAL_NAMESPACE
 
Constructor Summary
HtmlTagHandler(GadgetHtmlParser parser)
           
 
Method Summary
 void process(Node result, Element tag, TemplateProcessor processor)
          Processes the custom tag.
 
Methods inherited from class org.apache.shindig.gadgets.templates.tags.AbstractTagHandler
appendTextNode, getNamespaceUri, getTagName, getValueFromTag, processChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTagHandler

@Inject
public HtmlTagHandler(GadgetHtmlParser parser)
Method Detail

process

public void process(Node result,
                    Element tag,
                    TemplateProcessor processor)
Description copied from interface: TagHandler
Processes the custom tag.

Parameters:
result - A Node to append output to.
tag - The Element reference to the tag, useful for inspecting attributes and children
processor - A TemplateProcessor, used to evaluate expressions and render sub-templates if needed.


Copyright © 2007-2012. All Rights Reserved.