Package com.jalios.jcms.taglib.menu
Class MenuTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- com.jalios.jcms.taglib.IncludeTag
-
- com.jalios.jcms.taglib.menu.MenuTag
-
- All Implemented Interfaces:
java.io.Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
public class MenuTag extends IncludeTag
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MENU_RESOURCE_ATTR
static java.lang.String
MENUITEM_RESOURCE_ATTR
static java.lang.String
SUBMENU_RESOURCE_ATTR
-
Fields inherited from class com.jalios.jcms.taglib.IncludeTag
INCLUDE_BODY, INCLUDE_CONTEXT, JCMS_RESOURCE_INCLUDE_PREFIX_PROP, REVISION
-
-
Constructor Summary
Constructors Constructor Description MenuTag()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clean()
int
doStartTag()
java.lang.String
getCss()
java.lang.String
getId()
static java.lang.Object
getIncludeObject(javax.servlet.ServletRequest request, java.lang.String name, java.lang.Object def)
int
getMaxDepthLevel()
MenuInfo
getMenuInfo()
java.lang.String
getMenuResource()
java.lang.String
getName()
protected void
include(java.lang.String body)
boolean
isDisplayMenuInfoRoot()
void
setContext(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String body)
void
setCss(java.lang.String css)
void
setDisplayMenuInfoRoot(boolean displayMenuInfoRoot)
void
setId(java.lang.String id)
static void
setIncludeObject(javax.servlet.ServletRequest request, java.lang.String name, java.lang.Object value)
void
setMaxDepthLevel(int maxDepthLevel)
void
setMenuInfo(MenuInfo menuInfo)
void
setMenuResource(java.lang.String menuResource)
void
setName(java.lang.String name)
-
Methods inherited from class com.jalios.jcms.taglib.IncludeTag
doAfterBody, doBeforeBody, doEndTag, doInitBody, getClazz, getFile, getIncludeString, getJsp, getPub, getResource, getTarget, getTargetContext, getUsage, include, notRecusiveInclude, printErrorMessage, setClazz, setFile, setIncludeString, setJsp, setPub, setResource, setTarget, setTargetContext, setUsage, skipInclude
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
-
-
-
-
Field Detail
-
MENU_RESOURCE_ATTR
public static final java.lang.String MENU_RESOURCE_ATTR
- See Also:
- Constant Field Values
-
SUBMENU_RESOURCE_ATTR
public static final java.lang.String SUBMENU_RESOURCE_ATTR
- See Also:
- Constant Field Values
-
MENUITEM_RESOURCE_ATTR
public static final java.lang.String MENUITEM_RESOURCE_ATTR
- See Also:
- Constant Field Values
-
-
Method Detail
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classIncludeTag
- Throws:
javax.servlet.jsp.JspException
-
include
protected void include(java.lang.String body)
- Overrides:
include
in classIncludeTag
-
setContext
public void setContext(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String body)
- Overrides:
setContext
in classIncludeTag
-
clean
public void clean()
- Overrides:
clean
in classIncludeTag
-
getId
public java.lang.String getId()
- Overrides:
getId
in classIncludeTag
-
setId
public void setId(java.lang.String id)
- Overrides:
setId
in classIncludeTag
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getCss
public java.lang.String getCss()
-
setCss
public void setCss(java.lang.String css)
-
getMenuResource
public java.lang.String getMenuResource()
-
setMenuResource
public void setMenuResource(java.lang.String menuResource)
-
getMaxDepthLevel
public int getMaxDepthLevel()
-
setMaxDepthLevel
public void setMaxDepthLevel(int maxDepthLevel)
-
getMenuInfo
public MenuInfo getMenuInfo()
-
setMenuInfo
public void setMenuInfo(MenuInfo menuInfo)
-
isDisplayMenuInfoRoot
public boolean isDisplayMenuInfoRoot()
-
setDisplayMenuInfoRoot
public void setDisplayMenuInfoRoot(boolean displayMenuInfoRoot)
-
setIncludeObject
public static void setIncludeObject(javax.servlet.ServletRequest request, java.lang.String name, java.lang.Object value)
-
getIncludeObject
public static java.lang.Object getIncludeObject(javax.servlet.ServletRequest request, java.lang.String name, java.lang.Object def)
-
-