com.ideo.sweetdevria.taglib.menu
Class ContextMenuTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.ideo.sweetdevria.taglib.AbstractTagDrawer
com.ideo.sweetdevria.taglib.AbstractComponentTagSupport
com.ideo.sweetdevria.taglib.BaseTagSupport
com.ideo.sweetdevria.taglib.menu.ContextMenuTag
- All Implemented Interfaces:
- Hideable, IRiaTag, MenuTagsInterface, 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 ContextMenuTag
- extends BaseTagSupport
- implements IRiaTag, Hideable, MenuTagsInterface
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
bean
|
protected static java.lang.String |
BUILDER_ID
|
protected java.util.ArrayList |
items
|
protected java.lang.String |
scope
|
protected java.lang.String |
target
|
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Method Summary |
void |
addItem(MenuItemModel item)
|
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE. |
int |
doStartTag()
Default processing of the start tag. |
java.lang.String |
getBean()
|
java.lang.String |
getBuilderId()
Return the targeted builder id for this component as specified in the configuration file. |
java.util.ArrayList |
getItems()
|
javax.servlet.jsp.PageContext |
getPageContext()
Return the Page Context. |
java.lang.String |
getScope()
|
java.lang.String |
getTarget()
|
void |
release()
Release method which must call super.release ! |
void |
setBean(java.lang.String bean)
|
void |
setScope(java.lang.String scope)
|
void |
setTarget(java.lang.String target)
|
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getParent, getValue, getValues, removeValue, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.BodyTag |
doInitBody, setBodyContent |
Methods inherited from interface javax.servlet.jsp.tagext.IterationTag |
doAfterBody |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
BUILDER_ID
protected static final java.lang.String BUILDER_ID
- See Also:
- Constant Field Values
items
protected java.util.ArrayList items
bean
protected java.lang.String bean
scope
protected java.lang.String scope
target
protected java.lang.String target
ContextMenuTag
public ContextMenuTag()
getBuilderId
public java.lang.String getBuilderId()
- Description copied from interface:
IRiaTag
- Return the targeted builder id for this component as specified in the configuration file.
- Specified by:
getBuilderId
in interface IRiaTag
- Specified by:
getBuilderId
in class AbstractTagDrawer
- Returns:
- id targeted builder id
- See Also:
IRiaTag.getBuilderId()
getPageContext
public javax.servlet.jsp.PageContext getPageContext()
- Description copied from interface:
IRiaTag
- Return the Page Context.
- Specified by:
getPageContext
in interface IRiaTag
- Overrides:
getPageContext
in class AbstractTagDrawer
- Returns:
- Page context.
- See Also:
IRiaTag.getPageContext()
release
public void release()
- Description copied from interface:
IRiaTag
- Release method which must call super.release !
- Specified by:
release
in interface IRiaTag
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class BaseTagSupport
- See Also:
AbstractComponentTagSupport.release()
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Description copied from interface:
IRiaTag
- Default processing of the start tag.
- Specified by:
doStartTag
in interface IRiaTag
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class AbstractComponentTagSupport
- Returns:
- EVAL_BODY_AGAIN, EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY or SKIP_PAGE.
- Throws:
javax.servlet.jsp.JspException
- See Also:
IRiaTag.doStartTag()
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Description copied from interface:
IRiaTag
- Default processing of the end tag returning EVAL_PAGE.
- Specified by:
doEndTag
in interface IRiaTag
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class AbstractComponentTagSupport
- Returns:
- EVAL_PAGE or SKIP_PAGE.
- Throws:
javax.servlet.jsp.JspException
- See Also:
IRiaTag.doEndTag()
getItems
public java.util.ArrayList getItems()
addItem
public void addItem(MenuItemModel item)
- Specified by:
addItem
in interface MenuTagsInterface
getBean
public java.lang.String getBean()
setBean
public void setBean(java.lang.String bean)
getScope
public java.lang.String getScope()
setScope
public void setScope(java.lang.String scope)
getTarget
public java.lang.String getTarget()
setTarget
public void setTarget(java.lang.String target)
Copyright © 2010 Ideo Technologies. All Rights Reserved.