Package 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,DateTextFieldHandler,DynamicAttributesHandler,EmptyHandler,FieldErrorHandler,FileHandler,FormHandler,FormHandler.CloseHandler,HeadHandler,HiddenHandler,LabelHandler,LinkHandler,NonceHandler,PasswordHandler,RadioHandler,ResetHandler,ScriptHandler,ScriptHandler.CloseHandler,ScriptingEventsHandler,SelectHandler,SubmitHandler,SubmitHandler.CloseHandler,TextAreaHandler,TextFieldHandler,TokenHandler,XHTMLTagSerializer
public interface TagHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(String text) Writes to the inner text of a tag.voidcharacters(String text, boolean encode) Writes to the inner text of a tagvoidWrites a tag closevoidsetNext(TagHandler next) voidsetup(TemplateRenderingContext context) voidstart(String name, Attributes attributes) Write a tag openening, with its attributes
-
Method Details
-
setNext
-
setup
-
start
Write a tag openening, with its attributes- Parameters:
name- name of the tagattributes- attributes of the tag- Throws:
IOException
-
end
Writes a tag close- Parameters:
name- name of the tag- Throws:
IOException
-
characters
Writes to the inner text of a tag. By default the body is html encoded- Parameters:
text- tag body.- Throws:
IOException
-
characters
Writes to the inner text of a tag- Parameters:
text- tag bodyencode- html encode the body- Throws:
IOException
-