org.apache.struts2.views.java
Interface TagHandler

All Known Subinterfaces:
TagGenerator, TagSerializer
All Known Implementing Classes:
AbstractMessageListHandler, AbstractTagHandler, ActionErrorHandler, ActionMessageHandler, AnchorHandler, AnchorHandler.CloseHandler, CheckboxHandler, CheckboxListHandler, CommonAttributesHandler, DivHandler, DivHandler.CloseHandler, DynamicAttributesHandler, EmptyHandler, FieldErrorHandler, FileHandler, FormHandler, FormHandler.CloseHandler, HeadHandler, HiddenHandler, LabelHandler, PasswordHandler, RadioHandler, ResetHandler, ScriptingEventsHandler, SelectHandler, SubmitHandler, SubmitHandler.CloseHandler, TextAreaHandler, TextFieldHandler, TokenHandler, XHTMLTagSerializer

public interface TagHandler


Method Summary
 void characters(java.lang.String text)
          Writes to the inner text of a tag.
 void characters(java.lang.String text, boolean encode)
          Writes to the inner text of a tag
 void end(java.lang.String name)
          Writes a tag close
 void setNext(TagHandler next)
           
 void setup(TemplateRenderingContext context)
           
 void start(java.lang.String name, Attributes attributes)
          Write a tag openening, with its attributes
 

Method Detail

setNext

void setNext(TagHandler next)

setup

void setup(TemplateRenderingContext context)

start

void start(java.lang.String name,
           Attributes attributes)
           throws java.io.IOException
Write a tag openening, with its attributes

Parameters:
name - name of the tag
attributes - attributes of the tag
Throws:
java.io.IOException

end

void end(java.lang.String name)
         throws java.io.IOException
Writes a tag close

Parameters:
name - name of the tag
Throws:
java.io.IOException

characters

void characters(java.lang.String text)
                throws java.io.IOException
Writes to the inner text of a tag. By default the body is html encoded

Parameters:
text - tag body.
Throws:
java.io.IOException

characters

void characters(java.lang.String text,
                boolean encode)
                throws java.io.IOException
Writes to the inner text of a tag

Parameters:
text - tag body
encode - html encode the body
Throws:
java.io.IOException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.