Package com.appslandia.plum.tags
Class DataListTag
- java.lang.Object
-
- com.appslandia.plum.tags.TagBase
-
- com.appslandia.plum.tags.UITagBase
-
- com.appslandia.plum.tags.DataListTag
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.DynamicAttributes,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
@Tag(name="dataList", bodyContent="scriptless", dynamicAttributes=false) public class DataListTag extends UITagBase
- Author:
- Loc Ha
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Object>_itemsprotected Iterable<Object>items-
Fields inherited from class com.appslandia.plum.tags.UITagBase
clazz, datatag, dynamicAttributes, hidden, id, render, style, title
-
Fields inherited from class com.appslandia.plum.tags.TagBase
jspBody, pageContext, parentTag
-
-
Constructor Summary
Constructors Constructor Description DataListTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItem(Object value)protected StringgetTagName()protected booleanhasBody()protected voidinitTag()voidsetClazz(String clazz)voidsetHidden(boolean hidden)voidsetId(String id)voidsetItems(Iterable<Object> items)voidsetStyle(String style)voidsetTitle(String title)protected voidwriteAttributes(javax.servlet.jsp.JspWriter out)protected voidwriteBody(javax.servlet.jsp.JspWriter out)protected voidwriteItems(javax.servlet.jsp.JspWriter out, Iterable<Object> items)-
Methods inherited from class com.appslandia.plum.tags.UITagBase
doTag, setDatatag, setDynamicAttribute, setRender, writeDynamicAttributes, writeTag
-
Methods inherited from class com.appslandia.plum.tags.TagBase
evalJspBody, getModelState, getPageContext, getParent, getRequest, getRequestContext, getResponse, setJspBody, setJspContext, setParent
-
-
-
-
Method Detail
-
getTagName
protected String getTagName()
- Specified by:
getTagNamein classUITagBase
-
initTag
protected void initTag() throws javax.servlet.jsp.JspException, IOException- Specified by:
initTagin classUITagBase- Throws:
javax.servlet.jsp.JspExceptionIOException
-
addItem
public void addItem(Object value)
-
writeAttributes
protected void writeAttributes(javax.servlet.jsp.JspWriter out) throws javax.servlet.jsp.JspException, IOException- Specified by:
writeAttributesin classUITagBase- Throws:
javax.servlet.jsp.JspExceptionIOException
-
writeItems
protected void writeItems(javax.servlet.jsp.JspWriter out, Iterable<Object> items) throws javax.servlet.jsp.JspException, IOException- Throws:
javax.servlet.jsp.JspExceptionIOException
-
writeBody
protected void writeBody(javax.servlet.jsp.JspWriter out) throws javax.servlet.jsp.JspException, IOException- Overrides:
writeBodyin classUITagBase- Throws:
javax.servlet.jsp.JspExceptionIOException
-
setId
@Attribute(required=true, rtexprvalue=false) public void setId(String id)
-
setItems
@Attribute(required=true, rtexprvalue=true) public void setItems(Iterable<Object> items)
-
-