public class IlvFacesMenuItemTag
extends javax.faces.webapp.UIComponentTag
This JSP custom tag handler manages a menu item tag instance.
This tag parent must be an IlvFacesMenuTag
instance.
Modifier and Type | Field and Description |
---|---|
protected javax.servlet.jsp.PageContext |
pageContext
The JSP
PageContext for the page we are embedded in. |
bodyContent, UNIQUE_ID_PREFIX
Constructor and Description |
---|
IlvFacesMenuItemTag()
Creates a new
IlvFacesMenuItemTag instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
connectToParent()
Connects the item created by this tag to the parent tag's item.
|
IlvMenuItem |
createMenuItem(String menuLabel)
Returns a new
IlvMenuItem instance. |
int |
doEndTag()
Process the end tag for this instance.
|
int |
doStartTag()
Process the start tag for this instance.
|
String |
getActionListener()
Returns the
actionListener tag attribute value. |
String |
getBaseTextDirection()
Returns the baseTextDirection.
|
String |
getComponentType()
Gets this tag's component type.
|
protected int |
getDoStartReturnCode()
Returns the return code of the
doStart() method. |
String |
getEnabled()
Returns the
enabled tag attribute value. |
String |
getId()
Returns the
id tag attribute value. |
String |
getImage()
Returns the
image tag attribute value. |
String |
getInvocationContext()
Returns the
actionListener tag attribute value. |
IlvMenuItem |
getItem()
Returns the
IlvMenuItem instance created by this tag. |
String |
getLabel()
Returns the
actionListener tag attribute value. |
String |
getOnclick()
Returns the
onclick tag attribute value. |
javax.servlet.jsp.PageContext |
getPageContext()
Returns the
PageContext of the page containing this
tag instance. |
javax.servlet.jsp.tagext.Tag |
getParent()
Return the
Tag that is the parent of this instance. |
String |
getRendererType()
Gets this tag's renderer type.
|
protected void |
handleActionListener()
Handles menu item action.
|
void |
initBaseTextDirection()
Sets the default base text direction of menu item.
|
void |
release()
Called on a Tag handler to release state.
|
void |
setActionListener(String actionListener)
Sets the
actionListener tag attribute value. |
void |
setBaseTextDirection(String baseTextDirection)
Sets the baseTextDirection.
|
void |
setEnabled(String enabled)
Sets the
enabled tag attribute value. |
void |
setId(String id)
Sets the
actionListener tag attribute value. |
void |
setImage(String image)
Sets the
image tag attribute value. |
void |
setInvocationContext(String invocationContext)
Sets the
actionListener tag attribute value. |
void |
setLabel(String label)
Sets the
actionListener tag attribute value. |
void |
setOnclick(String onclick)
Sets the
onclick tag attribute value. |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Set the
PageContext of the page containing this
tag instance. |
void |
setParent(javax.servlet.jsp.tagext.Tag parent)
Set the
Tag that is the parent of this instance. |
createComponent, getParentUIComponentTag, hasBinding, isSuppressed, isValueReference, setBinding, setProperties, setRendered
addChild, addFacet, addVerbatimAfterComponent, addVerbatimBeforeComponent, createVerbatimComponent, createVerbatimComponentFromBodyContent, doAfterBody, doInitBody, encodeBegin, encodeChildren, encodeEnd, findComponent, getBodyContent, getComponentInstance, getCreated, getCreatedComponents, getDoAfterBodyValue, getDoEndValue, getDoStartValue, getFacesContext, getFacesJspId, getFacetName, getIndexOfNextChildTag, getJspId, getParentUIComponentClassicTagBase, getPreviousOut, setBodyContent, setJspId, setupResponseWriter
protected javax.servlet.jsp.PageContext pageContext
The JSP PageContext
for the page we are embedded in.
public IlvFacesMenuItemTag()
IlvFacesMenuItemTag
instance.public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Set the PageContext
of the page containing this
tag instance.
setPageContext
in interface javax.servlet.jsp.tagext.Tag
setPageContext
in class javax.faces.webapp.UIComponentClassicTagBase
pageContext
- The enclosing PageContext
public javax.servlet.jsp.PageContext getPageContext()
PageContext
of the page containing this
tag instance.PageContext
.public javax.servlet.jsp.tagext.Tag getParent()
Return the Tag
that is the parent of this instance.
getParent
in interface javax.servlet.jsp.tagext.Tag
getParent
in class javax.faces.webapp.UIComponentClassicTagBase
public void setParent(javax.servlet.jsp.tagext.Tag parent)
Set the Tag
that is the parent of this instance.
setParent
in interface javax.servlet.jsp.tagext.Tag
setParent
in class javax.faces.webapp.UIComponentClassicTagBase
parent
- The new parent Tag
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.faces.webapp.UIComponentClassicTagBase
getDoStartReturnCode()
value.javax.servlet.jsp.JspException
protected void handleActionListener()
onlick
and the
actionListener
tag attributes.protected int getDoStartReturnCode()
Returns the return code of the doStart()
method.
This implementation returns SKIP_BODY
.
protected void connectToParent()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.faces.webapp.UIComponentClassicTagBase
EVAL_PAGE
.javax.servlet.jsp.JspException
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class javax.faces.webapp.UIComponentTag
public String getActionListener()
actionListener
tag attribute value.public void setActionListener(String actionListener)
actionListener
tag attribute value.actionListener
- The action listener tag attribute value.public String getImage()
image
tag attribute value.public void setImage(String image)
image
tag attribute value.image
- The action listener tag attribute value.public IlvMenuItem getItem()
IlvMenuItem
instance created by this tag.public IlvMenuItem createMenuItem(String menuLabel)
IlvMenuItem
instance.menuLabel
- The label of the menu item.public String getLabel()
actionListener
tag attribute value.public void setLabel(String label)
actionListener
tag attribute value.label
- The label tag attribute value.public String getInvocationContext()
actionListener
tag attribute value.public void setInvocationContext(String invocationContext)
actionListener
tag attribute value.invocationContext
- The invocation context tag attribute value.public String getOnclick()
onclick
tag attribute value.public void setOnclick(String onclick)
onclick
tag attribute value.onclick
- The onclick tag attribute value.public String getEnabled()
enabled
tag attribute value.public void setEnabled(String enabled)
enabled
tag attribute value.enabled
- The enabled tag attribute value.public String getId()
id
tag attribute value.getId
in class javax.faces.webapp.UIComponentClassicTagBase
public void setId(String id)
actionListener
tag attribute value.setId
in class javax.faces.webapp.UIComponentClassicTagBase
id
- The id tag attribute value.public String getBaseTextDirection()
public void setBaseTextDirection(String baseTextDirection)
baseTextDirection
- The base Text Direction to set.public void initBaseTextDirection()
public String getComponentType()
getComponentType
in class javax.faces.webapp.UIComponentTagBase
public String getRendererType()
getRendererType
in class javax.faces.webapp.UIComponentTagBase
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.