org.rhq.enterprise.gui.legacy.taglib
Class TabDisplayCheckTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.rhq.enterprise.gui.legacy.taglib.VarSetterBaseTag
          extended by org.rhq.enterprise.gui.legacy.taglib.TabDisplayCheckTag
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class TabDisplayCheckTag
extends VarSetterBaseTag

A tag that will take a tab name and set the a specified context variable to a boolean that indicates whether or not that tab should be displayed based on the facets the current resource or compatible group exposes.

Author:
Ian Springer
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
 
Constructor Summary
TabDisplayCheckTag()
           
 
Method Summary
 int doStartTag()
          This evaluates value as a struts expression, then outputs the resulting string to the pageContext's out.
 String getTabName()
           
 void release()
          Reset the values of the tag.
 void setTabName(String tabName)
           
 
Methods inherited from class org.rhq.enterprise.gui.legacy.taglib.VarSetterBaseTag
getVar, setScope, setScopedVariable, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabDisplayCheckTag

public TabDisplayCheckTag()
Method Detail

getTabName

public String getTabName()

setTabName

public void setTabName(String tabName)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
This evaluates value as a struts expression, then outputs the resulting string to the pageContext's out.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

release

public void release()
Reset the values of the tag.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class VarSetterBaseTag


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.